monsdar / CxxProf

CxxProf is a manual instrumented Profiling library for C++. It's goal is to provide easy integration into existing projects with just as little overhead as possible. It should be easy to remove the profiling mechanism during compile and runtime from the code.
GNU General Public License v3.0
58 stars 5 forks source link

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

Open cortexiphan opened 10 years ago

cortexiphan commented 10 years ago

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 commented 10 years ago

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?