CoppeliaRobotics / zmqRemoteApi

Other
33 stars 9 forks source link

Can't install cpp client #11

Open matteodv99tn opened 9 months ago

matteodv99tn commented 9 months ago

Good evening, I was trying to install the cpp client library to use on my project, however it seems I am not able to install it. I can compile the project succesfully, but calling either make install and cmake --install . on the build directory doesn't help.

The log I receive is

$ make install
Consolidate compiler generated dependencies of target RemoteAPIClient
[ 16%] Built target RemoteAPIClient
Consolidate compiler generated dependencies of target example
[ 33%] Built target example
Consolidate compiler generated dependencies of target synchronousImageTransmission
[ 50%] Built target synchronousImageTransmission
Consolidate compiler generated dependencies of target bubbleRobClient
[ 66%] Built target bubbleRobClient
Consolidate compiler generated dependencies of target opencv
[ 83%] Built target opencv
Consolidate compiler generated dependencies of target qt
[100%] Built target qt
Install the project...
-- Install configuration: ""

How can I solve this issue?

Furthermore, for clarification, once I want to import the dependency of the client library in another project I should add in the CmakeLists the following requirement?

find_package(zmqRemoteApi-client-cpp3 REQUIRED)

target_link_librarie(mytarget PRIVATE zmqRemoteApi-client-cpp3::RemoteAPIClient)

Thanks for you help. Matteo Dalle Vedove

xbaosong commented 5 months ago

have you solved it yet? The cpp client, by default, doesn't install to system dirs like /usr/local, rather you should include and link by yourself. Also, probably you should compile a shared rather than the default static lib.