Compiling Benzin with Mac OS X

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

Dec 16, 2009

Compiling Benzin with Mac OS X by G0dLiKe at 3:25 PM (2,346 Views / 0 Likes) 19 replies

  1. G0dLiKe
    OP

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    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

    Newcomer Jacol Beyros Member

    Joined:
    Sep 26, 2008
    Messages:
    32
    Location:
    Washington
    Country:
    United States
    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

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    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

    Member TempusC GBAtemp Regular

    Joined:
    Nov 22, 2006
    Messages:
    229
    Country:
    Canada
    Get mxml-2.6+
    ./configure
    make

    Get benzin
    make


    Done.
     
  5. G0dLiKe
    OP

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    Thx mate,

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

    All cmd in bash?
     
  6. G0dLiKe
    OP

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    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

    Newcomer Jys072595 Newbie

    Joined:
    Sep 8, 2009
    Messages:
    7
    Country:
    United States
  8. G0dLiKe
    OP

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
  9. Jys072595

    Newcomer Jys072595 Newbie

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

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    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

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    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

    Newcomer Jacol Beyros Member

    Joined:
    Sep 26, 2008
    Messages:
    32
    Location:
    Washington
    Country:
    United States
    do 'make install' after you make the mxml library. then make benzin again.
     
  13. MacGnG

    Member MacGnG GBAtemp Regular

    Joined:
    Sep 15, 2007
    Messages:
    177
    Location:
    Know Where
    Country:
    United States
    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

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    Any help on how to solve this?
    Thanks
     
  15. mousex

    Member mousex GBAtemp Advanced Fan

    Joined:
    Jan 23, 2009
    Messages:
    987
    Country:
    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

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    Will try ASAP, thx mousex!
     
  17. G0dLiKe
    OP

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    Finally, success! Thx to all who helped! [​IMG]
     
  18. wilsoff

    Member wilsoff GBAtemp Regular

    Joined:
    Dec 29, 2008
    Messages:
    292
    Country:
    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

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    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

    Member TempusC GBAtemp Regular

    Joined:
    Nov 22, 2006
    Messages:
    229
    Country:
    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.
     

Share This Page