Build fails on Mac OSX 10.14 with error libtcmalloc not found
Posted: Fri Sep 25, 2020 5:33 pm
Hi,
I have been trying to install since the past 3 days, i did install all the dependencies too, i have installed google-perftools with brew and cmake has detected the gperftools at
However the build fails with the error:
I did try the option HPX_WITH_MALLOC=system, i still get the same error, and i am not able to resolve this by myself. Can someone please help, Thank you.
-J
Edit : I think something has to be changed in src/testing/CMakeLists.txt file at lines:
at line tcmalloc profiler.
I have been trying to install since the past 3 days, i did install all the dependencies too, i have installed google-perftools with brew and cmake has detected the gperftools at
Code: Select all
"Found GooglePerfTools: /usr/local/lib/libtcmalloc.dylib"
Code: Select all
[100%] Linking CXX executable argos3_prof
ld: library not found for -ltcmalloc
-J
Edit : I think something has to be changed in src/testing/CMakeLists.txt file at lines:
Code: Select all
if(ARGOS_BUILD_FOR_SIMULATOR AND GOOGLEPERFTOOLS_FOUND)
add_executable(argos3_prof
${CMAKE_SOURCE_DIR}/core/simulator/query_plugins.cpp
${CMAKE_SOURCE_DIR}/core/simulator/main.cpp)
target_link_libraries(argos3_prof
tcmalloc profiler