Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 8 months ago.
How do I get Dot-Examples to compile without errors?
After import to Mbed OS, I click "Compile" and receive the following series of errors:
1) Error: Cannot open source input file "mDot.h": No such file or directory in "examples/inc/dot_util.h", Line: 5, Col: 19 - clicking "Fix it!" presents three options and I choose "libmDot" (we are using mDots in the US) and after attempting to compile again... 2) Error: Cannot open source input file "ChannelPlans.h": No such file or directory in "examples/inc/dot_util.h", Line: 6, Col: 27 - clicking "Fix it!" presents a single option and I choose "libxDot-dev-mbed5" (again, we are using mDots for which there is no option and we'd prefer be using a stable version rather than the development version) and after attempting to compile again... 3) 5 errors as follows - Error: Class "mDot" has no member "getDefaultFrequencyBand" in "examples/src/dot_util.cpp", Line: 22, Col: 6 Error: Class "mDot" has no member "getLbtTimeUs" in "examples/src/dot_util.cpp", Line: 64, Col: 6 Error: Class "mDot" has no member "getLbtTimeUs" in "examples/src/dot_util.cpp", Line: 65, Col: 15 Error: Class "mDot" has no member "getLbtTimeUs" in "examples/src/dot_util.cpp", Line: 66, Col: 3 Error: Class "mDot" has no member "getLbtThreshold" in "examples/src/dot_util.cpp", Line: 67, Col: 3
Additionally, there are multiple warnings with each step involved which I have not bothered to provide as they do not appear to prevent compiling.
Please advise as to how I can resolve the errors so we can successfully compile a binary using the Mbed OS.
Question relating to:
2 Answers
6 years, 8 months ago.
Hello,
The Dot-Examples page says the following "Because these example programs can be used for both mDot and xDot devices, the LoRa stack is not included. The libmDot library should be imported if building for mDot devices."
Here is how to import the mDot library.
Right click your project- Select "Import Library"-Select "From URL ..."
A popup box will appear. Change the Source URL to https://os.mbed.com/teams/MultiTech/code/libmDot-mbed5/ and click the Import button.
This will remove your missing mDot.h error but I still couldn't get it to compile as I believe the Dot Examples have been updated for a new release of mDot (3.1) but the libmDot-mbed5 projects hasn't yet been updated (currently 3.0).
I solved this problem by reverting to an older version of the Dot-Examples project ( 11 July 2017) as shown in the screenshot.
I also reverted the mbed-os release back to 5.4.7 as recommended by Multitech on the library's page (https://os.mbed.com/teams/MultiTech/code/libmDot-mbed5/).
Regards, Jaco
Yes, same here on AU915. This was my experience SIX MONTHS AGO or more. PLEASE GIVE US EXAMPLES THAT COMPILE!!!! MultiTech probably don't care about the mDot anymore!
posted by Peter Barsznica 26 Mar 2018