Skip to content

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

@cortexiphan

Description

@cortexiphan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions