On 05/09/2011 02:36 AM, Gerrit Voß wrote:
> Hi,
>
> On Mon, 2011-05-09 at 02:08 -0500, Andres Ussa Caycedo wrote:
>    
>> On 05/09/2011 01:43 AM, Gerrit Voß wrote:
>>      
>>> Hi,
>>>
>>>        
>> Ok, thank you so much, that worked perfectly, now, the linking totally
>> failed... it could not find anything... :S
>>
>> here is the pastebin:
>>
>> http://pastebin.com/TsvWsGYp
>>
>> Where did I mess up?
>>
>> Should I recompile OpenSG and inVRs?
>>      
> that should not be necessary. It looks like the linker just does
> not know where to find the OpenSG libraries, the easiest way to
> tell him without modifying the cmake system is to set LD_LIBRARY_PATH
> so that it includes the OpenSG library installation directory. For
> example if you had OpenSG installed in /home/andres/OpenSG you would
> do
>
> export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/andres/OpenSG/lib
>
> to point to the OpenSG libraries. Adjust the path according to your
> installation, you need it to run the example anyway.
>
> (side note, if LD_LIBRARY_PATH is not set you can leave out the first
>   ${LD...}: part)
>
> kind regards
>    gerrit
>    
Hi, where should I add that? I put it in the .cpp file, at the top of 
it, and this is what I got:

/home/andres/Downloads/MedievalTown/src/MedievalTown.cpp:2: warning: 
keyword ‘export’ not implemented, and will be ignored
/home/andres/Downloads/MedievalTown/src/MedievalTown.cpp:2: error: 
expected ‘template’ before ‘LD_LIBRARY_PATH’
/home/andres/Downloads/MedievalTown/src/MedievalTown.cpp:2: error: 
expected constructor, destructor, or type conversion before ‘=’ token
/home/andres/Downloads/MedievalTown/src/MedievalTown.cpp:2: error: 
expected unqualified-id before ‘:’ token
In file included from /usr/include/c++/4.4/ios:40,
                  from /usr/include/c++/4.4/ostream:40,
                  from /usr/include/c++/4.4/iostream:40,
                  from /home/andres/inVRs_OSG/include/gmtl/MatrixOps.h:9,
                  from 
/home/andres/Downloads/MedievalTown/src/MedievalTown.cpp:5:
/usr/include/c++/4.4/exception:35: error: expected declaration before 
end of line

I suppose I'm doing it wrong... and also, I know it is a silly question, 
but how do I know where the OpenSG/lib folder was created... I did a 
default build of OpenSG, don't quite know where it is... :S

Sorry.

Thank you.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to