Components outside a project
Posted: Wed Feb 13, 2019 7:36 pm
Hi All,
I'm working on a project involving different ESP32 and Linux applications. I'm using Eclipse under Debian9 in a VirtualBox running under Win10 and use the latest ESP-IDF version and toolchain.
In the Linux project I can import the common files with a link:
Now I need to write an ESP32-IDF application using the same sourcefiles in the Common_IoTT/src directory.
I created a /Common_IoTT/include/Common.h file with this content:
In the ESP32 application I modified the Makefile:
I'm desperately looking what could be wrong... The gives a fatal error that there is no such file....
Maybe I'm to tired to see the obvious, so if anyone can help....
Thanks,
Paul
I'm working on a project involving different ESP32 and Linux applications. I'm using Eclipse under Debian9 in a VirtualBox running under Win10 and use the latest ESP-IDF version and toolchain.
In the Linux project I can import the common files with a link:
This gives the Linux application access to all the header and source files in the Common_IoTT/src directory. This works fine.paulvdbergh@debian9:~/IoTT-workspace/RPi_IoTT$ file common
common: symbolic link to ../Common_IoTT/src/
paulvdbergh@debian9:~/IoTT-workspace/RPi_IoTT$
Now I need to write an ESP32-IDF application using the same sourcefiles in the Common_IoTT/src directory.
I created a /Common_IoTT/include/Common.h file with this content:
Code: Select all
/*
* Common.h
*
* Created on: Feb 13, 2019
* Author: paulvdbergh
*/
#ifndef MAIN_COMMOM_H_
#define MAIN_COMMON_H_
#include "../src/Accessory.h"
#include "../src/AccessoryDecoder.h"
#include "../src/DCCPriority.h"
#include "../src/Decoder.h"
#include "../src/Decoders.h"
#include "../src/LocDecoder.h"
#include "../src/MQTTConfig.h"
#include "../src/MQTTMsgHandler.h"
#include "../src/MQTTMsgQueueItem.h"
#include "../src/MQTTPublisher.h"
#include "../src/MQTTSubscription.h"
#include "../src/SystemState.h"
#endif // MAIN_COMMON_H_
Code: Select all
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := ESP_IoT
EXTRA_COMPONENT_DIRS += $(PROJECT_PATH)/../Common_IoTT/
include $(IDF_PATH)/make/project.mk
Code: Select all
#include <Common.h>
Maybe I'm to tired to see the obvious, so if anyone can help....
Thanks,
Paul