[osg-users] [build] When writing my own software and integrating openscenegraph, LNK error is thrown out.
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Tue Mar 22 07:34:36 PDT 2016
Hi Diwas,
Can you be a bit more specific on the Linker error you are getting?
It is hard to guess what might be missing without some output and maybe
some minimal code.
The only thing I'm spotting is the /MDd. Have you tried /MD instead?
Cheers
Sebastian
> Hi,
> I will explain what I did till now:
>
> 1. Donwloaded OSG and extracted on the folder OSGraph/OpenSceneGraph-3.4.0.
> 2. Downloaded 3rdParty folder 64bit and extracted on the folder OSGraph/3rdParty.
> 3.Installed Cmake and Browed to OSGraph/OpenSceneGraph-3.4.0 folder on "Where is the source code".
> 4. On the option "Where to build the binaries" -> OSGraph/OpenSceneGraph-3.4.0/build.
> 5. CMAKE_INSTALL_PREFIX ->OSGraph/osg
> 6. Clicked on Configure -> "Visual Studio 12 2013 Win64" and then Generate.
> 7. Opened OSGraph/OpenSceneGraph-3.4.0/build/OpenSceneGraph.sln, Release mode-> and right click on "ALL_BUILD" and clicked Build.
> 8. After an hour the built is finished and again right click on "INSTALL" and clicked Build. Now I get three folders on OSGraph/osg namely bin, include and lib.(I suppose these are the files that I need to include on my project).
> 9. Created new Visual Studio-Project
> - Win32 Console Application
> - Empty project
> 10. Release Mode and then I set the Project-Properties as follows:
> - General -> Character Set -> Use Multi-Byte Character Set
> - C/C++ -> General -> Additional Include Directories -> "OSGraph/osg/include”
> - C/C++ -> Code Generation -> Runtime Library -> Multi-threaded Debug DLL (/MDd)
> - C/C++ -> Language -> Enable Run-Time Type Info -> Yes (/GR)
> - Linker -> General -> Additional Library Directories -> "OSGraph/osg/lib“
> - Linker -> Input -> Additional Dependencies -> "osg.lib, osgAnimation.lib, osgDB.lib, osgFX.lib, osgGA.lib, osgManipulator.lib, osgParticle.lib, osgPresentation.lib, osgShadow.lib, osgSim.lib, osgTerrain.lib, osgText.lib, osgUI.lib, osgUtil.lib, osgViewer.lib, osgVolume.lib, osgWidget.lib, OpenThreads.lib“
> 11.Now I try to built then I get more than 300 LNK error: ie LNK2028, LNK2019, LNK1120.
>
>
> Can Anybody tell me what I am doing wrong?
>
>
> Thank you!
>
> Cheers,
> Diwas
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66586#66586
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list