Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Cross Compiling error

Hi Paulo,

I was looking at your problem and I noticed that you are using -DPAHO_WITH_OPENSSL. I think you should use -DPAHO_WITH_SSL instead.

Kind regards

On Fri, Feb 10, 2017 at 10:13 PM, Paulo Balbino <paulo.indusoft@xxxxxxxxx> wrote:
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


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



--
Otavio R. Piske
Messaging Quality Assurance Engineer

Back to the top