Hi everyone,
I am trying to cross compile the Paho C for (raspberry/Xcale and other plataforms), using the CMake, I am trying to use both paho.mqtt.c-1.1.0 also paho.mqtt.c-master, it seems that the CMAKE_TOOLCHAIN_FILE option is ignored, it compiles mqtt3c.so but none of the asyncronous version or SSL versions mqtt3cs mqtt3as.
How do you guys work cross compiling this library?
First try:
cmake -DPAHO_WITH_OPENSSL=TRUE -DOPENSSL_INC_SEARCH_PATH=/home/indusoft/Desktop/Drivers/DEV/ThirdParty/paho_1_1_0/../../../ThirdParty/openssl-1.0.2k/include/ -DOPENSSL_LIB_SEARCH_PATH=/home/indusoft/Desktop/Drivers/DEV/ThirdParty/paho_1_1_0/../../../ThirdParty/openssl-binaries/gnuabins/
-DCMAKE_TOOLCHAIN_FILE=/home/indusoft/Desktop/crosseabi.cmake
make
Second try:
cmake -DPAHO_WITH_OPENSSL=TRUE -DOPENSSL_INC_SEARCH_PATH=/home/indusoft/Desktop/Drivers/DEV/ThirdParty/paho_1_1_0/../../../ThirdParty/openssl-1.0.2k/include/ -DOPENSSL_LIB_SEARCH_PATH=/home/indusoft/Desktop/Drivers/DEV/ThirdParty/paho_1_1_0/../../../ThirdParty/openssl-binaries/gnuabibins/ -DCMAKE_C_COMPILER=/opt/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/bin/arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=/opt/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/bin/arm-linux-gnueabihf-g++ -DCMAKE_STRIP=/opt/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/bin/arm-linux-gnueabihf-strip -DCMAKE_CROSS_PREFIX=/opt/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/bin/arm-linux-gnueabihf-
make
Thanks,
Paulo Balbino