Coder Social home page Coder Social logo

catkin build error about rpg_svo_example HOT 3 OPEN

uzh-rpg avatar uzh-rpg commented on June 26, 2024
catkin build error

from rpg_svo_example.

Comments (3)

Romanenko-Serhii avatar Romanenko-Serhii commented on June 26, 2024 2

Yes, i had the same mistake.

How i solved that:
sudo apt-get install libgoogle-glog-dev libgflags-dev

Then, you need find libgflags.so in /usr/lib/ this file (for me it was /usr/lib/x86_64-linux-gnu/libgflags.so), and make link to /home/upboard/svo_install_ws/install/lib/
ln -s /usr/lib/x86_64-linux-gnu/libgflags.so /home/upboard/svo_install_ws/install/lib/

Then you need to do same for libglog.so

And again build you svo_ros.

If it will build, for start SVO2 i writing:
LD_PRELOAD=/home/zichao/svo_install_ws/install/lib/libgflags.so.2.2.1 roslaunch svo_ros launch_name.launch

If don't use LD_PRELOAD, you will have mistake.

from rpg_svo_example.

BirBikram avatar BirBikram commented on June 26, 2024

I used your method and successfully built it in my machine.
Now I can't run the examples,as it shows error. I already tried using the way wrote:
LD_PRELOAD=/home/bikram/svo_install_ws/install/lib/libgflags.so.2.2.1 roslaunch svo_ros launch_name.launch

It just shows an error:
auto-starting new master
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
process[master]: started with pid [23622]
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 03e49b90-4526-11e8-9274-9cb6d0177e71
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
process[rosout-1]: started with pid [23635]
started core service [/rosout]
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
process[svo-2]: started with pid [23653]
/home/bikram/svo_install_overlay_ws/devel/lib/svo_ros/svo_node: error while loading shared libraries: libgflags.so.2.2: cannot open shared object file: No such file or directory
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
process[vis-3]: started with pid [23654]
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
process[svo_gui-4]: started with pid [23655]
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[svo-2] process has died [pid 23653, exit code 127, cmd /home/bikram/svo_install_overlay_ws/devel/lib/svo_ros/svo_node __name:=svo __log:=/home/bikram/.ros/log/03e49b90-4526-11e8-9274-9cb6d0177e71/svo-2.log].
log file: /home/bikram/.ros/log/03e49b90-4526-11e8-9274-9cb6d0177e71/svo-2*.log
ERROR: ld.so: object 'svo_install_ws/install/lib/libgflags.so.2.2.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Any idea what is wrong :(

from rpg_svo_example.

slinshady89 avatar slinshady89 commented on June 26, 2024

Hey I deleted the two files because they're only text-files containing the lib's name:

file /home/localadmin/svo_install_ws/install/lib/libgflags.so
/home/localadmin/svo_install_ws/install/lib/libgflags.so: ASCII text, with no line terminators

If you compare them to another one you'll see the difference:

file /home/localadmin/svo_install_ws/install/lib/libvikit_ros.so
/home/localadmin/svo_install_ws/install/lib/libvikit_ros.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=3dfc6fd2293a152d5ad4a9dee6dd3f5bb38213e7, not stripped

so I deleted libglog.so and libgflag.so and did the symbolic links:

ln -s /usr/lib/x86_64-linux-gnu/libglog.so /home/localadmin/svo_install_ws/install/lib/libglog.so
ln -s /usr/lib/x86_64-linux-gnu/libgflags.so /home/localadmin/svo_install_ws/install/lib/libgflags.so

afterwards the catkin build was working for me.

from rpg_svo_example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.