wiiudev / libwiiu

Build system and examples for running C code on the Wii U
188 stars 38 forks source link

Can't cross-compile example project #1

Open timoschlueter opened 9 years ago

timoschlueter commented 9 years ago

Hi,

first of all, thank you for putting this up on GitHub! I just tried to cross-compile the example project ("helloworld"), but received the following error:

root@do3:/tmp/libwiiu# python build.py examples/helloworld/
Building for your linux platform...
mkdir -p /tmp/libwiiu/framework/bin
# Build findcode
powerpc-eabi-gcc -nostdinc -fno-builtin -c -DVER=500+ /tmp/libwiiu/framework/src/findcode500.c
powerpc-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

I downloaded the devkitPPC, which worked fine. There seems to be a problem with my environment. Can you help me out here? I couldnt find any documentation on how to compile the samples.

Thank you in advance!

Regards,

Timo

georgeklees commented 9 years ago

Sorry for taking a while to reply. This definitely seems to be something with your environment rather than our code, though I wouldn't rule the latter out yet. Can you find devkitPPC's cc1 binary anywhere on the filesystem? It may be missing from the PATH.

gudenau commented 8 years ago

Did you ever fix this?

Relys commented 8 years ago

@gudenau were you able to replicate the issue?

gudenau commented 8 years ago

@Relys Nope, never had that type of problem with this project.

aboood40091 commented 8 years ago

I remember having this problem too, but I can't remember what I did to fix it. I suppose you have to add devkitPPC to PATH.

gudenau commented 8 years ago

I did change the Makefiles to do that automatically, but if that is the problem it should be complaining about not finding gcc. On Feb 19, 2016 8:01 AM, "AboodXD" notifications@github.com wrote:

I remember having this problem too, but I can't remember what I did to fix it. I suppose you have to add devkitPPC to PATH.

— Reply to this email directly or view it on GitHub https://github.com/wiiudev/libwiiu/issues/1#issuecomment-186225368.