Hacking Compiling Benzin with Mac OS X

  • Thread starter Thread starter G0dLiKe
  • Start date Start date
  • Views Views 3,444
  • Replies Replies 19

G0dLiKe

who needs a title ;)
Member
Joined
Aug 2, 2009
Messages
1,674
Reaction score
52
Trophies
1
Website
db.tt
XP
206
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!
 
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...
 
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
 
Oh, yeah, Dx. I forgot if Mac had a different file format. I'm use to using Windows, so,
tongue.gif
.
 
judging from that compile error, you need to install mxml. or if it is included in benzin, copy it to the right directory.
 
giantpune said:
judging from that compile error, you need to install mxml. or if it is included in benzin, copy it to the right directory.

I did the following:

Download mxml

./configure
make

Download benzin

paste the .o files from mxml into benzin folder

make

then came the error...
 
Jacol Beyros said:
do 'make install' after you make the mxml library. then make benzin again.

Ok, I did this but it seems I dont have the rights to do it...

CODE/usr/bin/install -c -d /usr/local/lib
install: chmod 755 /usr/local/lib: Operation not permitted
/usr/bin/install -c -m 755 libmxml.a /usr/local/lib
install: /usr/local/lib/libmxml.a: Permission denied
make: *** [install-libmxml.a] Error 71

Any help on how to solve this?
Thanks
 
MacGnG said:
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.
IMHO opening the terminal and typing benzin is much easier than installing a crappy OS into VMWare, booting this OS, logging in, waiting for it to respond, opening cmd and typing benzin.
And even if you you only have a win binary you can place a script as benzin in /usr/local/bin with the following contents
CODE#!/bin/bash
/Applications/Darwine/Wine.bundle/Contents/bin/wine /path/to/benzin.exe $1 $2 $3 $4 $5 $6 $7 $8 $9
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").
 
mousex said:
MacGnG said:
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.
IMHO opening the terminal and typing benzin is much easier than installing a crappy OS into VMWare, booting this OS, logging in, waiting for it to respond, opening cmd and typing benzin.
And even if you you only have a win binary you can place a script as benzin in /usr/local/bin with the following contents
CODE#!/bin/bash
/Applications/Darwine/Wine.bundle/Contents/bin/wine /path/to/benzin.exe $1 $2 $3 $4 $5 $6 $7 $8 $9
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").

Will try ASAP, thx mousex!
 
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.
 
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.
 
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.
 

Site & Scene News

Popular threads in this forum