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

Unusual make error #5

Open
sky-coder opened this issue Jun 12, 2018 · 5 comments
Open

Unusual make error #5

sky-coder opened this issue Jun 12, 2018 · 5 comments

Comments

@sky-coder
Copy link

Hi, I got stumbled with the following unusual make error: Any insights would be appreciated!

[ 33%] Linking CXX executable ../bin/BagFromImages
/usr/bin/ld: CMakeFiles/BagFromImages.dir/main.cc.o: undefined reference to symbol '_ZN14console_bridge3logEPKciNS_8LogLevelES1_z'
/usr/lib/x86_64-linux-gnu/libconsole_bridge.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/BagFromImages.dir/build.make:219: recipe for target '../bin/BagFromImages' failed
make[2]: *** [../bin/BagFromImages] Error 1
CMakeFiles/Makefile2:677: recipe for target 'CMakeFiles/BagFromImages.dir/all' failed
make[1]: *** [CMakeFiles/BagFromImages.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@panecho
Copy link

panecho commented Jul 12, 2018

it's a problem of lib linkage. According to the error msg, libconsole_bridge should be linked apparently in CMakeLists.txt. like:

target_link_libraries (${PROJECT_NAME}
console_bridge)

Hope it will help you.

@ghost
Copy link

ghost commented Nov 20, 2018

Thanks! @ZhengPan2014

@LiShuaixin
Copy link

Thanks!!!! @ZhengPan2014

1 similar comment
@wanjh1024
Copy link

Thanks!!!! @ZhengPan2014

@X-NEARS
Copy link

X-NEARS commented Nov 11, 2022

I went ahead and added the following code to build successfully
target_link_libraries (${PROJECT_NAME} console_bridge boost_system boost_filesystem)

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