Building Home Brew Launcher

Discussion in 'Wii U - Homebrew' started by panther666, Dec 16, 2016.

  1. panther666
    OP

    panther666 GBAtemp Regular

    Member
    133
    28
    Nov 29, 2015
    Serbia, Republic of
    I have an erro when i try to build from dimok's master branch.
    I have complete devkitPPC and additionally libraries (include the portlibs packages in my devkitPro path).
    But every time i try to compile hbl with 'make' - returns with next message:

    d:/1/homebrew_launcher-2.1/src/system/CThread.h: In constructor 'CThread::CThread(int, int, int, CThread::Callback, void*)':
    d:/1/homebrew_launcher-2.1/src/system/CThread.h:45:37: error: invalid conversion from 'int (*)(int, void*)' to 's32 (*)(s32, void*) {aka long int (*)(long int, void*)}' [-fpermissive]
    OSCreateThread(pThread, &CThread::threadCallback, 1, this, (u32)pThreadStack+iStackSize, iStackSize, iPriority, iAttributes);
    ^~~~~~~~
    In file included from d:/1/homebrew_launcher-2.1/src/Application.cpp:21:0:
    d:/1/homebrew_launcher-2.1/src/gui/VPadController.h: In member function 'virtual bool VPadController::update(int, int)':
    d:/1/homebrew_launcher-2.1/src/gui/VPadController.h:41:31: error: invalid conversion from 'int*' to 's32* {aka long int*}' [-fpermissive]
    VPADRead(0, &vpad, 1, &vpadError);
    ^~~~~~~~~~
    make[1]: *** [Application.o] Error 1
    make: *** [build] Error 2

    Can somebody explain what it means?
     
  2. nIxx

    nIxx GBAtemp Advanced Maniac

    Member
    1,528
    78
    Sep 30, 2007
    Gambia, The
    Germany
    IT tells you what it means 'invalid conversion' try to change type of the variable/pointer for example. I didn't look into the code at all ;) and most likely devkitppc or so was update so some things changed.
     
  3. panther666
    OP

    panther666 GBAtemp Regular

    Member
    133
    28
    Nov 29, 2015
    Serbia, Republic of
    Where i can change type of the variable/pointer? And what params should i make?

    PS Sorry, i'm not coder, i dont understand a lot, i only want to compile hbl with other colors... :)

    — Posts automatically merged - Please don't double post! —

    @dimok can you give some advice?
     
  4. QuarkTheAwesome

    QuarkTheAwesome Working for Hugs

    Member
    762
    1,859
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    The latest devkitPPC is a shocker - lots of files have been copy-pasted from gcc with no changes for the GC/Wii/Wii U at all. What this means is that an s32, which once resolved into a 32-bit integer, now points to something else entirely.
    Your best bet is to use an older devkitPPC. There is a way to fix the issue by changing one of the headers, but I don't remember which (gctypes.h?)
     
  5. panther666
    OP

    panther666 GBAtemp Regular

    Member
    133
    28
    Nov 29, 2015
    Serbia, Republic of
    What version of devkitPPC you recommend?
    devkitPro-1.5.3
    devkitPro-1.5.4
    And where i can find old libs with it in one archive? If i download from official site, i revieve latest versions.
     
    Last edited by panther666, Dec 16, 2016
  6. DarkGabbz

    DarkGabbz Resident XBOX Guy

    Member
    1,106
    635
    Dec 29, 2015
    Micronesia, Federated States of
    Modding Xbox'es
    Try to name the folder "homebrew_launcher-2.1" just hblauncher.
     
  7. panther666
    OP

    panther666 GBAtemp Regular

    Member
    133
    28
    Nov 29, 2015
    Serbia, Republic of
    Same error. :(
     
  8. QuarkTheAwesome

    QuarkTheAwesome Working for Hugs

    Member
    762
    1,859
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    My (old) copy identifies itself as "devkitPPC release 27," can't really help you out much more than that.
    @FIX94, do you remember what header needed changing to fix the whole s32 != int thing?
     
  9. FIX94

    FIX94 Global Moderator

    Global Moderator
    6,831
    8,213
    Dec 3, 2009
    Germany
    ???
    QuarkTheAwesome likes this.
  10. panther666
    OP

    panther666 GBAtemp Regular

    Member
    133
    28
    Nov 29, 2015
    Serbia, Republic of
    Thx you very much, i've made it! And now i have hbl with custom colors! :)
     
  11. RosaliinaDaHacker64

    RosaliinaDaHacker64 Woah

    Member
    569
    265
    Oct 7, 2015
    Ireland
    F:\gm9\out
    I tried and got an error:
    [​IMG]

    I think it must be a missing glm.hpp file, but where do I put it?
     
  12. dj_skual

    dj_skual Code & Mix

    Member
    888
    179
    Mar 9, 2008
    France
    Last edited by dj_skual, Dec 18, 2016
  13. RosaliinaDaHacker64

    RosaliinaDaHacker64 Woah

    Member
    569
    265
    Oct 7, 2015
    Ireland
    F:\gm9\out
    ok, I got portlibs that contain 2 folders called portlib and ppc. I'm kinda lost, where do I add stuffs in devkitPro folder, the main folder or in subfolders?
    edit: nvm, but I still get glm error
     
    Last edited by RosaliinaDaHacker64, Dec 18, 2016
  14. panther666
    OP

    panther666 GBAtemp Regular

    Member
    133
    28
    Nov 29, 2015
    Serbia, Republic of
    Folder called "portlibs" in the main folder.
     
  15. RosaliinaDaHacker64

    RosaliinaDaHacker64 Woah

    Member
    569
    265
    Oct 7, 2015
    Ireland
    F:\gm9\out
    I got it! Thanks.
     
  16. RosaliinaDaHacker64

    RosaliinaDaHacker64 Woah

    Member
    569
    265
    Oct 7, 2015
    Ireland
    F:\gm9\out
    For some weird reason, I get "-5" or "FSGetMountSource failed" error on top left corner of the screen when booting up Homebrew, even I compiled it as complete original one. I compared between release version and compiled version of .elf files with MD5/SHA1 and they're different but same file size...
    Sorry, I was using an older version of portlibs, but I got v0.2 latest one now xP

    Now I'm getting new error
    [​IMG]
     
    Last edited by RosaliinaDaHacker64, Dec 18, 2016