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

catkin_make error, I had googled but failed to find solution #4

Open
drscopus opened this issue Jun 12, 2018 · 1 comment
Open

catkin_make error, I had googled but failed to find solution #4

drscopus opened this issue Jun 12, 2018 · 1 comment

Comments

@drscopus
Copy link

/usr/bin/ld: CMakeFiles/openpose_ros_node.dir/src/openpose_ros_node.cpp.o: undefined reference to symbol 'ZN6google14FlagRegistererC1EPKcS2_S2_S2_PvS3'
/usr/local/lib/libgflags.so.2: error adding symbols: DSO missing from command line

I have downloaded and installed gflags-2.1.2. So I don't know how to solve this problem.
Looking forwards to any great advices.

@PeterBee97
Copy link

I met the same problem, here's my workaround:

  1. make sure "gflags" in find_package is uncommented, then clone https://github.com/davetcoleman/gflags in the src folder
  2. According to readme from the link above, added "DEFINE_int32(mode, 2, "Mode"); " in the header and "google::ParseCommandLineFlags(&argc, &argv, true); int mode = FLAGS_mode;" in the main function.
  3. Change the default fallback flags passed in the code.
    There you should compile fine.

Peter

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

2 participants