Linking the vampir trace libraries in Cmake -
i having trouble linking vampir trace libraries in cmake. tried follow code in http://code.ohloh.net/file?fid=kpkr7xbirapei6b9ri03no7f-qo&cid=qbbsybai9cm&s=&browser=default&fp=301524&mpundefined&projselected=true#l0
i have in part of cmake file:
set(vampirtrace_root $home/downloads/vampirtrace-5.14.4) set(vampirtrace_libraries ${vampirtrace_root}/vtlib/.libs/libvt.so) include_directories(${vampirtrace_root}/include) add_definitions( -dvtrace ) add_executable(applyingvtkmarchingcubes applyingvtkmarchingcubes.cxx) target_link_libraries(applyingvtkmarchingcubes ${vampirtrace_libraries})
but when cmake , make, can't recognize header file #include "vt_user.h" still.
thanks
set(vampirtrace_root $home/downloads/vampirtrace-5.14.4)
are trying read environment variable home? if right way is:
set(vampirtrace_root $env{home}/downloads/vampirtrace-5.14.4)
ps can find such errors if turn on compiler messages:
set(cmake_verbose_makefile true)
and take @ compiler line. must this:
g++ -i/downloads/vampir../include
but expect:
g++ -i/home/username/downloads/vampir../include
Comments
Post a Comment