Difference between revisions of "IoTGateway/SdkV2"

From ESS-WIKI
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 10: Line 10:
 
  libpaho-mqtt3as.so -> libpaho-mqtt3as.so.1.0
 
  libpaho-mqtt3as.so -> libpaho-mqtt3as.so.1.0
 
  libpaho-mqtt3a.so -> libpaho-mqtt3a.so.1.0
 
  libpaho-mqtt3a.so -> libpaho-mqtt3a.so.1.0
 
+
 +
copy below header files to /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include
 +
-MQTTClient.h
 +
-MQTTClientPersistence.h
 
      
 
      
 
2. Build WiseSnail & install Tool-Chain's rootfs
 
2. Build WiseSnail & install Tool-Chain's rootfs
 +
  svn source code: https://172.20.2.44/svn/essrisc/IoT/source/Projects/WiseSnail
 
   1. source yocto_arm_env
 
   1. source yocto_arm_env
   2. ./configure --host=arm-poky-linux-gnueabi
+
   2. ./snailconf.sh -f --prefix=/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ --host=arm-poky-linux-gnueabi
   3. make
+
   3. cp -a _install/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/*.so.*  /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/.
  4. cp -a _install/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/*.so.*  /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/.
+
   4. cp _install/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/WiseSnail.h /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/.
   5. cp _install/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/WiseSnail.h /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/.
 
 
   
 
   
 
    
 
    

Latest revision as of 05:27, 26 September 2016

How to build WiseSnail & DustLink (Mqtt Base)

1. Build Paho lib to install Tool-Chain's rootfs

download source code: git clone https://github.com/eclipse/paho.mqtt.c.git
source /opt/poky/1.5.3/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
make 
sudo make install --prefix=/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/
paho link 有問題,請直接直接用 copy 到下面路徑
/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib
libpaho-mqtt3cs.so -> libpaho-mqtt3cs.so.1.0	
libpaho-mqtt3as.so -> libpaho-mqtt3as.so.1.0
libpaho-mqtt3a.so -> libpaho-mqtt3a.so.1.0

copy below header files to /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include
-MQTTClient.h
-MQTTClientPersistence.h
   

2. Build WiseSnail & install Tool-Chain's rootfs

 svn source code: https://172.20.2.44/svn/essrisc/IoT/source/Projects/WiseSnail
 1. source yocto_arm_env
 2. ./snailconf.sh -f --prefix=/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ --host=arm-poky-linux-gnueabi
 3. cp -a _install/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/*.so.*  /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/.
 4. cp _install/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/WiseSnail.h /opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/.

 

3. Build MQTT base DustLink by WiseSnail

 1. source yocto_arm_env
 2. modify ./Test/Makefile.am : LDADD = -L../src/.libs -lDustWsnDrv -lAdvLog -lAdvJSON -lWiseSnail -lWiseCore_MQTT_Paho -lpaho-mqtt3cs
 3. ./configure --host arm-poky-linux-gnueabi
 4. make