Re: plugin example problem under linux
jon klein <[email protected]> Tue, 7 Dec 2004 14:19:06 +0100
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
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