tronxy3d / F103_PIC480x320

STM32F103ZET { XY2-PRO|XY2_PRO_2E|XY3_PRO|XY3_PRO_V2|X5SA|X5SA_g|X5SA_PRO|X5SA_2E|X5SA400_PRO|X5SA400_2E|XY3SE|XY3SE_2E|XY3SE_V2|D01|D01_PLUS|C2 }
GNU General Public License v3.0
12 stars 6 forks source link

Compile on MAc OSx fails #3

Open fzoellne opened 1 year ago

fzoellne commented 1 year ago

Hi,

I trying to built this on Mac OSX (ventura 13.2.1) but I get this error:

ool Manager: Installing platformio/toolchain-gccarmnoneeabi @ ~1.90201.0 Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-gccarmnoneeabi@1.90201.191206 has been installed! sh: arm-none-eabi-g++: command not found Error 127 AssertionError: : File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py", line 187: env.SConscript("$BUILD_SCRIPT") File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py", line 597: return _SConscript(self.fs, files, subst_kw) File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/platforms/ststm32/builder/main.py", line 120: target_elf = env.BuildProgram() File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py", line 737: return self.method(*nargs, kwargs) File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 60: env.ProcessProgramDeps() File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py", line 737: return self.method(*nargs, *kwargs) File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 120: env.BuildFrameworks(env.get("PIOFRAMEWORK")) File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py", line 737: return self.method(nargs, kwargs) File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 328: env.ConvertInoToCpp() File "/Users/frank/Downloads/F103_PIC480x320-firmware/E:/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py", line 737: return self.method(*nargs, **kwargs) File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/pioino.py", line 238: out_file = c.convert(ino_nodes) File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/pioino.py", line 86: return self.process(contents) File "/Users/frank/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/pioino.py", line 107: assert self._gcc_preprocess(contents, out_file) ========================= [FAILED] Took 29.03 seconds =========================

Any hint to get along this, read a lot on the internet but no clue

terenceso commented 1 year ago

Hi,

I have the same when I try to compile the source code for my XY2-Pro. It looks like the compiler tools for cross build are missing. I've tried the suggestion in platformio without success. Then I found this link, https://mynewt.apache.org/latest/get_started/native_install/cross_tools.html#installing-the-arm-toolchain-for-mac-os-x, for how to install the cross build tools. you need to install homebrew first in https://brew.sh/ (You might need to install bash with brew install bash if you macos is not using bash as the default shell)

I can compile compile the source without any compiler error after fixing the 'EXTI2_IRQHandler' error but I need to sort out other issues before testing the firmware!

MacOS compile tronxy_stm32f103

Maker-Paul commented 1 week ago

You Probably have a directory name with a space or possibly other special character in your project path, so the final python script that adjusts the binary file and copies it to the update folder cant resolve the source file name and path.

terenceso commented 5 days ago

The full path for this project is "/Users/terenceso/dev/tronxy3d/F103_PIC480x320"

TS
terenceso commented 5 days ago

anyway I can compile it now without error and did not change anything or open the VC since last year. Today, I open it , waiting for the update and compile it. it works!