← Back to team overview

yade-users team mailing list archive

Re: help compiling

 

continued ..

I found the fixes to ErrorTolerantLaw in svn and
replaced the existing .cpp and .hpp files with the
fixed ones.

Finally, the compile finished succesfully.

and exporting LD_LIBRARY_PATH and
setting the gui path, I got a window with a menu.

Yay !

>From what I could find all works. I noticed that
the cpu is 100% if the qglviewer is open, even if
nothing is displayed. It would be great if the
simulation could take advantage of a second cpu, as
well.

Now, I would like to set up my own model. I guess it
is best studying the generated xml files first ?

thanks, Andreas

--- Andreas Plesch <andreasplesch@xxxxxxxxx> wrote:

> Another update:
> 
> I could get rid of the glut.so: undefined reference 
> errors by additionally specifing -lGL and -lGLU
> at his step:
> 
>  g++  -o ../../../bin/yade BodyContainer.o Body.o
> > BoundingVolume.o DeusExMachina.o FileGenerator.o
> > FrontEnd.o GeometricalModel.o
> InteractingGeometry.o
> > InteractionContainer.o Interaction.o MetaBody.o
> > NullGUI.o Omega.o PhysicalActionContainer.o
> > PhysicalParameters.o Preferences.o
> SimulationLoop.o
> > yade.o yadeExceptions.o TimeStepper.o
> > MetaDispatchingEngine.o   
> > -L/tmp/yade/usr/lib/yade/yade-libs
> -L/usr/qt/3/lib64
> > -L/usr/X11R6/lib64 -lyade-lib-threads
> > -lyade-lib-serialization -lyade-lib-factory
> > -lyade-lib-wm3-math -lyade-lib-loki
> > -lyade-lib-multimethods -lglut -rdynamic
> > -lboost_date_time -lboost_filesystem
> > -lboost_thread-mt
> > -lqt-mt -lXext -lX11 -lm
> 
> So I added -lGL and -lGLU to yade.pro in
> yade-core/projects/kdevelop/yade/
> and could then compile_install until ...
> 
> make[5]: Entering directory
>
`/home/andreas/tobesorted/yade-all-0.9.0.911/yade-packages/yade-package-dem/projects/kdevelop/RenderingEngine/GLDrawPolyhedralSweptSphere'
> g++ -c -pipe -Wall -W -march=opteron -O2 -pipe
> -lpthread -pthread -fPIC  -DQT_NO_DEBUG -DQT_SHARED
> -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT
> -I/usr/qt/3/mkspecs/linux-g++ -I.
> -I/tmp/yade/usr/include
>
-I../../DataClass/InteractingGeometry/PolyhedralSweptSphere
> -I/usr/qt/3/include -o GLDrawPolyhedralSweptSphere.o
> GLDrawPolyhedralSweptSphere.cpp
> GLDrawPolyhedralSweptSphere.cpp:37:29:
> GL/freeglut_ext.h: No such file or directory
> 
> I did not have freeglut_ext.h on my system.
> 
> ok, so I replaced glut with freeglut on my system
> and
> tried again. 
> 
> It got past the last error until ...
> 
> g++ -c -pipe -Wall -W -march=opteron -O2 -pipe
> -lpthread -pthread -fPIC  -DQT_NO_DEBUG -DQT_SHARED
> -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT
> -I/usr/qt/3/mkspecs/linux-g++ -I.
> -I/tmp/yade/usr/include
>
-I../../../DataClass/InteractionGeometry/ErrorTolerantContactModel
> -I/usr/qt/3/include -o ErrorTolerantLaw.o
> ErrorTolerantLaw.cpp
> In file included from ErrorTolerantLaw.cpp:24:
> ErrorTolerantLaw.hpp:67: error:
> `boost::numeric::ublas::sparse_matrix' has not been
> declared
> 
> I believe this is the issue with boost 1.33 you had
> mentioned. 
> 
> Should I just downgrade to boost 1.32 ?
> 
> --- Andreas Plesch <andreasplesch@xxxxxxxxx> wrote:
> 
> > Hi !
> > 
> > I found that I have two gl.h, an nividia provided
> > one
> > and a xorg-x11 provided one. The nvidia one the
> one
> > which had the error. It has those lines defining
> > GLAPI:
> > 
> > #ifndef GLAPI
> > # ifdef _WIN32
> > #  define GLAPI __stdcall
> > # else
> > #  define GLAPI
> > # endif
> > # define __DEFINED_GLAPI
> > #endif
> > 
> > 
> > 
> > Ok, I made some progress. I changed to the
> xorg-x11
> > provided gl.h, and this made most (?) compile but
> > there is first a compiler error in the end:
> > 
> > ...
> > g++  -o ../../../bin/yade BodyContainer.o Body.o
> > BoundingVolume.o DeusExMachina.o FileGenerator.o
> > FrontEnd.o GeometricalModel.o
> InteractingGeometry.o
> > InteractionContainer.o Interaction.o MetaBody.o
> > NullGUI.o Omega.o PhysicalActionContainer.o
> > PhysicalParameters.o Preferences.o
> SimulationLoop.o
> > yade.o yadeExceptions.o TimeStepper.o
> > MetaDispatchingEngine.o   
> > -L/tmp/yade/usr/lib/yade/yade-libs
> -L/usr/qt/3/lib64
> > -L/usr/X11R6/lib64 -lyade-lib-threads
> > -lyade-lib-serialization -lyade-lib-factory
> > -lyade-lib-wm3-math -lyade-lib-loki
> > -lyade-lib-multimethods -lglut -rdynamic
> > -lboost_date_time -lboost_filesystem
> > -lboost_thread-mt
> > -lqt-mt -lXext -lX11 -lm
> >
>
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
> > `typeinfo for std::vector<unsigned char,
> > std::allocator<unsigned char> > const*' referenced
> > in
> > section
> >
>
`.gnu.linkonce.t._ZN18FundamentalHandlerISsE7creatorER7ArchiveRN5boost3anyE'
> > of Preferences.o: defined in discarded section
> > `.gnu.linkonce.r._ZTIPKSt6vectorIhSaIhEE' of
> > Preferences.o
> > .. and some more similar
> > 
> > and then a linker error:
> > 
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glPixelStorei'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glBitmap'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `gluErrorString'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glPopAttrib'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glMapGrid2f'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glRotatef'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glEvalMesh2'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glFinish'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glVertex3f'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glXQueryExtension'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glNormal3fv'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `gluNewQuadric'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glViewport'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glVertex3fv'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glBegin'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glDrawBuffer'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glXMakeCurrent'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `gluQuadricDrawStyle'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glXQueryExtensionsString'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glVertex2f'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glXChooseVisual'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `gluCylinder'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> > `glGetError'
> > /usr/X11R6/lib64/libglut.so: undefined reference
> to
> 
=== message truncated ===



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
http://lists.berlios.de/mailman/listinfo/yade-users



Follow ups

References