Hi,

I tried to install OSG, but it seems that i missed something.
I'll try to describe what i have done.

Preparations:
1. Download pre-compiled binaries from AlphaPixel. 3.0.1 Debug + Realease for 
both architecture (x64/x86). (didn't download PDBs).
2. Download pre-compiled binaries from AlphaPixel. 2.8.5 Debug + Realease for 
both architecture (x64/x86). (didn't download PDBs).
3. Download source code (version 3.0.1) from openscenegraph.
4. Download and install CMake.
5. Download SampleDatasets for 3.0.0 from openscenegraph.

Installation:
First:
1. Unpack  pre-compiled binaries (Release&Debug x64) into one folder. (i have 
Win7x64)
2. Configurate my system pathes.

Code:
OSG_ROOT - my root folder (W:\Programs\Development\OpenSceneGraph_3.0.1_VS10x64)
OSG_BIN_PATH = %OSG_ROOT%\bin
OSG_INCLUDE_PATH = %OSG_ROOT%\include
OSG_LIB_PATH = %OSG_ROOT%\lib
OSG_SAMPLES_PATH = %OSG_ROOT%\share\OpenSceneGraph\bin
OSG_FILE_PATH = %OSG_ROOT%\data


3. Check... 

Code:
Run -> cmd -> osversion - works ("OpenSceneGraph Library 3.0.1").
Run -> cmd -> osgviewer cow.osg - works too.


4. Run VS10.
5. Created C++ Win32 Empty Project.
6. Add new cpp file and pasted code from BasicGeometry Tutorial.
7. Configurate my project.

Code:
Project -> Properties -> C/C++ -> General -> Additional Include Directories add 
$(OSG_INCLUDE_PATH)
Project -> Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions add 
WIN32;_WIN32;_DEBUG(for Debug)/WIN32;_WIN32;NDEBUG (for Release)
Project -> Properties -> Linker -> General -> Additional Library Directories 
add $(OSG_LIB_PATH)
Project -> Properties -> Linker -> Input -> Additional Dependencies add 
osgd.lib osgGAd.lib osgDBd.lib osgViewerd.lib (for Debug)/without -d(for 
Release)
Project -> Properties -> General -> Character Set -> Use Multi-Byte Character 
Set
Project -> Properties -> C/C++ -> Language -> Enable Run-Time Type Information 
-> Yes(/GR)


8. Tried to Run in Debug. Fail.

Code:
error LNK1120: 162 unresolved externals
error LNK2001: unresolved external symbol "protected: virtual void __thiscall 
osg::Group::childInserted(unsigned int)" (?childInserted@Group@osg@@MAEXI@Z)
...


9. Tried to Run in Release. Same errors.
Seems like it didnt detect my lib files, but i'm sure i've pointed the path.
10. Well, for reinsurance...

Code:
Project -> Properties -> C/C++ -> General -> Additional Include Directories add 
W:\Programs\Development\OpenSceneGraph_3.0.1_VS10x64\include
Project -> Properties -> Linker -> General -> Additional Library Directories 
add W:\Programs\Development\OpenSceneGraph_3.0.1_VS10x64\lib


nope...didn't help.

Second:
1. same steps but for pre-compiled binaries x86.Same results.

Third(compile src by myself):
1.Open CMake.
2.Pointed to my OSG folder with sources.
3.Press Configure...Something happens. Well as result i've got .sln file.
4.Open .sln and compile.
5. Wait...
6. Wait...
7. Ok.Finished, got lib folder.
8. Copied bin,lib,include folders into a new one, added other folders from 
pre-compiled version (share,data).
9. And repeat from First-2 to the end...Same results.

Fourth and Fifth:
1. Checked pre-compiled binaries for 2.8.5 x64 & x86. Yeah...have 157 errors 
instead of 162...realy nice...

Yeah...i knew that I've done too much excess,  but miracles happens....but not 
this time...
As a conclusion i think i've missed something...but i dont have an idea what to 
do...
Hope someone can tell me what should i do.

Thank you!

Cheers,
Kirill

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44763#44763





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to