franzhollerer commented on issue #187: cpp/CMakeLists.txt: fix qpid-proton-cpp linking URL: https://github.com/apache/qpid-proton/pull/187#issuecomment-566515662 I found that this commit fixes a problem I had with cross compiling qpid-proton-cpp. http://qpid.2158936.n2.nabble.com/Cross-Compiling-qpid-proton-0-30-0-with-Yocto-SDK-td7689081.html Alternatively, adding ``` link_directories(${PN_C_LIBRARY_DIR}) ``` to cpp/CMakeLists.txt solved too. I am unsure which one is the better fix. @astitcher wrote: > Are you perhaps trying to build the cpp directory of the qpid-proton tree by itself? Currently the only way to build the C++ API is as part of the full tree build. I think @ffontaine faced a similar problem than I. I tried to build the C++ API with a cross compiler as part of the full tree build. The build failed because the libqpid-proton-proactor.so was not found during the linking step. Building qpid-proton for the host succeeded. Thus it may be some incompatibility with the toolchain file generated provided by Yocto. This fix solved this issue.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
