Compiling Benzin with Mac OS X

Discussion in 'Wii - Hacking' started by G0dLiKe, Dec 16, 2009.

  1. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Are there any tutorials how to compile Benzin with Mac OS X?

    Please give me a push to the right direction.

    Thanks guys!
     
  2. Jacol Beyros

    Jacol Beyros Member

    Newcomer
    32
    0
    Sep 26, 2008
    United States
    Washington
    no, there isnt. the devs felt that most end-users would be on windows, so there is only a tutorial for that OS.

    what are you trying to do with benzin, anyway?
     
  3. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Mostly banner editing for VC injections, like banner.brlyt, save banner.bin and stuff...

    Its a pain that there is no tutorial.

    So i have to wait until Wadder site is up again because I think I saw there one...
     
  4. TempusC

    TempusC GBAtemp Regular

    Member
    229
    0
    Nov 22, 2006
    Canada
    Get mxml-2.6+
    ./configure
    make

    Get benzin
    make


    Done.
     
  5. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Thx mate,

    I have the latest Benzin, got mxml-2.5 instead of 2.6...

    All cmd in bash?
     
  6. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Well, this works out fine until I have placed all .o files into the benzin directory and type make in the terminal it gives me an error...


    In benzin directory, after make cmd:
    Code:
    gcc -fno-strict-aliasing -c -o main.o main.c
    gcc -fno-strict-aliasing -c -o general.o general.c
    gcc -fno-strict-aliasing -c -o memfile.o memfile.c
    gcc -fno-strict-aliasing -c -o xml.o xml.c
    xml.c:9:18: error: mxml.h: No such file or directory
    In file included from xml.c:12:
    xml.h:12: error: expected ‘)’ before ‘*’ token
    xml.h:16: error: expected ‘)’ before ‘*’ token
    xml.c:17: error: expected ‘)’ before ‘*’ token
    xml.c:79: error: expected ‘)’ before ‘*’ token
    make: *** [xml.o] Error 1
     
  7. Jys072595

    Jys072595 Newbie

    Newcomer
    7
    0
    Sep 8, 2009
    United States
  8. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
  9. Jys072595

    Jys072595 Newbie

    Newcomer
    7
    0
    Sep 8, 2009
    United States
    Oh, yeah, Dx. I forgot if Mac had a different file format. I'm use to using Windows, so, [​IMG].
     
  10. giantpune

    giantpune GBAtemp Addict

    Member
    2,860
    122
    Apr 10, 2009
    United States
    judging from that compile error, you need to install mxml. or if it is included in benzin, copy it to the right directory.
     
  11. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    I did the following:

    Download mxml

    ./configure
    make

    Download benzin

    paste the .o files from mxml into benzin folder

    make

    then came the error...
     
  12. Jacol Beyros

    Jacol Beyros Member

    Newcomer
    32
    0
    Sep 26, 2008
    United States
    Washington
    do 'make install' after you make the mxml library. then make benzin again.
     
  13. MacGnG

    MacGnG GBAtemp Regular

    Member
    177
    0
    Sep 15, 2007
    United States
    Know Where
    just run it in VMWARE, Virtual Box, or Parallels.

    i run all the windoze Wii apps in vmware, its much easier to run it in a virtual machine.
     
  14. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Any help on how to solve this?
    Thanks
     
  15. mousex

    mousex GBAtemp Advanced Fan

    Member
    987
    0
    Jan 23, 2009
    United States
    I use this for win only tools like neroAacEnc.exe.
    But the easiest for you would be installing macports do a "sudo port install mxml" and then just "make" in benzin folder.

    EDIT: Godlike, you have to be root to install the library (e.g. "sudo make install").
     
  16. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Will try ASAP, thx mousex!
     
  17. G0dLiKe
    OP

    G0dLiKe who needs a title ;)

    Member
    1,674
    51
    Aug 2, 2009
    United States
    Finally, success! Thx to all who helped! [​IMG]
     
  18. wilsoff

    wilsoff GBAtemp Regular

    Member
    292
    4
    Dec 29, 2008
    United States
    I'm just starting out on mac. Would you mind posting your binary in this thread, or better still over at wadder with the window binary please?

    http://wadder.net/forums/viewtopic.php?f=3&t=2204

    Also, is there an equivalent to these batch files on mac?

    Code:
    brl2xml
    for %%x in (*.brlyt) do start benzin r "%%x" "%%~nx".xmlyt
    for %%x in (*.brlan) do start benzin r "%%x" "%%~nx".xmlan
    pause
    
    xml2brl
    for %%x in (*.xmlyt) do start benzin m "%%x" "%%~nx".brlyt
    for %%x in (*.xmlan) do start benzin m "%%x" "%%~nx".brlan
    pause
    Or what's the easiest way to get it to convert everything in the same directory?

    Thanks.
     
  19. SifJar

    SifJar Not a pirate

    Member
    6,022
    893
    Apr 4, 2009
    wilsoff:

    You can use a Bash script afaik. However, I have no idea how you would write a suitable one, as I don't know the first thing about Bash. Anyway, all I've found is that you need to name the script *.command for it to work when double-clicked. I'll try and find you a link to a good bash script reference.

    EDIT: This may work, may not. You can try it anyway:

    brl2xml
    Code:
    #!bin/bash
    ls *.brlan > anlist
    for i in `anlist`; do benzin -r "$i" "$i".xmlan; done
    ls *.brlyt > ytlist
    for i in 'ytlist'; do benzin -r "$i" "$i".xmlan; done
    (I think this will leave the brlan and brlyt extensions on before the xmlan and xmlyt, but I dont know how to change that)

    xml2brl
    Code:
    #!bin/bash
    ls *.xmlan > anlist
    for i in 'anlist'; do benzin -r "$i" "$i".brlan; done
    ls *.brlyt > ytlist
    for i in 'ytlist'; do benzin -r "$i" "$i".brlyt; done
    (again, the original extension will still be there.)

    I don't really know if those will work or not, but they're worth a try. Name them brl2xml.command and xml2brl.command, put them in the same folder as the benzin executable and double click the one you want.
     
  20. TempusC

    TempusC GBAtemp Regular

    Member
    229
    0
    Nov 22, 2006
    Canada
    Wilsoff - I left some droplets on Wadder.net. I know you’re there. Open the app by right clicking on it and select “Show Package Contents”. Navigate to the Resources folder, and replace the existing benzin binary with the newest version (the version in here is old). The droplet supports individual files, groups of files, or recursively scanned directories, and outputs to a file of the same name.

    Mirror

    [edit - updated with the newest version of benzin for you anyway. Same link]



    Also, sorry Op for forgetting the sudo make install.