wiimc compiling

support for the powerpc toolchain
Post Reply
hetfield
Posts: 1
Joined: Wed Jul 21, 2010 9:50 am

wiimc compiling

Post by hetfield » Wed Jul 21, 2010 10:32 am

Hello people.

I'm quit new with devkit and have problems with compiling with wiimc sourcecode.

in the first attemp i got stuck in mysys.

Code: Select all

[email protected] /c/wiimc/libs/liba52
$ make

Making all in autotools
make[1]: Entering directory '/c/wiimc/libs/liba52/autotools'
make[1]: Nothing to be done for 'all'
make[1]: Leaving directory '/c/libs/liba52/autotools'
Making all in include
make[1]: Entering directory '/c/wiimc/libs/liba52/include'
make[1]: Leaving directory '/c/libs/liba52/include'
Making all in liba52
make[1]: Entering directory '/c/wiimc/libs/liba52/liba52'
/bin/sh ../libtool --mode=link powerpc-eabi-gcc -g -03 -fomit-frame-pointer -prefer-non-pic -o liba52.la -rpath /c/devkitPro/portlibs/ppc/lib -no-undefined bitsrteam.lo imdct.lo bit_allocate.lo parse.lo downmix.lo -lm
rm -fr .libs/liba52.la .libs.liba52.* .libs.liba52.*
ar cru .libs/liba52.la bitstream.o imdct.o bit_allocate.o parse.o downmix.o
../libtool:line 4155: ar: command not found
make[1]: *** [liba52.la] error 127
make[1]: leaving directory '/c/wiimc/libs/liba52/liba52'
make: *** [all-recursive] error 1
MOD Note: This is spectacularly wrong, don't do it
first tip was to get ar.exe from http://sourceforge.net/downloads/mingw/ ... .tar.lzma/ and copy it in DevKitPro/msys /bin
That did not help, so i uninstalled/installed devkit pro many times, even downloaded everything manually, and install from files.
Because since the first reïnstall i didn't even get past the first step of compiling.

the result was everytime the same:

Code: Select all

[email protected] ~
$ PATH=$DEVKITPPC/bin:$PATH
cd /c/wiimc/libs/fribidi/

[email protected] /c/wiimc/libs/fribidi/
$ ./configure --host=powerpc-eabi --prefix="${DEVKITPRO}/portlibs/ppc" --libdir="${DEVKITPRO}/portlibs/ppc/lib" --disable-shared
configure: warning: if you wanted to set the --build type, don't use --host.
     If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $<MAKE>... yes
checking for powerpc-eabi-strip... no
checking for strip... no
checking for powerpc-eabi-gcc... no
checking for gcc... no
checking for powerpc-eabi-cc... no
checking for cc... no
checking for powerpc-eabi-cl.exe... no
checking for cl.exe... no
configure: error: in '/c/wiimc/libs/fribidi':
configure: error: no acceptable C compiler found in $PATH
See 'config.log'for more details.
I don't understand why it says no after the checking things, all those files are present in powerpc-eabi\bin.
I asked jhb50 about it, and we compared all the devkit install files, they are exactly the same, and we have the same .net framework.

Still there is a difference between his and mine installation.
His:
c:\DevkitPro\devkitPPC\powerpc-eabi\ar.exe
c:\DevkitPro\devkitPPC\mn10200\ar.exe
C:\devkitPro\devkitPPC\powerpc-eabi-ar.exe
C:\devkitPro\devkitPPC\mn10200-ar.exe
Mine:
c:\DevkitPro\devkitPPC\powerpc-eabi\bin\ar.exe
c:\DevkitPro\devkitPPC\mn10200\bin\ar.exe
C:\devkitPro\devkitPPC\bin\powerpc-eabi-ar.exe
C:\devkitPro\devkitPPC\bin\mn10200-ar.exe

Copying those files to the same directories does not fix it.
How is this possible and how to get it to work?

Seems there are 2 problems.
1. source of wiimc is incorrect (liba52.la)
(i used vsn checkout multiple times from scratch)
2. devkit is not installing a correct c compiler where it should.
So which and where to place a working one?
Last edited by hetfield on Wed Jul 21, 2010 4:19 pm, edited 1 time in total.

WinterMute
Site Admin
Posts: 1474
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: wiimc compiling

Post by WinterMute » Wed Jul 21, 2010 11:52 am

Firstly this forum is for devkitPro toolchain and library support so you'll be much better off asking for support where ever the wiimc project have theirs.

Secondly your attempts to make this work have likely damaged your installation, you should probably remove everything you've done and start again from scratch.

It should be using powerpc-eabi-ar not ar. The problem is this :-
hetfield wrote:

Code: Select all

[email protected] ~
$ PATH=$DEVKITPPC/bin:$PATH
cd /c/wiimc/libs/fribidi/

[email protected] ~
$ ./configure --host=powerpc-eabi --prefix="${DEVKITPRO}/portlibs/ppc" --libdir="${DEVKITPRO}/portlibs/ppc/lib" --disable-shared
This should probably work.

Code: Select all

PATH=$DEVKITPPC/bin:$PATH
CPPFLAGS="-mrvl -I$DEVKITPRO/portlibs/ppc/include" LDFLAGS=="-mrvl -L$DEVKITPRO/portlibs/ppc/lib"./configure --host=powerpc-eabi  --disable-shared
Your installation was correct, his was broken somehow.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests