Hello, On Sun, 2011-05-08 at 21:11 -0500, Andres Ussa Caycedo wrote: > Hi, I'm trying to build a solution to a pre-written source code of a > example of inVRs called MedievalTown, here is the code: > > http://pastebin.com/Jzv4Ci4X > > This is the error: > > /home/andres/Programs/MedievalTown/src/MedievalTown.cpp: In function > ‘int main(int, char**)’: > /home/andres/Programs/MedievalTown/src/MedievalTown.cpp:78: error: > ‘GLUTWindowPtr’ was not declared in this scope > /home/andres/Programs/MedievalTown/src/MedievalTown.cpp:78: error: > expected ‘;’ before ‘gwin’ > /home/andres/Programs/MedievalTown/src/MedievalTown.cpp:79: error: > ‘gwin’ was not declared in this scope > > > I found this > http://www.mail-archive.com/opensg-users@lists.sourceforge.net/msg12338.html > > previous solved issue, with the difference that my OS is debian amd64, I > tried to add 'OSG_WITH_GLUT' to the .cpp, but depending on where I put > it, I get new errors, exactly where should it be?
for 1.x best on the compiler command line (where it is for the main OpenSG build). Just add -DOSG_WITH_GLUT when compiling the source. Without seeing the new errors it is hard to tell what might go wrong, are these OpenSG errors or system errors, e.g. "can't find GL/glut.h" followed by missing declarations from glut ? kind regards gerrt ------------------------------------------------------------------------------ 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