2012/4/28, Giovanni Azua <[email protected]>: > > On Apr 28, 2012, at 8:56 AM, Eric Noulard wrote: >> target_link_libraries(benchmark ${MKL_LIBRARIES}) >> >> I cannot ensure this is OK because the FindMKL.cmake module >> does not seem to be in CMake source. >> >> > Thank you! this solved the compilation issue in Mac OS X still a progress :) > but not in Ubuntu 12.04 :( I still can't still debug/execute.
Really I can't give you more valuable advice without having a way to reproduce the issue. When does the error happen on Ubuntu? Compile-time? Link time? Debug time? What error output do you get? Would you be able to set up a simplistic project which exhibit the issue and post the whole source code here? > I get the following error trying to debug/execute: > dyld: Library not loaded: libmkl_rt.dylib > Referenced from: > /Users/bravegag/code/fastcode_project/build_debug/test_matrix > Reason: image not found > > I added the libmkl_rt.so to the project but still doesn't help. Is libmkl_rt in the MKL_LIBRARIES library list? > Can anyone advice? Check RPATH setting of your executable http://www.cmake.org/Wiki/CMake_RPATH_handling If libraries are not found at debug time either RPATH is not set in the build tree or the library is loaded indirectly and/or dynamically AND explicitely or LD_LIBRARY_PATH has been set to innappropriate value. Can you debug from the command line using gdb? -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
