Is any real programming knowledge needed to compile a .dol ?

Discussion in 'Wii - Emulation and Homebrew' started by Zrecer, Jul 23, 2016.

  1. Zrecer
    OP

    Zrecer Member

    Newcomer
    40
    5
    Mar 18, 2011
    United States
    Hi, I've seen that the GX emulators have several updates that are not official release builds but just source code. I want to use the new releases. Do I need to know anything about homebrew developing to compile a .dol or is it as simple as following a few steps? Thanks for your time.
     
  2. mikey420

    mikey420 GBAtemp Fan

    Member
    463
    137
    Dec 11, 2015
    United States
    Basically just need to setup the proper environment. (Install the sdk used for compilation.) most homebrew for the cube used the public ask not Nintendo's. I do believe devkitpro is sufficient for most if not all cube related software. I may be wrong though. Either way there are tons of references to the topic on the dev wiki. I'd check that. Don't need to know how to write code but that page should tell you how to setup a proper DEV environment for compiling soft for the cube.
     
    Last edited by mikey420, Jul 23, 2016
  3. GreyWolf

    GreyWolf GBAtemp Psycho!

    Member
    4,156
    801
    Mar 2, 2015
    United States
    Just to compile? No, not really. You just need to install devkitPro and make sure you have the appropriate extra libraries. If you have a specific project in mind it might not hurt to post that.
     
  4. Zrecer
    OP

    Zrecer Member

    Newcomer
    40
    5
    Mar 18, 2011
    United States
    I just want to compile the latest vba gx, snes9x gx and, fceu gx. I have installed dev kit pro. Do go on about the appropriate libraries.
     
  5. GreyWolf

    GreyWolf GBAtemp Psycho!

    Member
    4,156
    801
    Mar 2, 2015
    United States
    They're on SourceForge here. This WiiBrew article explains them and where to put the files: http://wiibrew.org/wiki/DevkitPPC

    You're probably going to need the FreeType and jpg/png libraries if those emulators have UIs.
     
    Last edited by GreyWolf, Jul 24, 2016
  6. Zrecer
    OP

    Zrecer Member

    Newcomer
    40
    5
    Mar 18, 2011
    United States
    Alright cool. I'll give it a shot and report back.
     
  7. Zrecer
    OP

    Zrecer Member

    Newcomer
    40
    5
    Mar 18, 2011
    United States
    Having some trouble.

    I installed devkitpro

    I've placed the ported library files under c:/devkitpro/portlibs/ppc

    I open up programmers notepad. File>open>makefile.wii
    (For vbagx)

    Tools>make. And here is my output


    > "make"
    "make" -f Makefile.wii
    make[1]: Entering directory `/c/vbagx'
    filebrowser.cpp
    In file included from c:/vbagx/source/vbagx.h:16:0,
    from c:/vbagx/source/filebrowser.cpp:23:
    c:/vbagx/source/utils/FreeTypeGX.h:27:22: fatal error: ft2build.h: No such file or directory
    #include <ft2build.h>
    ^
    compilation terminated.
    make[2]: *** [filebrowser.o] Error 1
    make[1]: *** [build_wii] Error 2
    make[1]: Leaving directory `/c/vbagx'
    "make": *** [wii] Error 2

    > Process Exit Code: 2
    > Time Taken: 00:03



    Any idea what I'm doing wrong?
     
  8. GreyWolf

    GreyWolf GBAtemp Psycho!

    Member
    4,156
    801
    Mar 2, 2015
    United States
    Make sure you put the libraries in the folder properly.

    \devkitPro\portlibs\ppc should contain the lib and include folders in it.

    Warning: Spoilers inside!

    It generated a bunch of warnings for unused variables and some numeric narrowing warnings but compiled fine when I just tested it with the portlibs shown in the spoiler.
     
    Last edited by GreyWolf, Jul 24, 2016
  9. Zrecer
    OP

    Zrecer Member

    Newcomer
    40
    5
    Mar 18, 2011
    United States

    Wow. I feel like an idiot. I didn't realize I needed to decompress those .bz2 files. Alright. I seem to have made it a lot further. But I am missing the WUPC folder. and I believe it is casuing this error? I downloaded and unzipped all 7 of those libraries. Did I miss something else?



    > "make"
    "make" -f Makefile.wii
    make[1]: Entering directory `/c/vbagx'
    input.cpp
    c:/vbagx/source/input.cpp:19:23: fatal error: wupc/wupc.h: No such file or directory
    #include <wupc/wupc.h>
    ^
    compilation terminated.
    make[2]: *** [input.o] Error 1
    make[1]: *** [build_wii] Error 2
    make[1]: Leaving directory `/c/vbagx'
    "make": *** [wii] Error 2
     
  10. GreyWolf

    GreyWolf GBAtemp Psycho!

    Member
    4,156
    801
    Mar 2, 2015
    United States
    It's on FIX94's Github repository here: https://github.com/FIX94/libwupc

    You don't need the source unless you want to compile it too, only the lib/include folders.
     
  11. Zrecer
    OP

    Zrecer Member

    Newcomer
    40
    5
    Mar 18, 2011
    United States
    Got it! Thanks so much for your help!
     
    GreyWolf likes this.