Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Paho MQTT C++ client sample

Yes. It will be fixed in the next update. The absolute path slipped by me last time. Dumb mistake.

Frank

On 06/18/2014 12:10 PM, Roger Light wrote:
Hi,

Could the user specific paths in the Makefile be removed anyway?

PAHO_C_LIB ?= /home/fmp/static/opensrc/mqtt/paho/org.eclipse.paho.mqtt.c

I don't believe this is appropriate and masks problems that "real"
users might have, just to make life a bit easier for one developer.

Cheers,

Roger


On Wed, Jun 18, 2014 at 3:40 PM, Frank Pagliughi
<fpagliughi@xxxxxxxxxxxxxx> wrote:
My current development branch is working. I can look to see if there is
something I did to fix this specific problem.

Hopefully a simple patch will fix this right now, then I can follow up with
my current version. That one should carry us until a formal, coordinated
release (1.1?)

Frank


On 06/18/2014 10:31 AM, Ian Craggs wrote:

Frank,

I don't think there have been any updates to the externals that should have
affected the C++ wrapper.  I hope I'd have told you otherwise :-)

I'll try building when I get home - none of my machines at work have a
recent enough version of gcc.

Ian

On 06/18/2014 03:23 PM, Frank Pagliughi wrote:

The Paho C++ library is a wrapper around the C library. The C library has
had a number of updates and improvements since the last C++ update. Perhaps
compatibility was broken between the versions. I will look and patch
accordingly.

Frank

On 06/18/2014 07:20 AM, Joerg Wende wrote:

Hi,

I've just tried to compile the samples of the Paho MQTT C++ client, but it
looks to me that the make file contains some hard coded references to other
projects:

user@ubuntu:~/git/org.eclipse.paho.mqtt.cpp/src/samples$ make
g++ -I.. -I/home/fmp/static/opensrc/mqtt/paho/org.eclipse.paho.mqtt.c/src
-D_NDEBUG -Wall -std=c++0x -O2 -o async_publish async_publish.cpp -L../lib
-L/home/fmp/static/opensrc/mqtt/paho/org.eclipse.paho.mqtt.c/src/linux_ia64
-lmqttpp -lmqttv3a
In file included from async_publish.cpp:23:0:
../mqtt/async_client.h:28:24: fatal error: MQTTAsync.h: Datei oder
Verzeichnis nicht gefunden
   #include "MQTTAsync.h"
                         ^
compilation terminated.
make: *** [async_publish] Fehler 1

After fixing the references make returns the following errors:

user@ubuntu:~/git/org.eclipse.paho.mqtt.cpp/src/samples$ make
g++ -I.. -I/home/user/git/include -D_NDEBUG -Wall -std=c++0x -O2 -o
async_publish async_publish.cpp -L../lib -L/home/user/git/lib -lmqttpp
-lpaho-mqtt3a
/tmp/cc63PFvQ.o: In Funktion `std::_Sp_counted_ptr_inplace<mqtt::message,
std::allocator<mqtt::message>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
async_publish.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN4mqtt7messageESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv
[_ZNSt23_Sp_counted_ptr_inplaceIN4mqtt7messageESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0xc):
  Nicht definierter Verweis auf `mqtt::message::~message()'
/tmp/cc63PFvQ.o: In Funktion `std::__shared_ptr<mqtt::message,
(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<mqtt::message>,
char const*&>(std::_Sp_make_shared_tag, std::allocator<mqtt::message>
const&, char const*&)':
async_publish.cpp:(.text._ZNSt12__shared_ptrIN4mqtt7messageELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS1_EIRPKcEEESt19_Sp_make_shared_tagRKT_DpOT0_[_ZNSt12__shared_ptrIN4mqtt7messageELN9__gnu_cxx12_Lock_policyE2EEC5ISaIS1_EIRPKcEEESt19_Sp_make_shared_tagRKT_DpOT0_]+0x6a):
  Nicht definierter Verweis auf `mqtt::message::message(std::string const&)'
/tmp/cc63PFvQ.o: In Funktion `main':
async_publish.cpp:(.text.startup+0x179): Nicht definierter Verweis auf
`mqtt::async_client::async_client(std::string const&, std::string const&)'
async_publish.cpp:(.text.startup+0x195): Nicht definierter Verweis auf
`mqtt::async_client::set_callback(mqtt::callback&)'
async_publish.cpp:(.text.startup+0x1a7): Nicht definierter Verweis auf
`mqtt::async_client::connect()'
async_publish.cpp:(.text.startup+0x289): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&,
std::shared_ptr<mqtt::message>)'
async_publish.cpp:(.text.startup+0x340): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&, void const*, unsigned int,
int, bool)'
async_publish.cpp:(.text.startup+0x46f): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&,
std::shared_ptr<mqtt::message>, void*, mqtt::iaction_listener&)'
async_publish.cpp:(.text.startup+0x5e1): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&,
std::shared_ptr<mqtt::message>, void*, mqtt::iaction_listener&)'
async_publish.cpp:(.text.startup+0x65b): Nicht definierter Verweis auf
`mqtt::async_client::get_pending_delivery_tokens() const'
async_publish.cpp:(.text.startup+0x777): Nicht definierter Verweis auf
`mqtt::async_client::~async_client()'
async_publish.cpp:(.text.startup+0x79b): Nicht definierter Verweis auf
`mqtt::async_client::~async_client()'
collect2: error: ld returned 1 exit status
make: *** [async_publish] Fehler 1

Any guess ?

Thanks
J.

Mit freundlichen Grüßen / Kind regards

Joerg Wende

Leading Technical Sales Professional
Certified Consult. IT Specialist / Business Integration
IBM Sales & Distribution, Software Sales
http://www-01.ibm.com/software/websphere/





  Phone:            +49-351-4974-429         IBM Deutschland
(Embedded

image moved

to file:

pic10428.gif)

  Mobile:           +49-171-2229636          Freiberger Str.35

  E-Mail:           jwende@xxxxxxxxxx        1067 Dresden

                                             Germany





  IBM Deutschland
  GmbH /
  Vorsitzender des
  Aufsichtsrats:
  Martin Jetter
  Geschäftsführung:
  Martina Koederitz
  (Vorsitzende),
  Reinhard Reschke,
  Dieter Scholz,
  Gregor Pillen,
  Christian Noll,
  Ivo Koerner
  Sitz der
  Gesellschaft:
  Ehningen /
  Registergericht:
  Amtsgericht
  Stuttgart, HRB
  14562 /
  WEEE-Reg.-Nr. DE
  99369940




_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev




_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev


--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Committer on Paho, Mosquitto



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev



Back to the top