Hi Dwight,

I don't know whether there is tuturial about CMake but those red lines
indicate some variables that are required/suggested. If you are
familiar with configure scripts on linux/unix, red lines are analogous
to --with-PKG=path_to_dependency or --enable-FEATURE (if I recall
correctly).

Warnings better be fixed. I've encountered several warnings during my
first attempt because I passed path to directories containing
libraries instead of full path to file. For instance, full path to
jpeg library is I:\Program Files\GnuWin32\lib\jpeg.lib for me. If you
see warnings or errors during configure, it's likely that generated
solution file (configuration) may be broken.

Aside; either compile 3rd party libraries with your Visual C run-time
version or obtain them from Internet. Using another version of C
run-time usually causes trouble.

If you give us some screenshots or text output of warnings/error you
encounter during CMake, I am sure we could resolve issue.

Ismail

On Tue, May 12, 2009 at 9:30 PM, Butler, Lee Mr CIV USA USAMC
<[email protected]> wrote:
> If you are willing to drop back to to release 2.2 there is a Win32
> binary installer available at:
>
> http://www.openscenegraph.org/projects/osg/wiki/Downloads/PreviousReleases
>
> I've built OSG on Windows successfully from source using Vista and
> Visual Studio 2008.  The only things I set were the source and build
> directories in cmake.  The only package I added was to build the
> documentation.  It then takes two more clicks of the "Configure" button
> before the "Generate" button becomes ready.
>
> What OS/compiler are you trying to use?
>
> Lee
>
> On Tue, 2009-05-12 at 18:53 +0000, Dwight House wrote:
>> I didn't see any topics about this, so I apologize if it is redundant.
>>
>> I'm a student who is trying to finish his masters program and I want to use 
>> OSG to allow me to more rapidly and accurately work with shaders via OpenGL. 
>> All the built-in features such as model-loading help too.
>>
>> Problem is, I can't get it fully installed on Windows. On OS X, I got it 
>> installed in about 30 seconds. On Windows, I've been going at it for around 
>> 6 or 7 hours with no success.
>>
>> Now I don't know if it's my fault or someone else's, but the tutorial for 
>> setting up OSG for Visual Studio 2005 does not work for me at several 
>> points, eventually making further progress towards installation impossible. 
>> Here is the tutorial that I am trying to use:
>> http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio
>>
>> I followed all the steps to the best of my ability. Here are the problems I 
>> encountered.
>>
>> 1. Clicking "Configure" on CMake using the OpenSceneGraph 2.8.0 code results 
>> in about fifty warnings (or errors, whatever it means when the property 
>> items are red and it won't let you Generate). I wasn't able to figure out 
>> why this happened, but I "fixed" it by simply telling CMake to Configure 
>> again, which removed the warnings.
>>
>> 2. When setting up a Visual Studio project to know where the paths and 
>> libraries are and such, I got error messages when attempting to compile 
>> saying that $(OSG_INCLUDE_PATH) was not a valid directory, even though echo 
>> %OSG_INCLUDE_PATH% produced the correct directory. It must be a Visual 
>> Studio problem, and it actually doesn't break today. That error message is 
>> now gone for no reason.
>>
>> 3. Either way, after giving it the correct paths in the project settings and 
>> including the appropriate libraries, I got this error:
>> 1>.\osgviewer.cpp(12) : fatal error C1083: Cannot open include file: 
>> 'osgDB/ReadFile': No such file or directory
>>
>> Obviously, it couldn't locate osgDB. For a while, I thought it might be the 
>> problem of not adding a "d" to the end of my libraries, since I compiled OSG 
>> in debug mode. While that might still be a problem, the real issue is that, 
>> for whatever reason, the include folders and files did not get compiled into 
>> the /build directory. The config files did, however. So, it appears that my 
>> include locations are all wrong.
>>
>> 4. Fine, I put the includes where they should be and recompiled. I now get 
>> hundreds of redefinition warnings from gl.h, which is a classic symptom of 
>> including OpenGL BEFORE windows.h.
>>
>>
>> I don't have a clue as to how to proceed. I can't realistically do my 
>> development only on OS X, since my professors will want the program 
>> available on Windows. I really want to use OSG, but lately I'm spending more 
>> time trying to install it than researching my thesis topic.
>>
>> Oh, and it wasn't really clear from your wiki, and I'm not familiar enough 
>> with massive open source projects like yours enough to know if I'm going 
>> after the wrong thing. Do I have to install all this stuff just so I can USE 
>> OSG, rather than develop OSG itself? I mean, I don't have to download the 
>> source for Firefox to use it. Am I going about this the wrong way?
>>
>> Thanks for your help.
>>
>> Salutations,
>> Dwight House
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=11938#11938
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to