Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » openwrt: stdinpub: waitfor unexpectedly is NULL(cross compiled paho for openwrt, but the samples wont run)
openwrt: stdinpub: waitfor unexpectedly is NULL [message #1711985] Tue, 20 October 2015 14:49
nir droid is currently offline nir droidFriend
Messages: 6
Registered: September 2015
Junior Member
hi,
I cross compiled paho (https://www.eclipse.org/paho/clients/c/) for openwrt

but the samples wont run. for example, stdinpub:

root@OpenWrt:/tmp/dir# /tmp/dir/stdinpub abc --host 10.0.0.3
Using topic abc
=========================================================
Trace Output
Product name: Paho Synchronous MQTT C Client Library
Version: 1.0.3
Build level: Mon Oct 19 14:31:57 UTC 2015
/proc/version: Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42625) ) #3 Wed Oct 1 14:00:51 CEST 2014

=========================================================
Connecting
20151020 144423.409 waitfor unexpectedly is NULL for client publisher, packet_type 2, timeout 29878
20151020 144424.430 waitfor unexpectedly is NULL for client publisher, packet_type 2, timeout 28858
Failed to connect

any idea? maybe I should some flags for the build? my current line is:
make V=s CFLAGS=" -I /home/eclipse/openssl-dist/include -L /home/eclipse/openssl-dist/lib/ -ldl -fPIC" LDFLAGS=' -ldl -L /home/eclipse/openssl-dist/lib/'


Previous Topic:Is MqttClient thread safe?
Next Topic:Connection lost on first ping after switching to wifi
Goto Forum:
  


Current Time: Fri Apr 26 05:55:59 GMT 2024

Powered by FUDForum. Page generated in 0.02433 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top