Willkommen bei MattzoBricks › Foren › MattzoTrainController for Bluetooth (MTC4BT) › Missing XmlParser.h
- Dieses Thema hat 8 Antworten und 2 Teilnehmer, und wurde zuletzt aktualisiert vor 2 Jahren, 3 Monaten von Ray.
-
AutorBeiträge
-
-
Dezember 28, 2021 um 20:42 Uhr #4405Ulrich SchneiderTeilnehmer
When I am trying to build the project, I get an error:
In file included from src/MTC4BTMQTTHandler.cpp:1:0:
src/MTC4BTMQTTHandler.h:4:23: fatal error: XmlParser.h: No such file or directoryI am compiling on a Linux machine and I am new to VS Code. I might miss some important packages.
-
Dezember 30, 2021 um 20:31 Uhr #4413RayAdministrator
Hi Ulrich,
Did you open the
MTC4BT-workspace.code-workspace
file from VS Code? And did you copy theplatformio.example.ini
file to aplatformio.ini
file?The
XmlParser.h
andXmlParser.cpp
files are in the\lib\MattzoBricks
folder. This folder is automatically included in the compilation by these lines from theplatformio.ini
file:***
lib_extra_dirs =
..\lib
***If you’ve created the
platformio.ini
file and have opened the mentioned workspace file in VS Code, then you should be good to go.Cheers,
Ray- Diese Antwort wurde geändert vor 2 Jahren, 3 Monaten von Ray.
-
Dezember 30, 2021 um 23:22 Uhr #4416Ulrich SchneiderTeilnehmer
Yes, I do have opened the correct file and renamed the platformio.ini file.
I just copied the file from the firmware lib in several other folders and it worked. -
Januar 6, 2022 um 09:36 Uhr #4646RayAdministrator
Glad to hear you found a solution, but have you figured out at which location the XmlParser files needed to be placed?
-
Januar 6, 2022 um 12:27 Uhr #4656Ulrich SchneiderTeilnehmer
I have copied it into three folders. Into the Arduino library folder, into the “MTC4BT/lib” folder, and into the “MTC4BT/lib/MController” folder. If I got time over the weekend, I might have a chance to look at which one is the right one.
-
Januar 7, 2022 um 23:41 Uhr #4679Ulrich SchneiderTeilnehmer
It seems like the two files (XmlParser.h and XmlParser.cpp) should be in “/MTC4BT/lib/MCNetwork/” or “/MTC4BT/lib/MController/”. The other folders seem not to work for me.
-
Januar 11, 2022 um 08:51 Uhr #4696RayAdministrator
In the
platformio.example.ini
file the folder..\lib
is included. That folder contains a subfolderMattzoBricks
, which contains the mentioned files. The path is relative to theplatformio.ini
file, so that would point to the\lib
folder in the root of the firmware zip-file. As far as I can tell and verify the location in the firmware zip-file and the path in the example platformio.ini file are fine.Do you have the right lib folder referenced in your platformio.ini file?
lib_extra_dirs = ..\lib
Would you mind sharing your platformio.ini, leaving out any sensitive stuff?
-
Januar 16, 2022 um 00:33 Uhr #4821Ulrich SchneiderTeilnehmer
Sorry for the late reply. Error is on my side. As I am a Linux user, it needs to be “…/lib” in my case and not “..\lib”. Then it works as a charm. Sorry for the confusion.
-
-
Januar 16, 2022 um 13:12 Uhr #4824RayAdministrator
Actually that’s a valid point. I known for Windows it doesn’t matter, so I’ll change the default lib folder path in the
platformio.example.ini
file we distribute. Thanks Ulrich!
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.