[SOLVED] Paneldue firmware compile error
-
Can anyone shed some light on what my machine is telling me the problem is? I've been fighting this for the last few hours. I think this is the last hurdle I have to overcome.
c:/program files (x86)/gnu arm embedded toolchain/10 2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lRRFLibraries
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:82: PanelDueFirmware-v3-4.3.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete. -
@64bit said in Paneldue firmware compile error:
cannot find -lRRFLibraries
I think that gives it away
https://github.com/Duet3D/PanelDueFirmware/blob/master/BuildInstructions.md#building-standalone -
It might, If I hadn't been staring at those instructions for the last 2-3 hours. I am not a programmer.
-
Download or git clone the dev branch of RRFLibraries into C:\Eclipse.
-
@jay_s_uk
Already been done.
Downloaded RRFLibraries-3.3-dev whatever its called.
Renamed it to RRFLibraries
Put it in Eclipse and even under the firmware tab.It wont come up in Eclipse when I try to "open project" either, so im going to look into that more.
-
@64bit the project explorer should look like this
-
Making progress I guess.
Now Im stuck with no .bin being output.
make --no-print-directory post-build
Generating binary
"/arm-none-eabi-objcopy" -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" && cat "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" "C:/Eclipse/PanelDueFirmware/SplashScreens/SplashScreen-Duet3D-480x272.bin" >"C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.bin"
c:/windows-build-tools/bin/sh: C:/arm-none-eabi-objcopy: not found -
@64bit yea, i just got that error. will look into it and report back
-
@64bit what have you got in C:\windows-build-tools?
I had 2 folders and had to tidy it up. works ok for me now. -
I found objcopy.exe in my GNU Embedded tools. So I ran the following from the cmd prompt
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin>objcopy.exe -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin"
Output was a no logo bin that I have now flashed to the paneldue. after a reset it opened right up.
A bit of ass pain, but it worked.
-
-
can you try going to Windows -> Preferences -> C/C++ -> Build -> Build Variables and click "Add..."
set the name to "ArmGccPath", then change to directory and navigate to C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin
Then apply and close eclipse. reopen it and try and build
-
@jay_s_uk said in Paneldue firmware compile error:
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin
Must be an issue in the makefile?
"C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin/arm-none-eabi-objcopy" -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" && cat "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" "C:/Eclipse/PanelDueFirmware/SplashScreens/SplashScreen-Duet3D-480x272.bin" >"C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.bin"
c:/windows-build-tools/bin/sh: C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin/arm-none-eabi-objcopy: not found
make[1]: [makefile:94: post-build] Error 127 (ignored) -
@64bit
It compiles ok for me here -
I dont understand where the forward slash is coming from.
I mean, I can keep just using the command line to run objcopy. I just wish it wasnt screwed up.
What version of the GNU Arm Embedded Toolchain are you using?
-
SOLVED
make --no-print-directory post-build
Generating binary
"C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\arm-none-eabi\bin/arm-none-eabi-objcopy" -O binary "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.elf" "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" && cat "C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3-nologo.bin" "C:/Eclipse/PanelDueFirmware/SplashScreens/SplashScreen-Duet3D-480x272.bin" >"C:/Eclipse/PanelDueFirmware/Release-v3-4.3/PanelDueFirmware-v3-4.3.bin"copied and renamed objcopy.exe to arm-none-eabi-objcopy.exe
File compiles properly now into both w/logo and no-logo files. -
-