Re: plugin example problem under linux
Marc Szymanski <[email protected]> Tue, 28 Dec 2004 16:58:56 +0100
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
Dear all,
I managed to compile and link the breve 2.0 source on SuSE 9.2. The problems
with the pthread library seem to come from the config.ac-file. Just remove
the -Xlinker in the EXTRALDFLAGS and everything runs fine.
linux* )
dnl Linux configuration
GLLIBS="-Xlinker -Bdynamic -L$x_libraries -lglut -lGL -lGLU -lXmu -lXt -lSM
-lICE -lX11 -lXi -lXext"
EXTRALDFLAGS="-Bstatic"
PLUGINFLAGS="-shared"
AC_DEFINE([LINUX], [], [Linux])
LDFLAGS="${LDFLAGS} -rdynamic -Xlinker -E"
ARCHIVER="tar -zcvf"
ARCHIVE_SUFFIX="tar.gz"
PLATFORM="linux"
;;
Best regards,
Marc.
Am Dienstag, 7. Dezember 2004 16:36 schrieb Marc Szymanski:
> Ok...
> I still have some trouble with the source version (I get a segmentation
> fault) but finally I managed to get the sample plugin work. The problem
> was, that in the c++SampleDemo.tz was written:
>
> @plugin "c++Sample_plugin.o" (cppSampleLoadFunctions).
>
> but it seems that it should be the shared object file and not the object
> file:
>
> @plugin "c++Sample_plugin.so.1.0" (cppSampleLoadFunctions).
>
> this works fine, now.
>
> Best regards,
> Marc.
>
> Am Dienstag, 7. Dezember 2004 14:19 schrieb jon klein:
> > On Dec 7, 2004, at 11:06 AM, Marc Szymanski wrote:
> > > Dear all,
> > >
> > > I would like to write a plugin for breve. But as I compiled the plugin
> > > example
> > > and tried to start it I got the following error messages.
> > >
> > > error loading plugin c++Sample_plugin.o:
> > > /home/szymansk/workspace/extern/
> > > breve/breve_2.0/plugins/samples/c++Sample_plugin.o: ELF file's
> > > phentsize not
> > > the expected size
> > > Unknown Function Error: Internal function "cppSampleMakeTestClass" not
> > > found
> > > at line 27 of file "c++SampleDemo.tz"
> >
> > I haven't seen this error before. What flavor of Linux do you run? The
> > Linux machine I do my compiles on is Debian.
> >
> > > I thought may be I need to link the object-file with the original breve
> > > libraries so I tried to compile the breve source version. But I got
> > > stuck.
> >
> > The changes you mentioned have all now been fixed in the source.
> >
> > > After all that changes I was able to compile everything, but than I
> > > got the
> > > following messages while linking
> >
> > ...
> >
> > > ../lib/libbrsimulation.a(link.o)(.text+0xf77): In function
> > > `slLinkApplyJointControls':
> > > /home/szymansk/workspace/extern/breve/breve_source/simulation/link.c:
> > > 405:
> > > undefined reference to `dJointAddHingeTorque'
> >
> > This particular error probably means you need to update the version of
> > ODE you have installed.
> >
> > As for the other errors listed below, as far as I can tell, it's
> > something
> > in the pthreads library, and not anything in breve. Have you
> > successfully
> > linked other programs against this version of pthreads? Perhaps there's
> > another library that needs to be linked with this pthreads library...
> >
> > - jon klein
> >
> > > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../
> > > libpthread.a(pthread.o)
> > > (.text+0x10f): In function `pthread_initialize':
> > > /usr/src/packages/BUILD/glibc-2.3.2/linuxthreads/pthread.c:506:
> > > undefined
> > > reference to `_res'
> > > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../
> > > libpthread.a(pthread.o)
> > > (.text+0xa19): In function `__pthread_reset_main_thread':
> > > /usr/src/packages/BUILD/glibc-2.3.2/linuxthreads/pthread.c:1072:
> > > undefined
> > > reference to `_res'
> > > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../
> > > libpthread.a(pthread.o)
> > > (.text+0xa1e):/usr/src/packages/BUILD/glibc-2.3.2/linuxthreads/
> > > pthread.c:1070: undefined reference to `_errno'
> >
> > _______________________________________________
> > breve mailing list
> > [email protected]
> > http://lists.spiderland.org/mailman/listinfo/breve
--
--------------------------------------------------------------------------
Dipl.-Inform. Marc Szymanski
Institute for Process Control and Robotics(IPR), Universität Karlsruhe(TH)
Kaiserstr. 12, D-76128 Karlsruhe, Germany
Phone: +49 721 608 6694, Fax: +49 721 608 7141
WWW http://wwwipr.ira.uka.de/~szymansk
_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve