osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: dyld: Symbol not found:
__cg_jpeg_resync_to_restart - msg#00120

List: science.robotics.playerstage.user

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index


On Apr 15, 2006, at 4:09 AM, David Scheiner wrote:

I decided to try it on MacOS X Tiger (10.4.6)

src/stest worlds/simple.world robot1

dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
Expected in: /sw/lib/libJPEG.dylib

Trace/BPT trap

This seems to be a problem with multiple versions of "libJPEG.dylib" (or "libjpeg.dylib" because a default installation of Tiger is on a case-insensitive file system) in Tiger. I have:
- "/sw/lib/libjpeg.dylib" from my Fink installation
- "/System/Library/Frameworks/ApplicationServices.framework/ Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJPEG.dylib" which is part of the Tiger operating system itself.

I tried various settings of the environment variables "DYLD_LIBRARY_PATH", "DYLD_FALLBACK_LIBRARY_PATH" and "LD_LIBRARY_PATH" to get Stage to link correctly. But I found no solution.

Hmm, I don't have that problem on my Tiger installation. I suppose I'm using a case-sensitive filesystem. I googled a bit and found the following tips that you can try (scroll down to Troubleshooting):

http://wiki.urbanek.info/index.cgi?TigeR

Looks like you need to either link statically, or remove one of the symlinks (/sw/lib/libjpeg.dylib, I would guess). To link everything statically, you can pass --disable-shared to the configure scripts of Player and Stage.

brian.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


Thread at a glance:

Previous Message by Date:

undefined symbol: playerc_simulation_set_property_string

Hello! I'm using playerstage and want to use the python bindings. when i install player-2.0.1 and stage-2.0.1 they work fine, but i get an import error in python. both on my laptop(debian) and on my home pc(gentoo). Python 2.4.2 (#1, Dec 13 2005, 22:32:56) [GCC 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import playerc Traceback (most recent call last): File "<stdin>", line 1, in ? File "/home/marco/robotica/ps2//lib/python2.4/site-packages/playerc.py", line 5, in ? import _playerc ImportError: /home/marco/robotica/ps2/lib/python2.4/site-packages/_playerc.so: undefined symbol: playerc_simulation_set_property_string >>> if i use nm i get: bash-2.05b$ nm lib/python2.4/site-packages/_playerc.so |grep playerc_simulation_set_prop U playerc_simulation_set_property_double U playerc_simulation_set_property_int U playerc_simulation_set_property_string 00085a4f t _wrap_playerc_simulation_set_property_double 000858e1 t _wrap_playerc_simulation_set_property_int 00085bbd t _wrap_playerc_simulation_set_property_string does anybody have similar issue with python bindings? thanks in advance. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Next Message by Date:

Re: undefined symbol: playerc_simulation_set_property_string

On Apr 15, 2006, at 3:31 AM, Marco Linux wrote: I'm using playerstage and want to use the python bindings. when i install player-2.0.1 and stage-2.0.1 they work fine, but i get an import error in python. both on my laptop(debian) and on my home pc(gentoo). Python 2.4.2 (#1, Dec 13 2005, 22:32:56) [GCC 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import playerc Traceback (most recent call last): File "<stdin>", line 1, in ? File "/home/marco/robotica/ps2//lib/python2.4/site-packages/ playerc.py", line 5, in ? import _playerc ImportError: /home/marco/robotica/ps2/lib/python2.4/site-packages/ _playerc.so: undefined symbol: playerc_simulation_set_property_string I can replicate the problem on my Ubuntu machine. Turns out that playerc_simulation_set_property_string and playerc_simulation_set_property_double are prototyped in playerc.h but not implemented. I've fixed that by adding dummy implementations; a patch against player-2.0.1 is attached. Unfortunately, I now get the following error when importing playerc: File "/home/gerkey/ps-2.0/lib/python2.4/site-packages/playerc.py", line 5168, in player_simulation_property_int_req_t if _newclass:value = property (_playerc.player_simulation_property_int_req_t_value_get, _playerc.player_simulation_property_int_req_t_value_set) TypeError: 'property' object is not callable It seems that the field 'property' in the structure player_simulation_property_int_req_t is confusing Python, in which 'property' is a type. SWIG's auto-generated Python code is creating a local variable called 'property,' which makes the subsequent cast to the type 'property' fail. Anybody know how to get around this (besides changing the name of the field in the structure)? brian. playerc.patch Description: Binary data

Previous Message by Thread:

dyld: Symbol not found: __cg_jpeg_resync_to_restart

Greetings, After several failed attempts to install Player/Stage on MacOS X Panther (10.3.7) I decided to try it on MacOS X Tiger (10.4.6) because several people on the mailing said that they had a working installation using Tiger. I was able to compile and install Player 2.0.1 and Stage 2.0.1 but there seems to be a linking problem. When I run the test programm for Stage: src/stest worlds/simple.world robot1 I get the following error: dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /sw/lib/libJPEG.dylib Trace/BPT trap This seems to be a problem with multiple versions of "libJPEG.dylib" (or "libjpeg.dylib" because a default installation of Tiger is on a case-insensitive file system) in Tiger. I have: - "/sw/lib/libjpeg.dylib" from my Fink installation - "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ Versions/A/Resources/libJPEG.dylib" which is part of the Tiger operating system itself. I tried various settings of the environment variables "DYLD_LIBRARY_PATH", "DYLD_FALLBACK_LIBRARY_PATH" and "LD_LIBRARY_PATH" to get Stage to link correctly. But I found no solution. Which environment variables did you use to install and run Player/Stage on MacOS X Tiger? What other special steps are required to install Player/Stage on MacOS X Tiger? Thanks for your help. Best regards, David Scheiner ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Next Message by Thread:

Re: Re: dyld: Symbol not found: __cg_jpeg_resync_to_restart

Brian wrote Hmm, I don't have that problem on my Tiger installation. I suppose I'm using a case-sensitive filesystem. I googled a bit and found the following tips that you can try (scroll down to Troubleshooting): http://wiki.urbanek.info/index.cgi?TigeR Looks like you need to either link statically, or remove one of the symlinks (/sw/lib/libjpeg.dylib, I would guess). To link everything statically, you can pass --disable-shared to the configure scripts of Player and Stage. brian. Removing the symlinks /sw/lib/libpng.dylib /sw/lib/libtiff.dylib /sw/lib/libgif.dylib /sw/lib/libjpeg.dylib was necessary. Now Player/Stage 2.0.1 works. Thank you very much for your help. Best regards, David Scheiner ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!