Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Compile #1

Open
RintaDev5792 opened this issue Jul 28, 2023 · 22 comments
Open

Cannot Compile #1

RintaDev5792 opened this issue Jul 28, 2023 · 22 comments

Comments

@RintaDev5792
Copy link

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.

Steps to reproduce:
Capture

Try to compile

@SeleDreams
Copy link
Owner

Could you try to compile with -j1?
It kinda feels like there is an issue of compilation order from my perspective

@RintaDev5792
Copy link
Author

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?

@SeleDreams
Copy link
Owner

To me it feels more like a compilation error occurs but is not getting logged

@RintaDev5792
Copy link
Author

You definitely know better than I do.
I looked up the issue but it's specific to just this repository it looks like.

@SeleDreams
Copy link
Owner

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

@SeleDreams
Copy link
Owner

image
By setting the right path it compiles

@RintaDev5792
Copy link
Author

Oh ok. Thank you! I will try to find where that is!

@SeleDreams
Copy link
Owner

image
on my windows install, devkitpro is located at C:\devkitPro so I used this path

@SeleDreams
Copy link
Owner

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)

@RintaDev5792
Copy link
Author

Ah ok, I found it.
Thank you so much for helping so quickly!

@RintaDev5792
Copy link
Author

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

@RintaDev5792
Copy link
Author

actually all of citro3d folder just doesn't exist

@SeleDreams
Copy link
Owner

those are mostly shader compilation issues actually, most likely because C:\devkitPro\tools\bin isn't in your PATH variable

@SeleDreams
Copy link
Owner

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

@RintaDev5792
Copy link
Author

Ok it's not done yet but it's been a few minutes and it hasn't stopped yet so I think that worked.

@RintaDev5792
Copy link
Author

RintaDev5792 commented Jul 29, 2023

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.

@LeoMassaFM
Copy link

I'm also suffering the same problem. The only difference is this extra line i marked with a red arrow:
Captura de tela 2023-10-07 115434

@LeoMassaFM
Copy link

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.

@squach90
Copy link

Hi, when I try to compile godot for 3ds it gives me this error:

cmdgithub

Can you help me ?

@FreindlyNeighborhoodBeetle
Copy link

FreindlyNeighborhoodBeetle commented Jun 5, 2024

hopefully you see this, since this looked sorta abandoned right up until the update a day or two ago, but ive been getting this error whenever i try to compile the thing, ive done all the suggested things and it was working completely fine right up until here

Screenshot 2024-06-05 165218

@squach90
Copy link

squach90 commented Jun 6, 2024

yes, I have see this and thanks you for helping me

@FreindlyNeighborhoodBeetle

so apparantly if you build the windows one through visual studio it works fine but building for 3ds is still broken for a completely different reason now
Screenshot 2024-06-08 144030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants