Closed jerabaul29 closed 1 year ago
@jvoermans just to double chec, have you taken this into account trying to compile on windows? :)
Yes:
[env:SparkFun_RedBoard_Artemis]
platform = apollo3blue
board = SparkFun_RedBoard_Artemis
framework = arduino
platform_packages = framework-arduinoapollo3@1.2.3
build_type = release ; drop debug and break points in firmware
test_ignore = native_* ; native_* is the host computer, do not run these tests on the board! we run embedded_* on the board
monitor_speed = 1000000 ; baudrate of the serial monitor
test_speed = 1000000 ; baudrate used for transmitting test information
upload_speed = 921600 ; baudrate for firmware upload
build_flags =
-std=c++17
-std=gnu++17
;;;;; the following flags are linux-only; if compiling on another platform, comment with ";" at start of line, and uncomment the dummy flags
; !echo "-DREPO_GIT_BRANCH="$(git branch --show-current) ; this is non portable, unix only; would need a python "pre platformio script" to get this to work portably...
; !echo "-DREPO_COMMIT_ID="$(git log | head -1 | cut -c8-) ; this is non portable, unix only; would need a python "pre platformio script" to get this to work portably...
; !echo "-DCOMPILING_HOST_NAME="$(hostname) ; this is non portable, unix only; would need a python "pre platformio script" to get this to work portably...
; !echo "-DCOMPILING_USER_NAME="$(whoami) ; this is non portable, unix only; would need a python "pre platformio script" to get this to work portably...
; !echo "-DCOMPILING_DATE="$(date -I) ; compiling date, YYYY-MM-DD; we skip hour and second, as each time the flag is changed, will be recompiled from scratch, and do not want to recompile from scratch too often if not much else changed
;;;; the following are the dummy alternatives; if compiling on a non linux, comment the flags over, and uncomment the dummies under
!echo "-DREPO_GIT_BRANCH=DUMMY"
!echo "-DREPO_COMMIT_ID=DUMMY"
!echo "-DCOMPILING_HOST_NAME=DUMMY"
!echo "-DCOMPILING_USER_NAME=DUMMY"
!echo "-DCOMPILING_USER_NAME=DUMMY"
;;;;
build_unflags =
-std=gnu++11
check_tool = cppcheck, clangtidy ; should be the best to use, but really not happy with Ambiq SDK...
Good, and your answer on the other issue confirmed the compile error was due to submodules. Closing :) .
@jvoermans I am trying to play around / set up a bit of cleaned up code, on your repository on a new branch:
https://github.com/jvoermans/Wind_Input_V1/tree/logger_version_jr
This will by default compile for Linux / Ubuntu but not for windows; if you want to compile on Windows, you should:
https://github.com/jvoermans/Wind_Input_V1/blob/b6a1cf851969ae74abe2c988d05e1fa92cb0a25b/platformio.ini#L24-L28
https://github.com/jvoermans/Wind_Input_V1/blob/b6a1cf851969ae74abe2c988d05e1fa92cb0a25b/platformio.ini#L29-L33
(not the ";;;;" lines of course, these are just comments :) ).
I will create a README and put this information there too :) .