Skip to content

Cmake finds zmq include and library but 'zmq.hpp' file not found at compile time

jeanjacquemier@macbookair PhoenixZMQ % ./install.sh    
 
phoenixcmake-config found. 
Let s install the current project
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PhoenixCMake scripts in : /Users/jeanjacquemier/usr/share/cmake/Modules
-- Build on macosx
-- Program PhoenixZMQ version 2.0.0
-- Program PhoenixZMQ long version  (master b07ab7c53c3e5967bdbeee861814a443337a8556)
-- PROJECT_GIT_URL = https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixZMQ.git
-- Option help can be shown with make helpoption (see file phoenix_help.md in the build directory)
-- CMAKE_MODULE_PATH = '/Users/jeanjacquemier/usr/share/cmake/Modules'
-- PhoenixDataStream not found
-- Find project PhoenixDataStream in /Users/jeanjacquemier/working_dir/Atlas/Phoenix/PhoenixZMQ/tmp_project/PhoenixDataStream
-- Found PhoenixCMake scripts in : /Users/jeanjacquemier/usr/share/cmake/Modules
-- Generate find 'FindPhoenixDataStream.cmake'
-- CMAKE_MODULE_PATH = '/Users/jeanjacquemier/usr/share/cmake/Modules'
-- PhoenixSocket not found
-- Find project PhoenixSocket in /Users/jeanjacquemier/working_dir/Atlas/Phoenix/PhoenixZMQ/tmp_project/PhoenixSocket
-- Found PhoenixCMake scripts in : /Users/jeanjacquemier/usr/share/cmake/Modules
-- CMAKE_MODULE_PATH = '/Users/jeanjacquemier/usr/share/cmake/Modules'
-- PhoenixDataStream not found
-- Project PhoenixDataStream already found, target phoenix_PhoenixDataStream_found exits
-- Generate find 'FindPhoenixSocket.cmake'
-- CONDA_PREFIX = ''
-- CONDA_ENV_PATH = ''
**-- Find zmq include at /usr/local/include
-- Find zmq library at /usr/local/lib**
-- Generate find 'FindPhoenixZMQ.cmake'
-- Configuring done (1.6s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/jeanjacquemier/working_dir/Atlas/Phoenix/PhoenixZMQ/build
[  5%] Building CXX object tmp_project/PhoenixDataStream/src/CMakeFiles/phoenix_data_stream.dir/data_stream_file_simple_type.cpp.o
[ 11%] Building CXX object tmp_project/PhoenixDataStream/src/CMakeFiles/phoenix_data_stream.dir/data_stream_assert.cpp.o
[ 17%] Update cmake_install.cmake of project PhoenixZMQ
[ 23%] Building CXX object CMakeFiles/uninstall_phoenixzmq.dir/phoenix_base_uninstall_main.cpp.o
[ 29%] Building CXX object tmp_project/PhoenixDataStream/src/CMakeFiles/phoenix_data_stream.dir/data_stream_message.cpp.o
[ 35%] Building CXX object tmp_project/PhoenixDataStream/src/CMakeFiles/phoenix_data_stream.dir/data_stream_size.cpp.o
[ 41%] Building CXX object tmp_project/PhoenixDataStream/src/CMakeFiles/phoenix_data_stream.dir/data_stream_isSimpleType.cpp.o
[ 47%] Building CXX object tmp_project/PhoenixDataStream/src/CMakeFiles/phoenix_data_stream.dir/data_stream_file.cpp.o
[ 47%] Built target update_install_cmake
[ 52%] Linking CXX executable uninstall_phoenixzmq
[ 52%] Built target uninstall_phoenixzmq
[ 58%] Linking CXX shared library libphoenix_data_stream.dylib
[ 58%] Built target phoenix_data_stream
[ 76%] Building CXX object tmp_project/PhoenixSocket/src/CMakeFiles/phoenix_socket.dir/PMockBackend.cpp.o
[ 76%] Building CXX object tmp_project/PhoenixSocket/src/CMakeFiles/phoenix_socket.dir/phoenix_mock_socket.cpp.o
[ 76%] Building CXX object tmp_project/PhoenixSocket/src/CMakeFiles/phoenix_socket.dir/PEmptyBackend.cpp.o
[ 82%] Linking CXX shared library libphoenix_socket.dylib
[ 82%] Built target phoenix_socket
[ 94%] Building CXX object src/CMakeFiles/phoenix_zmq.dir/PZmqBackend.cpp.o
[ 94%] Building CXX object src/CMakeFiles/phoenix_zmq.dir/phoenix_zmq.cpp.o
In file included from /Users/jeanjacquemier/working_dir/Atlas/Phoenix/PhoenixZMQ/src/phoenix_zmq.cpp:8:
/Users/jeanjacquemier/working_dir/Atlas/Phoenix/PhoenixZMQ/src/phoenix_zmq.h:11:10: fatal error: 'zmq.hpp' file not found
   11 | #include <zmq.hpp>
      |          ^~~~~~~~~
Edited by Jean Jacquemier