When writing my own software and integrating openscenegraph, LNK error is thrown out.

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

Quote:

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.

When writing my own software and integrating openscenegraph, LNK error is thrown out.

Hi Diwas,as you don't mention it I think you did not create a x64 configuration for your project, the default new project is a 32 bit project.
In visual studio in below the menus is a bar with two drop down lists, one with "Release" and one with "Win32", below the Win32 is an option called "Configuration manager" hiding the option to generate a x64 version of your project.
Regards, Laurens.

On Tue, Mar 22, 2016 at 5:09 PM, Diwas Bhattarai < (

Only registered users can see emails on this board!Get registred or enter the forums!

)> wrote:

Quote:

Hi,

Here is the link to the Errors that I get. http:// pastebin. com /0Z6Zk553

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou cannot download files in this forum