-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Need Help: Cross-Compile to MIPS Architecture #447
Comments
Hi @Zaya6, do you already have SDL2 compiled for MIPS architecture? If so, what happens if you run |
So I went a bit further than this :) Obviously you need a toolchain to cross-compile. Do you know where no-odd-spreg option is set? Why is it set and why my toolchain's mipsel gcc doesn't recognize it? |
@geniot How did you try to build, did you manage to build and install SDL2 first? |
Thanks @gen2brain for replying.
My env variables: I get an error: Firmware that I have: I looked at the gcc.go code. Do you know how to force gomips=softfloat?
|
@geniot Now you should compile SDL2 with that same toolchain. pkg-config is now trying to use your system SDL2, which is not good. Point The goal is to build SDL2 for mipsel, and to tell pkg-config where is that build installed, go-sdl2 will just use |
Btw. if that toolchain is using GCC-4.3 that is the reason why you don't have |
For a hobby project I've been trying to create a program to run on the rg350 handheld, with a jz4770 processor. When I try to build I get these errors:
Building regularlly works just fine. Btw I'm pretty new to the go language itself and any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: