Build Under Windows
Home › Forums › Development › Build Under Windows
- This topic has 36 replies, 12 voices, and was last updated 5 years, 8 months ago by jhb50.
-
AuthorPosts
-
April 30, 2010 at 2:31 am #22689jhb50Participant
I have installed DevKitPro, installed the PortedLibs, and SVNd the source files to my harddrive.
I successfully ran make for: libntfs
It looks like I am missing a makefile for: fribidi
And I get errors for: libiconv, opencore-amr, and openjpeg
Can someone please post the steps required to build under windows? Please don’t point to http://www.wiimc.org/compiling-instructions/ as an answer.
Thank you.
April 30, 2010 at 3:10 am #25316parasunParticipantme too,i get a same questions.
April 30, 2010 at 6:38 am #25317BigBoltParticipantSome of the libs compile fine just under linux… at least i didn’t succeed to compile them under windows so i’ve compiled them in ubuntu/vmware. Some of the libs require scripts to configure, some libs aren’t included in the wiimc folder and you’ll have to download them (libmxml, libpng14 etc).
Anyway, here are all the portlibs (compiled) needed: http://www.mediafire.com/?mitdymnienj . Just extract the portlibs folder in devkitpro folder, go to wiimc folder and just run the make command.
On my system i’ve got some errors saying that it can’t find some libs that were in the portlibs folder (probably missing path in makefile) and i’ve copied the libs in devkitProdevkitPPClibgccpowerpc-eabi4.4.3 folder.April 30, 2010 at 7:31 am #25318rodriesKeymasterThose instructions all sound horribly wrong. Please ignore them.
In Windows, load MSys (installed with DevkitPro). For each of the libs:
./configure –host=powerpc-eabi –prefix=”${DEVKITPRO}/portlibs/ppc” –libdir=”${DEVKITPRO}/portlibs/ppc/lib”
make
make installThis will build and install them into the portlibs folder for you. Other libs like mxml and libpng should be downloaded from http://sourceforge.net/projects/devkitpro/files/portlibs/.
For more verbose instructions see here: http://wiki.devkitpro.org/index.php/portlibs
April 30, 2010 at 9:02 am #25319rdeParticipant@Tantric wrote:
Those instructions all sound horribly wrong. Please ignore them.
In Windows, load MSys (installed with DevkitPro). For each of the libs:
./configure –host=powerpc-eabi –prefix=”${DEVKITPRO}/portlibs/ppc” –libdir=”${DEVKITPRO}/portlibs/ppc/lib”
make
make installThis will build and install them into the portlibs folder for you. Other libs like mxml and libpng should be downloaded from http://sourceforge.net/projects/devkitpro/files/portlibs/.
For more verbose instructions see here: http://wiki.devkitpro.org/index.php/portlibs
All libs display the following with that command
H:TestWiiMClibsopencore-amr>./configure –host=powerpc-eabi –prefix=”${DEVK
ITPRO}/portlibs/ppc” –libdir=”${DEVKITPRO}/portlibs/ppc/lib”
‘.’ is not recognized as an internal or external command,
operable program or batch file.fribidi
H:TestWiiMClibsfribidi>./configure –host=powerpc-eabi –prefix=”${DEVKITPRO
}/portlibs/ppc” –libdir=”${DEVKITPRO}/portlibs/ppc/lib”
‘.’ is not recognized as an internal or external command,
operable program or batch file.H:TestWiiMClibsfribidi>make
make: *** No targets specified and no makefile found. Stop.and of course nothing actually compiles
@driverx that is very helpful, thank you (but still wiimc errors at the end and doesn’t compile)
April 30, 2010 at 11:11 am #25320BigBoltParticipantTristar, don’t use windows command prompt, use msys (installed with devkit pro)
@tantric, thanks for your help, but it seems that fribidi needs more than runing the configure script to compile… and libfreetype configure script aborts under windows but under linux is working fine…April 30, 2010 at 1:26 pm #25321rdeParticipant@driverx wrote:
Tristar, don’t use windows command prompt, use msys (installed with devkit pro)
@tantric, thanks for your help, but it seems that fribidi needs more than runing the configure script to compile… and libfreetype configure script aborts under windows but under linux is working fine…Thanks
April 30, 2010 at 6:00 pm #25323rodriesKeymaster@driverx wrote:
Tristar, don’t use windows command prompt, use msys (installed with devkit pro)
@tantric, thanks for your help, but it seems that fribidi needs more than runing the configure script to compile… and libfreetype configure script aborts under windows but under linux is working fine…No, it works perfectly fine with the latest SVN. And libfreetype – why don’t you use the one from the devkitpro portlibs?!
April 30, 2010 at 7:30 pm #25324rodriesKeymaster@driverx wrote:
Tristar, don’t use windows command prompt, use msys (installed with devkit pro)
@tantric, thanks for your help, but it seems that fribidi needs more than runing the configure script to compile… and libfreetype configure script aborts under windows but under linux is working fine…fribidi did actually configure/compile fine with configure/make/make install. You do get an error on the make, which you can safely ignore – since your .a is already created. However, I’ve updated the SVN so you don’t get an error at the end. This will hopefully cut down on confusion.
April 30, 2010 at 9:27 pm #25322BigBoltParticipantTantric, thank you, you were right, now everything works fine.
Anyway, I’ve made a detailed “how to” to avoid future compiling questions and let Tantric concentrate on the real problems 😉
1. Download WiiMC source (i’m using TortoiseSVN)
2. Install Devkit Pro and restart your system.
3. Download the following libs :
Zlib
MXml
LibPng
Freetype
Jpeg8a (not sure if wiimc is using it)
4. Go to your devkitPro folder and create the portlibs folder; inside portlibs create a folder named “ppc“
5. Extract all the downloaded libs inside ppc folder
6. Now you must compile the libs located inside the WiiMC/libs folder. You must use Msys (installed with Devkit Pro, you can find it in Start Menu > Programs >DevkitPro), don’t use Windows Command Prompt.
6.1. For fribidi and libiconv, before runing ” make” you first must run./configure --host=powerpc-eabi --prefix="${DEVKITPRO}/portlibs/ppc" --libdir="${DEVKITPRO}/portlibs/ppc/lib"
After this run “make” and “make install“
6.2. libntfs, opencore-amr and openjpeg can be compiled by simply runing “make” and “make install“
7. Now you can run “make” in wiimc folderMay 1, 2010 at 3:01 am #25325parasunParticipantsubreader.c:1755: warning: array subscript has type ‘char’
subreader.c:1760: warning: array subscript has type ‘char’
subreader.c:1761: warning: array subscript has type ‘char’
subreader.c:1766: warning: array subscript has type ‘char’
subreader.c: In function ‘strcpy_strip_ext’:
subreader.c:1786: warning: array subscript has type ‘char’
subreader.c: In function ‘whiteonly’:
subreader.c:1805: warning: array subscript has type ‘char’
make[1]: *** [subreader.o] Error 1
make[1]: Leaving directory `/d/Devkitpro/projects/wii/wiimc-read-only/source/mpl
ayer’
fileop.cpp
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp:19:18: warning: ntfs
.h: No such file or directory
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp: In function ‘void U
nmountPartitions(int)’:
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp:628: error: ‘ntfsUnm
ount’ was not declared in this scope
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp: In function ‘bool M
ountPartitions(int, int)’:
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp:685: error: ‘NTFS_DE
FAULT’ was not declared in this scope
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp:685: error: ‘NTFS_RE
COVER’ was not declared in this scope
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp:685: error: ‘ntfsMou
nt’ was not declared in this scope
d:/Devkitpro/projects/wii/wiimc-read-only/source/fileop.cpp:686: error: ‘ntfsGet
VolumeName’ was not declared in this scope
make[1]: *** [fileop.o] Error 1
make: *** [build] Error 2i flow all,but compiled mplayer ce
“
6.1. For fribidi and libiconv, before runing ” make” you first must run
Code: Select all
./configure –host=powerpc-eabi –prefix=”${DEVKITPRO}/portlibs/ppc” –libdir=”${DEVKITPRO}/portlibs/ppc/lib”
“need i to run “make” and “make install” in /d/devkitpro/…./wiimc/fribidi or libiconv after 6.1 “.configure”
May 2, 2010 at 1:13 am #25326jhb50ParticipantThank you all,
Driverx’s 7 step process got me to my first successful build.
For anyone building under vista, you should also run MSYS as administrator.
rolo
May 2, 2010 at 12:20 pm #25327Pixel-KakashiParticipantMay 2, 2010 at 1:11 pm #25328axgarrParticipantOpen msys ETC directory (usually is C:devkitPromsysetc).
Open with “Programmers Notepad” the file “fstab”, and add these lines:c:/devkitPRO/devkitPPC /ppc
c:/devkitpro /devkitpro
c:/devkitpro/wiimc /wiimc
c:/devkitpro/portlibs /portlibsOpen with “Programmers Notepad” the file “profile”, and modify these lines at the end of file:
alias clear=clsb
cd "$HOME"
- with (if you have WinXP):
alias clear=clsb
export DEVKITPPC=/ppc
export PATH=$PATH:$DEVKITPPC/bin
cd "$HOME"
or with (if you have Win Vista/7):
alias clear=clsb
export DEVKITPPC=/ppc
export PATH=$PATH:$DEVKITPPC/bin:$DEVKITPPC/libexec/gcc/powerpc-eabi/4.4.3:$DEVKITPPC/powerpc-eabi/bin
cd "$HOME"May 2, 2010 at 2:05 pm #25329 -
AuthorPosts
- You must be logged in to reply to this topic.