Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build sucess but run error? #19

Closed
westeast opened this issue Sep 9, 2017 · 7 comments
Closed

build sucess but run error? #19

westeast opened this issue Sep 9, 2017 · 7 comments

Comments

@westeast
Copy link
Contributor

westeast commented Sep 9, 2017

./build.sh build
result:

<== Finished processing package [231 of 231]: 'xacro'
============================
[ OK ] Build ros succeed!
============================

run roscore

Traceback (most recent call last):
  File "/home/westeast/git/indigo/src/install/ros_x86_64/bin/roscore", line 36, in <module>
    from rosmaster.master_api import NUM_WORKERS
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rosmaster/__init__.py", line 35, in <module>
    from .main import rosmaster_main
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rosmaster/main.py", line 43, in <module>
    import rosmaster.master
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rosmaster/master.py", line 45, in <module>
    import rosgraph.xmlrpc
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rosgraph/__init__.py", line 36, in <module>
    from . masterapi import Master, MasterFailure, MasterError, MasterException
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rosgraph/masterapi.py", line 49, in <module>
    from rospy.impl.broadcast_manager import BroadcastManager
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/__init__.py", line 49, in <module>
    from .client import spin, myargv, init_node, \
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/client.py", line 60, in <module>
    import rospy.impl.init
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/impl/init.py", line 54, in <module>
    from .tcpros import init_tcpros
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/impl/tcpros.py", line 45, in <module>
    import rospy.impl.tcpros_service
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 65, in <module>
    from broadcast_manager import BroadcastManager
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/impl/broadcast_manager.py", line 58, in <module>
    from rospy.impl import participant
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/impl/participant.py", line 28, in <module>
    _participant = swig_import_helper()
  File "/home/westeast/git/indigo/src/install/ros_x86_64/lib/python2.7/dist-packages/rospy/impl/participant.py", line 20, in swig_import_helper
    import _participant
ImportError: /home/westeast/git/indigo/src/install/ros_x86_64/lib/_participant.so: undefined symbol: _ZN3ros11Participant8read_msgEv
@quning18
Copy link
Contributor

Have you source the setup.bash first in the installed directory?

@westeast
Copy link
Contributor Author

@quning78 have source the setup.bash. and I rebuild the third_party/swig_wrapper and fix the problem

but I have another problem when run roscore

system/indigo/src/install/ros_x86_64/lib/rosout/rosout: symbol lookup error: system/indigo/src/install/ros_x86_64/lib/librosconsole_log4cxx.so: undefined symbol: _ZN7log4cxx16AppenderSkeleton9setOptionERKSsS2_

@westeast
Copy link
Contributor Author

@quning78 rosconsole_log4cxx.so is also in third_party and I have rebuild it .

@westeast
Copy link
Contributor Author

I delete the rosconsole*.lib and run roscore sucessfully

@echotor
Copy link

echotor commented Apr 1, 2018

@westeast 你好,请问你怎么解决这个问题,我也遇到了,但是我重新编译了_participant.so这个库也没用

@sychaichangkun
Copy link

@westeast Hello, I met the problem
system/indigo/src/install/ros_x86_64/lib/rosout/rosout: symbol lookup error: system/indigo/src/install/ros_x86_64/lib/librosconsole_log4cxx.so: undefined symbol: _ZN7log4cxx16AppenderSkeleton9setOptionERKSsS2_ .
and I try to delete rosconsole*.lib as you mentioned, but can't find where it is.
Could you please explain it?

@GitBubble
Copy link

GitBubble commented Apr 28, 2018

system/indigo/src/install/ros_x86_64/lib/rosout/rosout: symbol lookup error: system/indigo/src/install/ros_x86_64/lib/librosconsole_log4cxx.so: undefined symbol: ZN7log4cxx16AppenderSkeleton9setOptionERKSsS2

this is really a annoying bug and still not fixed but closed .... amazing... :p

i open a new issue here #62 , here is the PR #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants