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

couldn't find boost libraries when running build.py #46

Open
cortexiphan opened this issue Sep 15, 2014 · 1 comment
Open

couldn't find boost libraries when running build.py #46

cortexiphan opened this issue Sep 15, 2014 · 1 comment

Comments

@cortexiphan
Copy link

Hey, I'm having trouble building CxxProf. When building cxxprof_server the following error ocurs:


| We're building the following components in this iteration:
| -- cxxprof_server
| -- cxxprof_interface_test
| ...cxxprof_server - cmake - SUCCESS
| ...cxxprof_interface_test - cmake - SUCCESS
| ...cxxprof_interface_test - release - SUCCESS
| ...cxxprof_interface_test - debug - SUCCESS
| ...cxxprof_server - release - ~~ ERROR: 2 ~~
Errors occured, stopping the build...

So I look into the logs and found these errors:

Linking CXX executable cxxprof_server
/usr/bin/ld: warning: libboost_thread.so.1.55.0, needed by /home/fatbean/SourceCode/CxxProf/thirdparty/sqlite3cc/lib/libsqlite3cc.so.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libPluma.so, needed by /home/fatbean/SourceCode/CxxProf/cmake/../install/cxxprof_dyn_network/lib/libcxxprof_dyn_network.so, not found (try using -rpath or -rpath-link)
/home/fatbean/SourceCode/CxxProf/cmake/../install/cxxprof_dyn_network/lib/libcxxprof_dyn_network.so: undefined reference to pluma::Provider::~Provider()' /home/fatbean/SourceCode/CxxProf/cmake/../install/cxxprof_dyn_network/lib/libcxxprof_dyn_network.so: undefined reference tovtable for pluma::Provider'
/home/fatbean/SourceCode/CxxProf/cmake/../install/cxxprof_dyn_network/lib/libcxxprof_dyn_network.so: undefined reference to pluma::Host::add(pluma::Provider*)' /home/fatbean/SourceCode/CxxProf/cmake/../install/cxxprof_dyn_network/lib/libcxxprof_dyn_network.so: undefined reference totypeinfo for pluma::Provider'
collect2: error: ld returned 1 exit status
make[2]: *** [cxxprof_server] Error 1
make[1]: *** [CMakeFiles/cxxprof_server.dir/all] Error 2
make: *** [all] Error 2

Well, the libboost_thread.so.1.55.0 and libPluma.so are actually there, But the compile cannot find them. Is there anything wrong when specifying the library path? I don't know much about cmake or make, would you offer some tips of solving these problems?

@monsdar
Copy link
Owner

monsdar commented Sep 30, 2014

You could try to add the pathes where boost and pluma are located in to your LD_LIBRARY_PATH. I must admit that the Linux-builds are not tested as good as the Windows-side.

What Thirdparty package are you using?

@monsdar monsdar closed this as completed Sep 30, 2014
@monsdar monsdar reopened this Sep 30, 2014
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