On 05/10/2011 02:42 AM, Gerrit Voß wrote:
> Hi,
>
> On Tue, 2011-05-10 at 02:27 -0500, Andres Ussa Caycedo wrote:
>
>> On 05/10/2011 12:51 AM, Gerrit Voß wrote:
>>
>>> Hi,
>>>
>>> On Mon, 2011-05-09 at 21:55 -0500, Andres Ussa Caycedo wrote:
>>>
>>>
>>>> Hi, this is what I got by:
>>>>
>>>> find /usr/local | grep -i osgbase
>>>>
>>>> /usr/local/lib/dbg/libOSGBase.so
>>>> /usr/local/include/OpenSG/OSGBaseFunctions.h
>>>> /usr/local/include/OpenSG/OSGBaseTypeTraits.h
>>>> /usr/local/include/OpenSG/OSGBaseThread.h
>>>> /usr/local/include/OpenSG/OSGBaseTypes.h
>>>> /usr/local/include/OpenSG/OSGBase.h
>>>> /usr/local/include/OpenSG/OSGBaseFunctions.inl
>>>> /usr/local/include/OpenSG/OSGBaseFieldDataType.h
>>>>
>>>>
>>>
>>>
>> Ok, this is what I did:
>>
>> target_link_libraries (MedievalTown
>> ${inVRs_LIBRARIES}
>> inVRsControllerManager
>> inVRsOpenSGSceneGraphInterface
>> # inVRsNetwork
>> inVRsInteraction
>> inVRsNavigation
>> inVRsHeightMap
>> inVRsCollisionMap
>> inVRsTextureManager
>> inVRsSkybox
>> libOSGWindowGLUT.so
>> irrXML)
>> if (WIN32)
>> target_link_libraries(MedievalTown
>> debug OSGBaseD.lib
>> debug OSGSystemD.lib
>> debug OSGWindowGLUTD.lib
>> optimized OSGBase.lib
>> optimized OSGSystem.lib
>> optimized OSGWindowGLUT.lib)
>> endif (WIN32)
>>
>> now, I got the following error, don't know if it got better or
>> worse :S
>>
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written
>> to: /home/andres/Downloads/MedievalTown/build
>> Linking CXX executable MedievalTown
>> /usr/bin/ld: cannot find -lOSGWindowGLUT
>> collect2: ld returned 1 exit status
>> make[2]: *** [MedievalTown] Error 1
>> make[1]: *** [CMakeFiles/MedievalTown.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> almost there?
>>
> yes, you have to tell cmake where to find the library, try adding
>
> link_directories(/usr/local/lib/dbg)
>
> before the call to target_link_libraries or add the library file
> including the whole path:
>
> /usr/local/lib/dbg/libOSGWindowGLUT.so
>
> kind regards
> gerrit
>
FINALLYYYY!!! got it, I got a couple errors later, but they were the
same, but with the "final" MedievalTown, THANK YOU SO MUCH!!! I've been
fighting against it for a month or more, you are great, thank you... and
have a nice day :D
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users