lient.lo vbase64.lo -L../lib -lm -luuid -lpthread -lcommon -lpaho-mqtt3cs
libtool: link: gcc -shared -fPIC -DPIC .libs/agent_curl.o .libs/agent_market.o .libs/agent_license.o .libs/agent_public.o .libs/agent_webssh.o .libs/agent_upgrade.o .libs/agent_server.o .libs/license_client.o .libs/vm_client.o .libs/vbase64.o -L../lib -lm -luuid -lpthread -lcommon -lpaho-mqtt3cs -O2 -Wl,-soname -Wl,libagent.so.0 -o .libs/libagent.so.0.0.0
/usr/bin/ld: skipping incompatible //usr/local/lib/libpaho-mqtt3cs.so when searching for -lpaho-mqtt3cs
/usr/bin/ld: cannot find -lpaho-mqtt3cs
collect2: error: ld returned 1 exit status
x86架构与arm架构lib库不能通用
[root@arm-centos /]#
[root@arm-centos /]# ls
bin boot dev etc home lib lib64 libzmq-master libzmq-master.zip media mnt opt paho.mqtt.c-1.3.0 paho.mqtt.c-1.3.0.zip paho.mqtt.c-master.zip proc root run sbin srv sys tmp usr var
[root@arm-centos /]# cd paho.mqtt.c-1.3.0
[root@arm-centos paho.mqtt.c-1.3.0]# ls
about.html appveyor.yml cbuild.bat CMakeLists.txt conanfile.py debian dist edl-v10 LICENSE notice.html src test_package travis-deploy.sh travis-install.sh travis-setup-deploy.sh
android build.xml cmake CODE_OF_CONDUCT.md CONTRIBUTING.md deploy_rsa.enc doc epl-v10 Makefile README.md test travis-build.sh travis-env-vars travis-macos-vars
[root@arm-centos paho.mqtt.c-1.3.0]#
[root@arm-centos paho.mqtt.c-1.3.0]#
[root@arm-centos paho.mqtt.c-1.3.0]#
[root@arm-centos paho.mqtt.c-1.3.0]# make
mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Linux
OSTYPE is Linux
sed -e "s/@CLIENT_VERSION@/1.3.0/g" -e "s/@BUILD_TIMESTAMP@/Tue Apr 14 12:22:20 HKT 2020/g" src/VersionInfo.h.in > build/VersionInfo.h
cc -g -fPIC -Os -Wall -fvisibility=hidden -Ibuild -o build/output/libpaho-mqtt3c.so.1.0 src/Heap.c src/Socket.c src/MQTTProtocolClient.c src/MQTTProtocolOut.c src/SHA1.c src/Base64.c src/MQTTPersistenceDefault.c src/MQTTPacketOut.c src/WebSocket.c src/Clients.c src/OsWrapper.c src/Thread.c src/MQTTPacket.c src/MQTTClient.c src/Log.c src/StackTrace.c src/LinkedList.c src/MQTTReasonCodes.c src/MQTTPersistence.c src/utf-8.c src/MQTTProperties.c src/SocketBuffer.c src/Tree.c src/Messages.c -shared -Wl,-init,MQTTClient_init -lpthread -Wl,-soname,libpaho-mqtt3c.so.1
ln -s libpaho-mqtt3c.so.1.0 build/output/libpaho-mqtt3c.so.1
ln -s libpaho-mqtt3c.so.1 build/output/libpaho-mqtt3c.so
cc -g -fPIC -Os -Wall -fvisibility=hidden -Ibuild -o build/output/libpaho-mqtt3cs.so.1.0 src/Heap.c src/Socket.c src/SSLSocket.c src/MQTTProtocolClient.c src/MQTTProtocolOut.c src/SHA1.c src/Base64.c src/MQTTPersistenceDefault.c src/MQTTPacketOut.c src/WebSocket.c src/Clients.c src/OsWrapper.c src/Thread.c src/MQTTPacket.c src/MQTTClient.c src/Log.c src/StackTrace.c src/LinkedList.c src/MQTTReasonCodes.c src/MQTTPersistence.c src/utf-8.c src/MQTTProperties.c src/SocketBuffer.c src/Tree.c src/Messages.c -DOPENSSL -shared -Wl,--start-group -lpthread -ldl -lssl -lcrypto -Wl,--end-group -Wl,-init,MQTTClient_init -Wl,-soname,libpaho-mqtt3cs.so.1 -Wl,-no-whole-archive
阅读(3751) | 评论(0) | 转发(0) |