[DEV] probleme for compiling IOS 232 installer

Discussion in 'Wii - Emulation and Homebrew' started by RiderFx3, Dec 9, 2010.

Dec 9, 2010
  1. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    Hello,

    I want to compil my own version of IOS 236 Installer translated in french.

    But i got this error:

    Code:
    c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/bin/ld.exe: cannot open linker script file ../rvl.ld: No such file or directory
    collect2: ld returned 1 exit status
    The file rvl.ld is already in devkitPPC/powerpc-eabi/lib/

    Here is my makefile:
    Warning: Spoilers inside!
     
  2. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    OK I solve my problèm ! I just copy rvl.ld in the root of my folder which contain the makefile !

    But I've got another problèm:

    Code:
    console.o: In function `RGB8x2_TO_YCbYCr':
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8_TO_YCbYCr'
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8_TO_YCbYCr'
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8_TO_YCbYCr'
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8_TO_YCbYCr'
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8_TO_YCbYCr'
    console.o:c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: more undefined references to `PNGU_RGB8_TO_YCbYCr' follow
    iospatch.o: In function `disable_memory_protection':
    c:/homebrew/IOS-236-INSTALLER-FR/source/iospatch.c:15: undefined reference to `read32'
    c:/homebrew/IOS-236-INSTALLER-FR/source/iospatch.c:15: undefined reference to `write32'
     
  3. FIX94

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,535
    Location:
    ???
    Country:
    Germany
  4. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    Thx for link !

    where can I look my devkit version?

    EDIT: I've got the same error with r21
     
  5. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    United States
    just look at the errors.
    undefined reference to `PNGU...'
    that probably means you need the pngu library. get it, install it.
     
  6. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    Thanks for answers!

    the lib PNGU is already in the source folders !!!

    the error of th makefile is linked to this line in console.c:
    Code:
    ÂÂÂÂreturn PNGU_RGB8_TO_YCbYCr(c1[0], c1[1], c1[2], c2[0], c2[1], c2[2]);
    This error is linked with this line in pngu.h:

    Code:
    // Function to convert two RGB8 values to YCbYCr
    PNGU_u32 PNGU_RGB8_TO_YCbYCr (PNGU_u8 r1, PNGU_u8 g1, PNGU_u8 b1, PNGU_u8 r2, PNGU_u8 g2, PNGU_u8 b2);
    I have tried to writte this:
    Code:
    // Function to convert two RGB8 values to YCbYCr
    void PNGU_u32 PNGU_RGB8_TO_YCbYCr (PNGU_u8 r1, PNGU_u8 g1, PNGU_u8 b1, PNGU_u8 r2, PNGU_u8 g2, PNGU_u8 b2);
    But i have got an error.

    I will try to writte this in console.c:
    Code:
    return PNGU_u32 PNGU_RGB8_TO_YCbYCr(c1[0], c1[1], c1[2], c2[0], c2[1], c2[2]);
    EDIT: I have got this error:
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: error: expected expression before 'PNGU_u32'

    LOL...
     
  7. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    you need to add -lpng to the library flags
    PNGU is a "just" a wrapper that uses libPNG
     
  8. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    thanks for helping me !

    Can you give me the method to add libpng to the library plz ?
     
  9. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    I just told you, you add -lpng in the LIBRARY FLAGS.. in the makefile I mean, see the LDFLAGS ? that's it.

    I don't want to sound mean but if you are going to modify some existing program and (probably) release it to others, you should at least have basic understanding about coding and compilation, especially with something like an IOS installer which can potentially brick your Wii if modified incorrectly.

    You shouldn't even had to copy the rvl.ld file, I don't know what you have been doing but it seems you didn't installed devkitPPC correctly.
     
  10. WiiUBricker

    Member WiiUBricker Insert Custom Title

    Joined:
    Sep 19, 2009
    Messages:
    5,822
    Location:
    Espresso
    Country:
    Argentina
    Lol, no [​IMG]
     
  11. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    I said "potentially", don't be nitpicking to show how smart you are. As soon as you are modifying the NAND, you can potentially brick your Wii if you do something wrong, like for example corrupting system menu IOS.
     
  12. WiiUBricker

    Member WiiUBricker Insert Custom Title

    Joined:
    Sep 19, 2009
    Messages:
    5,822
    Location:
    Espresso
    Country:
    Argentina
    Again no. You even can delete a bunch of IOS and your Wii will still work. I really doubt, that a person with zero or litte coding and compiling knowledge can incidently modify the IOS236 Installer in that way, that it can harm the system menu IOS or any essential file.

    IOS installers are damn safe
     
  13. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    I just translate this homebrew, I'm brick-protected by bootmii-boot2 and priiloader!

    I compile correctly others homebrews. Only this one give me problems !

    I will modify my makefile. I haven't base in dev, but i want to learn.

    Thanks all !
     
  14. WiiUBricker

    Member WiiUBricker Insert Custom Title

    Joined:
    Sep 19, 2009
    Messages:
    5,822
    Location:
    Espresso
    Country:
    Argentina
    If you provide me your translation (eng --> french) I can try to compile it for you.
     
  15. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    Thanks but i Want to do ti myself [​IMG]

    I am going to add accents (like: é) and ajust the text to the console width.

    Thanks ! [​IMG]

    EDIT: I modifyed my makefile:
    Code:
    #---------------------------------------------------------------------------------
    # any extra libraries we wish to link with the project
    #---------------------------------------------------------------------------------
    LIBSÂÂÂÂ:=ÂÂÂÂ -libpng -lfat -lwiiuse -lbte -lmad -lm -lmodplay -logc
    It's Okay but,

    I have ONLY got this error now:
    Code:
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c: In function 'RGB8x2_TO_YCbYCr':
    c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: error: expected expression before 'PNGU_u32'
    On this line, in console.c:
    Code:
    return PNGU_u32 PNGU_RGB8_TO_YCbYCr(c1[0], c1[1], c1[2], c2[0], c2[1], c2[2]);
    An Idea ?
     
  16. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    I've got the same error with this part of makefile:
    Code:
    #---------------------------------------------------------------------------------
    # any extra libraries we wish to link with the project
    #---------------------------------------------------------------------------------
    LIBSÂÂÂÂ:=ÂÂÂÂ -lpng -lfat -lwiiuse -lbte -lmad -lm -lmodplay -logc
    and

    Code:
    #---------------------------------------------------------------------------------
    # any extra libraries we wish to link with the project
    #---------------------------------------------------------------------------------
    LIBSÂÂÂÂ:=ÂÂÂÂ -lpngu -lfat -lwiiuse -lbte -lmad -lm -lmodplay -logc
     
  17. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    OK the last makefile works fine, and I fix console.c:
    Code:
    return PNGU_RGB8_TO_YCbYCr(c1[0], c1[1], c1[2], c2[0], c2[1], c2[2]);
    it's ok But I've got 2 other errors:
    Code:
    iospatch.o: In function `disable_memory_protection':
    c:/homebrew/IOS-236-INSTALLER-FR/source/iospatch.c:15: undefined reference to `read32'
    c:/homebrew/IOS-236-INSTALLER-FR/source/iospatch.c:15: undefined reference to `write32'
    The correspondant line is in iospatch.c:
    Code:
    static void disable_memory_protection() {
    ÂÂÂÂwrite32(MEM_PROT, read32(MEM_PROT) & 0x0000FFFF);
    }
     
  18. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    Undefined references means the function is not defined anywhere, it means the source code you are compiling is not complete and is missing some lib or .c .h files. Read32 and write32 functions could be anything, but you better fine where they are defined.

    Edit: see the atd compiling thread below (what's up with french people suddently wanting to translate and recompile apps lol), these functions are apparently defined in libogc, you are probably missing some #include
     
  19. RiderFx3
    OP

    Newcomer RiderFx3 Advanced Member

    Joined:
    Mar 8, 2009
    Messages:
    59
    Country:
    France
    Imagine you are américan, and the best hackers are dutch, and dev in dutch. If you're not speaking dutch, you would like to translate your favorite apps so that it is more pleasant [​IMG]

    thanks a lot for your helping.

    I fix all my problem by reinstalling DevKitPro, and last libogc. [​IMG] (Noobzor inside)
     

Share This Page