Cannot Compile
Opened this issue · 22 comments
Operating system or device - Godot version:
Windows - Latest Godot 3DS
Issue description (what happened, and what was expected):
Trying to build godot with
scons p=3ds -j4 target=release
but it gives me
scons: *** [main\tests\test_python.3ds.opt.32.o] The system cannot find the file specified
scons: *** [modules\register_module_types.gen.3ds.opt.32.o] The system cannot find the file specified
scons: *** [modules\chibi\cp_envelope.3ds.opt.32.o] The system cannot find the file specified
scons: building terminated because of errors.
this is because those files do not exist anymore in the project.
Try to compile
Could you try to compile with -j1?
It kinda feels like there is an issue of compilation order from my perspective
Thank you for the quick response!
Now it outputs:
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> platform\3ds\godot_3ds.cpp
scons: *** [platform\3ds\godot_3ds.3ds.opt.32.o] The system cannot find the file specified
scons: building terminated because of errors.
sorry if this is a common error I am new to this.
It kinda seems like it's looking for a file it is supposed to create?
To me it feels more like a compilation error occurs but is not getting logged
You definitely know better than I do.
I looked up the issue but it's specific to just this repository it looks like.
I checked, the issue occurs because of bad devkitpro environment variables.
You need the DEVKITPRO env variable to lead to the right path of the devkitpro sdk, by default it leads to /opt/devkitPro
but it is incorrect
Oh ok. Thank you! I will try to find where that is!
also after changing the path reboot your computer as powershell tends to store paths until a reboot is done (it might still try to use the old path after the change)
Ah ok, I found it.
Thank you so much for helping so quickly!
Oh uh sorry but now it's giving
[Initial build] scons: *** [drivers\3ds\citro3d\shaders\2d.shbin] The system cannot find the file specified
Compiling ==> drivers\alsa\audio_driver_alsa.cpp
scons: *** [drivers\3ds\citro3d\shaders\3d.shbin] The system cannot find the file specified
scons: building terminated because of errors.
Only reason I can think of is DevkitPPC isn't in my devkitpro directory so it isnt set properly in my env variables
actually all of citro3d folder just doesn't exist
those are mostly shader compilation issues actually, most likely because C:\devkitPro\tools\bin isn't in your PATH variable
as it calls picasso to compile the shaders to shbin, if it doesn't find the shbin it's that it failed to compile them
Ok it's not done yet but it's been a few minutes and it hasn't stopped yet so I think that worked.
Nope.
Finished with error
[Initial build] progress_finish(["progress_finish"], [])
[Initial build] Linking Static Library ==> modules\freetype\libfreetype_builtin.3ds.opt.32.a
[Initial build] Linking Program ==> bin\godot.3ds.elf
[Initial build] =====
b'C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.1.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lbz2: No such file or directory\r\nC:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.1.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lpng: No such file or directory\r\nC:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.1.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lz: No such file or directory\r\ncollect2.exe: error: ld returned 1 exit status\n'
scons: *** [bin\godot.3ds.elf] Error 1
scons: building terminated because of errors.
I think I have a solution (thanks Sele!): go to C:\devkitPro\msys2 and open the file named "msys2_shell.bat". Once opened, type the following commands:
pacman -S 3ds-zlib
pacman -S 3ds-bzip2
pacman -S 3ds-libpng
After that, try compiling again with scons p=3ds -j4 target=release
If that doesn't work, replace -j4
with -j1
If that also doesn't work, I'm sorry.
yes, I have see this and thanks you for helping me