[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[paho-dev] paho c++ sample files
|
Hello Paho team,
In the c++ paho same files the projects are failing because the make file is not up to date. I have this patch that will fix it.
This will get it working for new users.
From 17c8a6c01bcd7313c9c07a33e9840cbb329a18a7 Mon Sep 17 00:00:00 2001
From: martin <blades2000@xxxxxxxxx>
Date: Sun, 15 Nov 2015 22:20:46 +0000
Subject: [PATCH] Build was failing because the make file was not up to date
for the sample paho files. lib directory path was incorrect and the make
ffile was pointing at the wrong library name.
---
src/samples/Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/samples/Makefile b/src/samples/Makefile
index e49c436..2d29204 100644
--- a/src/samples/Makefile
+++ b/src/samples/Makefile
@@ -1,11 +1,12 @@
# Makefile for the mqttpp sample applications
-PAHO_C_LIB ?= /home/fmp/static/opensrc/mqtt/paho/org.eclipse.paho.mqtt.c
+PAHO_C_LIB ?= ../../../org.eclipse.paho.mqtt.c
+PAHO_C_HEADER ?= ../../include
all: async_publish async_subscribe sync_publish
CXXFLAGS += -Wall -std=c++0x
-CPPFLAGS += -I.. -I$(PAHO_C_LIB)/src
+CPPFLAGS += -I.. -I$(PAHO_C_LIB)/src -I$(PAHO_C_HEADER)
ifdef DEBUG
CPPFLAGS += -DDEBUG
@@ -15,7 +16,7 @@ else
CXXFLAGS += -O2
endif
-LDLIBS += -L../lib -L$(PAHO_C_LIB)/src/linux_ia64 -lmqttpp -lmqttv3a
+LDLIBS += -L../../lib -L$(PAHO_C_LIB)/src/linux_ia64 -lmqttpp -lpaho-mqtt3a
async_publish: async_publish.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(LDLIBS)
--
2.6.1