From: Larry M. <lar...@gm...> - 2007-07-03 17:25:52
|
Hi, I am making an attempt to use OpenVRML to verify the structure of VRMLs I receive from a 3rd party. The current version I downloaded ships with .sln files for VisualStudio 8.0 (2005) . I searched but could not find any instructions on how to build it with Windows (i.e if some configuration needs to be done etc. ) I have downloaded Boost and FreeType but now an getting an error related to compiling resources Compiling resources... .\openvrml.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'. Build log was saved at "file://c:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\openvrml\Debug\BuildLog.htm" openvrml - 1 error(s), 0 warning(s) I'll eventually have to compile this with VS 2003 as our current stack is using that. Anybody have any experience with that ? Any help in this regard will be really appreciated. Thanks and regards, Larry. |
From: Braden M. <br...@en...> - 2007-07-03 17:49:04
|
Larry Mullen wrote: > I am making an attempt to use OpenVRML to verify the structure of > VRMLs I receive from a 3rd party. The current version I downloaded > ships with .sln files for VisualStudio 8.0 (2005) . I searched but > could not find any instructions on how to build it with Windows (i.e > if some configuration needs to be done etc. ) I have downloaded Boost > and FreeType but now an getting an error related to compiling > resources > > Compiling resources... > .\openvrml.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'. > Build log was saved at > "file://c:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\openvrml\Debug\BuildLog.htm" > openvrml - 1 error(s), 0 warning(s) Are you using the Express version of Visual Studio? If so, you will need to download the Platform SDK from Microsoft. > I'll eventually have to compile this with VS 2003 as our current stack > is using that. Anybody have any experience with that ? Not for some time. If you turn back the clock in the CVS repository (8/1/05 should do), you'll find some project files for Visual C++ 7.1. I'm really not sure how useful they'd be as a starting point; you may be better off just creating new ones based on what you see in the 8.0 project files. Braden |
From: Larry M. <lar...@gm...> - 2007-07-03 18:46:31
|
Thanks Braden - I was able to get past that but now I get the following when building openvrml LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-gd-1_34.lib' I could not find reference to this library in any of the project settings. Unfortunately, if I have to build boost for this, it's time to give up for me....it's going to be a maintenance nightmare and I dont want to support this forever.... Thanks for your help. Rohit. On 7/3/07, Braden McDaniel <br...@en...> wrote: > Larry Mullen wrote: > > > I am making an attempt to use OpenVRML to verify the structure of > > VRMLs I receive from a 3rd party. The current version I downloaded > > ships with .sln files for VisualStudio 8.0 (2005) . I searched but > > could not find any instructions on how to build it with Windows (i.e > > if some configuration needs to be done etc. ) I have downloaded Boost > > and FreeType but now an getting an error related to compiling > > resources > > > > Compiling resources... > > .\openvrml.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'. > > Build log was saved at > > "file://c:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\openvrml\Debug\BuildLog.htm" > > openvrml - 1 error(s), 0 warning(s) > > Are you using the Express version of Visual Studio? If so, you will need > to download the Platform SDK from Microsoft. > > > I'll eventually have to compile this with VS 2003 as our current stack > > is using that. Anybody have any experience with that ? > > Not for some time. If you turn back the clock in the CVS repository > (8/1/05 should do), you'll find some project files for Visual C++ 7.1. > I'm really not sure how useful they'd be as a starting point; you may be > better off just creating new ones based on what you see in the 8.0 > project files. > > Braden > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > openvrml-develop mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/openvrml-develop > |
From: Braden M. <br...@en...> - 2007-07-03 19:27:04
|
Larry Mullen wrote: > Thanks Braden - I was able to get past that but now I get the > following when building openvrml > > LINK : fatal error LNK1104: cannot open file > 'libboost_thread-vc80-mt-gd-1_34.lib' > > I could not find reference to this library in any of the project settings. Boost takes advantage of a feature specific to the Microsoft compiler that lets it indicate what library will need to be linked in via the headers. > Unfortunately, if I have to build boost for this, it's time to give up > for me....it's going to be a maintenance nightmare and I dont want to > support this forever.... You can get pre-built binaries of boost from boost-consulting.com. Braden |
From: Larry M. <lar...@gm...> - 2007-07-03 20:25:27
|
Thanks again Braden - it's too late to chicken out - so I built Boost anyway.... now I get the following linker errors.... Linking... Creating library C:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\..\lib\openvrmld.lib and object C:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\..\lib\openvrmld.exp vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Init_FreeType referenced in function "public: __thiscall `anonymous namespace'::text_metatype::text_metatype(class openvrml::browser &)" (??0text_metatype@?A0xbd026fe7@@QAE@AAVbrowser@openvrml@@@Z) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Done_FreeType referenced in function "public: virtual __thiscall `anonymous namespace'::text_metatype::~text_metatype(void)" (??1text_metatype@?A0xbd026fe7@@UAE@XZ) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Done_Face referenced in function "private: virtual void __thiscall `anonymous namespace'::text_node::do_shutdown(double)" (?do_shutdown@text_node@?A0xbd026fe7@@EAEXN@Z) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_New_Face referenced in function "private: void __thiscall `anonymous namespace'::text_node::update_face(void)" (?update_face@text_node@?A0xbd026fe7@@AAEXXZ) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Outline_Decompose referenced in function "private: void __thiscall `anonymous namespace'::text_node::update_geometry(void)" (?update_geometry@text_node@?A0xbd026fe7@@AAEXXZ) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced in function "private: void __thiscall `anonymous namespace'::text_node::update_geometry(void)" (?update_geometry@text_node@?A0xbd026fe7@@AAEXXZ) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Load_Glyph referenced in function "private: void __thiscall `anonymous namespace'::text_node::update_geometry(void)" (?update_geometry@text_node@?A0xbd026fe7@@AAEXXZ) vrml97node.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Char_Index referenced in function "private: void __thiscall `anonymous namespace'::text_node::update_geometry(void)" (?update_geometry@text_node@?A0xbd026fe7@@AAEXXZ) C:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\..\bin\openvrmld.dll : fatal error LNK1120: 8 unresolved externals Build log was saved at "file://c:\openvrml-0.16.5\ide-projects\Windows\VisualC8_0\OpenVRML\openvrml\Debug\BuildLog.htm" openvrml - 9 error(s), 0 warning(s) On 7/3/07, Braden McDaniel <br...@en...> wrote: > Larry Mullen wrote: > > Thanks Braden - I was able to get past that but now I get the > > following when building openvrml > > > > LINK : fatal error LNK1104: cannot open file > > 'libboost_thread-vc80-mt-gd-1_34.lib' > > > > I could not find reference to this library in any of the project settings. > > Boost takes advantage of a feature specific to the Microsoft compiler > that lets it indicate what library will need to be linked in via the > headers. > > > Unfortunately, if I have to build boost for this, it's time to give up > > for me....it's going to be a maintenance nightmare and I dont want to > > support this forever.... > > You can get pre-built binaries of boost from boost-consulting.com. > > Braden > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > openvrml-develop mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/openvrml-develop > |
From: Braden M. <br...@en...> - 2007-07-03 20:59:51
|
Larry Mullen wrote: > Thanks again Braden - it's too late to chicken out - so I built Boost > anyway.... > > now I get the following linker errors.... [snip] Those are FreeType symbols. Check to make sure the FreeType lib you are linking against actually exists. FreeType makes new releases frequently and the library names are versioned; so the library built by the version of FreeType you downloaded might have a different name than the one referenced in the project file that comes with OpenVRML 0.16.5. Also note that FreeType is only necessary for *rendering* text. If you are only interested in reading in a file to verify correctness, you probably don't care about that. If you don't define OPENVRML_ENABLE_RENDER_TEXT_NODE, you don't need FreeType. See README ("Significant preprocessor symbols") for more information. Braden |
From: Larry M. <lar...@gm...> - 2007-07-09 13:37:35
|
Thanks again Braden. I was able to build openvrml and everything else in the project. I really appreciate your help. Couple more questions 1. If I run sdl_viewer.cpp with a valid url (example http://www.3dtrue.com/vrml/wrl/vrmlelevator.wrl) I get the following error unreachable URI no alternative URI could be resolved 2. If I give the url as "file:///C:\temp\001\001.wrl" (which exists) I get the following error invalid URI no alternative URI could be resolved 3. As you mentioned as reply to my initial questions, to verify that a VRML is constructed correctly, I need to load it into a scene. So if the following code does not throw an exception, that implies my VRML is contructed properly, correct? try { using std::string; using std::vector; const string url = argv[1]; sdl_viewer v(url); browser b; vector<string> uri(1, url); vector<string> parameter; b.load_url(uri, parameter); openvrml::scene s(b); s.load(*s.get_resource(uri).get()); } catch (std::exception & ex) { cerr << ex.what() << endl; return EXIT_FAILURE; } Thanks again for all your help, Rohit. On 7/3/07, Braden McDaniel <br...@en...> wrote: > Larry Mullen wrote: > > Thanks again Braden - it's too late to chicken out - so I built Boost > > anyway.... > > > > now I get the following linker errors.... > > [snip] > > Those are FreeType symbols. Check to make sure the FreeType lib you are > linking against actually exists. FreeType makes new releases frequently > and the library names are versioned; so the library built by the version > of FreeType you downloaded might have a different name than the one > referenced in the project file that comes with OpenVRML 0.16.5. > > Also note that FreeType is only necessary for *rendering* text. If you > are only interested in reading in a file to verify correctness, you > probably don't care about that. If you don't define > OPENVRML_ENABLE_RENDER_TEXT_NODE, you don't need FreeType. See README > ("Significant preprocessor symbols") for more information. > > Braden > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > openvrml-develop mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/openvrml-develop > |
From: Braden M. <br...@en...> - 2007-07-09 14:51:25
|
On Mon, 2007-07-09 at 09:37 -0400, Larry Mullen wrote: > Thanks again Braden. I was able to build openvrml and everything else > in the project. I really appreciate your help. > > Couple more questions > > 1. If I run sdl_viewer.cpp with a valid url (example > http://www.3dtrue.com/vrml/wrl/vrmlelevator.wrl) I get the following > error > > unreachable URI > no alternative URI could be resolved Hm; could be a bug. I'll look into this. > 2. If I give the url as "file:///C:\temp\001\001.wrl" (which exists) I > get the following error > > invalid URI > no alternative URI could be resolved This is working as designed; URIs don't have '\' in them. Try using '/' instead. > 3. As you mentioned as reply to my initial questions, to verify that a > VRML is constructed correctly, I need to load it into a scene. So if > the following code does not throw an exception, that implies my VRML > is contructed properly, correct? > > try { > using std::string; > using std::vector; > const string url = argv[1]; > > sdl_viewer v(url); > browser b; > > vector<string> uri(1, url); > vector<string> parameter; > b.load_url(uri, parameter); > openvrml::scene s(b); > > s.load(*s.get_resource(uri).get()); > > > > > } catch (std::exception & ex) { > cerr << ex.what() << endl; > return EXIT_FAILURE; > } That's not very efficient; you end up loading the file twice. browser::load_url should be all you need. The problem, though, is that browser::load_url does not block. If you use it and you want to confirm it succeeded, you can add a browser_listener for the initialized event. However, it's probably easier for you just to use browser::set_world instead of browser::load_url. set_world blocks; and if it finishes without throwing, you're good. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |
From: Braden M. <br...@en...> - 2007-07-10 14:13:21
|
On Mon, 2007-07-09 at 10:51 -0400, Braden McDaniel wrote: > On Mon, 2007-07-09 at 09:37 -0400, Larry Mullen wrote: > > Thanks again Braden. I was able to build openvrml and everything else > > in the project. I really appreciate your help. > > > > Couple more questions > > > > 1. If I run sdl_viewer.cpp with a valid url (example > > http://www.3dtrue.com/vrml/wrl/vrmlelevator.wrl) I get the following > > error > > > > unreachable URI > > no alternative URI could be resolved > > Hm; could be a bug. I'll look into this. I'm an idiot. Of course that doesn't work. sdl-viewer only supports file URLs. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |
From: Larry M. <lar...@gm...> - 2007-07-10 18:29:05
|
Braden, Thanks for all the help. I've also been able to build it with Visual Studio .Net 2003. On 7/10/07, Braden McDaniel <br...@en...> wrote: > On Mon, 2007-07-09 at 10:51 -0400, Braden McDaniel wrote: > > On Mon, 2007-07-09 at 09:37 -0400, Larry Mullen wrote: > > > Thanks again Braden. I was able to build openvrml and everything else > > > in the project. I really appreciate your help. > > > > > > Couple more questions > > > > > > 1. If I run sdl_viewer.cpp with a valid url (example > > > http://www.3dtrue.com/vrml/wrl/vrmlelevator.wrl) I get the following > > > error > > > > > > unreachable URI > > > no alternative URI could be resolved > > > > Hm; could be a bug. I'll look into this. > > I'm an idiot. Of course that doesn't work. sdl-viewer only supports file > URLs. > > -- > Braden McDaniel e-mail: <br...@en...> > <http://endoframe.com> Jabber: <br...@ja...> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > openvrml-develop mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/openvrml-develop > |
From: Braden M. <br...@en...> - 2007-07-10 23:08:22
|
Larry Mullen wrote: > Braden, > > Thanks for all the help. I've also been able to build it with Visual > Studio .Net 2003. You're welcome. > On 7/10/07, Braden McDaniel <br...@en...> wrote: >> On Mon, 2007-07-09 at 10:51 -0400, Braden McDaniel wrote: >>> On Mon, 2007-07-09 at 09:37 -0400, Larry Mullen wrote: >>>> Thanks again Braden. I was able to build openvrml and everything else >>>> in the project. I really appreciate your help. >>>> >>>> Couple more questions >>>> >>>> 1. If I run sdl_viewer.cpp with a valid url (example >>>> http://www.3dtrue.com/vrml/wrl/vrmlelevator.wrl) I get the following >>>> error >>>> >>>> unreachable URI >>>> no alternative URI could be resolved >>> Hm; could be a bug. I'll look into this. >> I'm an idiot. Of course that doesn't work. sdl-viewer only supports file >> URLs. As it turns out, there is a minor bug here. You should have seen a different, more informative error message. (Note line 203 of sdl_viewer.cpp; unfortunately this exception is getting swallowed without emitting that error message.) I will fix this for 0.16.6. Braden |