Install on ubuntu 20.04
skaae opened this issue · 0 comments
Hi,
I'm struggling to install SimpleAmqpClient on ubuntu 20.04.
Im currently just trying to install rabbitmq-c and SimpleAmqpClient by following the travis setup.
When I follow the steps in travis.yaml I'm stuck at
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${FLAGS}" -DCMAKE_INSTALL_PREFIX=../_install -DENABLE_TESTING=ON -DRabbitmqc_DIR=${RABBITMQ_C_DIR} ..
Im a little surprised that this even works in Travis because RABBITMQ_C_DIR
is not defined. Instead RABBITMQC_DIR
is defined (extract underscore before C)? Is that a typo?
I tried to change the -DRabbitmqc_DIR=${RABBITMQ_C_DIR}
to -DRabbitmqc_DIR=${RABBITMQC_DIR}
. With that change I do pick up the rabbitmq-c library's include path but not the the lib path.
The issue for me seems to be that the hint below is pointing to ${Rabbitmqc_DIR}/lib
:
SimpleAmqpClient/Modules/FindRabbitmqc.cmake
Lines 11 to 14 in e474a06
if I change the hint to ${Rabbitmqc_DIR}/lib/x86_64-linux-gnu
I do find the include path and the library path.
I have been away from cmake for a while so its proably something obvious that I'm missing.