Missing influxdb_export.h file

Hello everyone,
I’m trying to run the weather example by following the documentation in this link: Visual Studio Code IDE Extension | Toradex Developer Center

However the build fails with the following output:

Build started...
Starting Torizon build...
Starting SDK container...
Setting connection info...
Torizon setup completed.
1>------ Build started: Project: TorizonApplication, Configuration: Debug_debian_arm64v8_bullseye x64 ------
1>Torizon Container Build
1>Containers are up to date.
1>Validating sources
1>Copying sources remotely to '127.0.0.1'
1>Validating architecture
1>Validating architecture
1>Starting remote build
1>Compiling sources:
1>BoostSupport.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>HTTP.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>InfluxDB.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>InfluxDBFactory.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>LineProtocol.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error :    37 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error : compilation terminated.
1>NoBoostSupport.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>Point.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error :    37 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\Point.h(37,10): error : compilation terminated.
1>UDP.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>UnixSocket.cxx
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>get-owm.cpp
1>main.cpp
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : influxdb_export.h: No such file or directory
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :    34 | #include "influxdb_export.h"
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error :       |          ^~~~~~~~~~~~~~~~~~~
1>C:\Users\AhmedMobarez\Desktop\DL02\TorizonApplication\influxdb-cxx\include\InfluxDBException.h(34,10): error : compilation terminated.
1>Done building project "TorizonApplication.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

The error list send the same message of the missing influxdb_export.h file

I am running the example on an Apalis IMX8 QM on an Ixora board V1.2

I was successful running the default project on the board using visual studio and the torizon extension and I got the hello message on the linux console, I was also able to run the Grafana example in this link:

Please also find the configuration of the project:

I also added the additional include directories as specified, However, the file is not in any of the folders, I also cannot find it on github/google

please advise

Hi @AhmedMobarez ,

Unfortunately the article that you used is outdated. Given that the InfluxDB C++ repository has had some changes since the article was originally written, some of the instructions are no longer valid for the weather example. We’re currently reevaluating it to see if this example section should be updated or removed.

To give you more context, the missing file is generated by cmake, which should be executed before compilation. Our current Torizon C/C++ Application template in Visual Studio does not consider the use of cmake.

On the other hand our VSCode Extension for Torizon supports CMake projects out-of-the-box, you can give that a try.

Do you intend to develop an application using InfluxDB C++ or any of the libraries used in the article? Or were you following it for learning purposes?

Best regards,
Lucas Akira

Hello @lucas_a.tx ,

Thank you for your reply and apologies for my late reply.

I was following the article for learning purposes, trying to develop with visual studio and VS Code and testing the plugins to implement a good development workflow with our new toradex board.

No problem! If you have any additional questions regarding this, please let me know.

Best regards,
Lucas Akira