Build Under Windows

Home Forums Development Build Under Windows

Viewing 15 posts - 1 through 15 (of 36 total)
  • Author
    Posts
  • #22689
    jhb50
    Participant

    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.

    #25316
    parasun
    Participant

    me too,i get a same questions.

    #25317
    BigBolt
    Participant

    Some 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.

    #25318
    rodries
    Keymaster

    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 install

    This 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

    #25319
    rde
    Participant

    @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 install

    This 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)

    #25320
    BigBolt
    Participant

    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…

    #25321
    rde
    Participant

    @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

    #25323
    rodries
    Keymaster

    @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?!

    #25324
    rodries
    Keymaster

    @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.

    #25322
    BigBolt
    Participant

    Tantric, 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 folder

    #25325
    parasun
    Participant

    subreader.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 2

    i 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”

    #25326
    jhb50
    Participant

    Thank 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

    #25327
    Pixel-Kakashi
    Participant

    Anyone else getting this error?:

    Any idea how to solve this?

    #25328
    axgarr
    Participant

    Open 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 /portlibs

    Open 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"
    #25329
    rde
    Participant

    @schmidex

    I cured it by typing this line:

    PATH=$DEVKITPPC/bin:$PATH

    just prior to :

    ./configure –host=powerpc-eabi –prefix=”${DEVKITPRO}/portlibs/ppc” –libdir=”${DEVKITPRO}/portlibs/ppc/lib”

Viewing 15 posts - 1 through 15 (of 36 total)
  • You must be logged in to reply to this topic.

Login

Lost Password