Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#170030 - 10/07/2003 09:28 mp3tofid on Mac OS X
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Hi,

I found on Google that someone has ported mp3tofid to Mac OS X, and in the way fixed some endian issues.

This darn x86 linux programmer would love to share these fixes so he does not have to make the same mistakes in an upcoming release.

So, send them in, please.

Thanks,
Pim

Top
#170031 - 10/07/2003 09:50 Re: mp3tofid on Mac OS X [Re: pim]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Haha that's a funny little excerpt there.. What got you to Googling for this? Was it that burning sensation in your ears that you get when someone's talking about you behind your back?
_________________________
- Tony C
my empeg stuff

Top
#170032 - 10/07/2003 10:10 Re: mp3tofid on Mac OS X [Re: tonyc]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
What got you to Googling for this?


For this audience, I narrowed down the search to come up with only one result. (Is that Googlewhacking?). I found this just by searching for mp3tofid.

Was it that burning sensation in your ears that you get when someone's talking about you behind your back?


Yeah, something like your name being part of the answer in a quiz, and you're not there to see it :-)

Pim

Top
#170033 - 10/07/2003 20:27 Re: mp3tofid on Mac OS X [Re: pim]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
Since mp3tofid isn't a real word, you can't consider that a googlewhack. I think I've only ever been able to come up with one solid one.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#346288 - 07/07/2011 20:34 Re: mp3tofid on Mac OS X [Re: pim]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Did we ever track down the changes need to make it work on OSX ?

I've just tried to build the current version, with no luck.
_________________________
Remind me to change my signature to something more interesting someday

Top
#346292 - 07/07/2011 22:03 Re: mp3tofid on Mac OS X [Re: andy]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
I put a more more effort into trying to build it...

Installed a whole bunch of libraries with MacPorts, tweaked some include/lib paths, added the odd extra include (sys/dir.h), created byteswap.h etc etc

But I still can't get it to build. I am stuck at:

cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o mp3tofid.o mp3tofid.c
mp3tofid.c: In function ‘sourcefiletofidnumber’:
mp3tofid.c:464: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 5 has type ‘ino_t’
mp3tofid.c:466: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 7 has type ‘ino_t’
mp3tofid.c: In function ‘dirscan’:
mp3tofid.c:939: warning: passing argument 4 of ‘scandir’ from incompatible pointer type
cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o scanmp3.o scanmp3.c
cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o scanwave.o scanwave.c
cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o scanwma.o scanwma.c
cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o scanvorbis.o scanvorbis.c
/opt/local/include/vorbis/vorbisfile.h:75: warning: ‘OV_CALLBACKS_DEFAULT’ defined but not used
/opt/local/include/vorbis/vorbisfile.h:82: warning: ‘OV_CALLBACKS_NOCLOSE’ defined but not used
/opt/local/include/vorbis/vorbisfile.h:89: warning: ‘OV_CALLBACKS_STREAMONLY’ defined but not used
/opt/local/include/vorbis/vorbisfile.h:96: warning: ‘OV_CALLBACKS_STREAMONLY_NOCLOSE’ defined but not used
cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o scanflac.o scanflac.c
cc -O2 -g -I/opt/local/include -L/opt/local/lib -Wall -Wpointer-arith -Wbad-function-cast -Wcast-align -Wnested-externs -c -o iconv.o iconv.c
cc -g -L/opt/local/lib -o mp3tofid mp3tofid.o scanmp3.o scanwave.o scanwma.o scanvorbis.o scanflac.o iconv.o -lpopt -lgdbm -lcrypto -lmad -lid3tag -lvorbisfile -lvorbis -logg -lsndfile -lFLAC -lz -lm
Undefined symbols:
"_libiconv", referenced from:
_codesetconv in iconv.o
_codesetconv in iconv.o
"_libiconv_open", referenced from:
_eiconv_open in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mp3tofid] Error 1

Any clues anyone ? It is a long time since I was messing about getting random Unix code to build...
_________________________
Remind me to change my signature to something more interesting someday

Top
#346293 - 07/07/2011 23:31 Re: mp3tofid on Mac OS X [Re: andy]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Originally Posted By: andy
Did we ever track down the changes need to make it work on OSX ?

I've just tried to build the current version, with no luck.

Why does this even need compiling -- wouldn't a shell script make more sense?

Top
#346301 - 08/07/2011 02:27 Re: mp3tofid on Mac OS X [Re: andy]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
i'll commit them to git. it's built on osx on my mac and that's how i use it.

Top
#346302 - 08/07/2011 02:28 Re: mp3tofid on Mac OS X [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
a shell script that does what? builds the database? sounds like an icky script.

Top
#346304 - 08/07/2011 02:41 Re: mp3tofid on Mac OS X [Re: Daria]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI

Top
#346309 - 08/07/2011 05:26 Re: mp3tofid on Mac OS X [Re: Daria]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Awesome. Builds perfectly, one I worked out I was pulling the wrong branch blush

Thanks
_________________________
Remind me to change my signature to something more interesting someday

Top
#346488 - 18/07/2011 22:56 Re: mp3tofid on Mac OS X [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Originally Posted By: mlord

Why does this even need compiling -- wouldn't a shell script make more sense?


If I would write it again, I'd use Python. I have been considering a rewrite once and then but never got to it.

Pim

Top
#346489 - 18/07/2011 23:10 Re: mp3tofid on Mac OS X [Re: Daria]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Originally Posted By: dbrashear


Cool. I do own a (Intel) Mac Mini, so I can try this out. Are all the required libraries available as binaries?

I once planned to buy a PPC Mac Mini, and starting coding some byte swap stuff but never finished it as I never bought one.

Thanks for putting mp3tofid into github. Can I get read/write access there? I suppose I could merge most of the changes into master.

Pim

Top
#346494 - 19/07/2011 09:47 Re: mp3tofid on Mac OS X [Re: pim]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Originally Posted By: pim
Originally Posted By: dbrashear


Cool. I do own a (Intel) Mac Mini, so I can try this out. Are all the required libraries available as binaries?

I once planned to buy a PPC Mac Mini, and starting coding some byte swap stuff but never finished it as I never bought one.

Thanks for putting mp3tofid into github. Can I get read/write access there? I suppose I could merge most of the changes into master.


I tried and failed to guess your github username. Just let me know who to add.

As to libraries, I used macports to build what was needed. I believe they distribute them in binary form, also, but I haven't used them, so I can't tell you how to get them.

Top
#346497 - 19/07/2011 14:05 Re: mp3tofid on Mac OS X [Re: Daria]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
pimzand

It did not exist when you tried.

Thanks,
Pim

Top
#346500 - 19/07/2011 15:58 Re: mp3tofid on Mac OS X [Re: pim]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
that's ok. also failed to guess who to add for most of the other repos.

Top
#346517 - 20/07/2011 12:36 Re: mp3tofid on Mac OS X [Re: Daria]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Now that we're at it, would it be possible to host my rsync patch for the empeg, now at http://veldhoen.macroscoop.nl/~pim/empeg/rsync, on github as a branch of http://git.samba.org/rsync.git ?

Pim


Edited by pim (20/07/2011 12:52)
Edit Reason: url would not view as such

Top
#346521 - 20/07/2011 14:48 Re: mp3tofid on Mac OS X [Re: pim]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
it's not ideal since a fork won't track, but i'm doing it now.

Top
#346522 - 20/07/2011 15:24 Re: mp3tofid on Mac OS X [Re: Daria]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
needs to be updated for current rsync, but branches empeg-vfdhack-1 and empeg-vfdhack-2 now exist in the empeg/rsync github module.

Top
#346524 - 20/07/2011 15:25 Re: mp3tofid on Mac OS X [Re: Daria]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Im just a beginner with git.

I was hoping the distributed workflow stuff that git does would allow a dynamic read-only link to another repo.

Pim

Top
#346531 - 20/07/2011 19:18 Re: mp3tofid on Mac OS X [Re: pim]
canuckInOR
carpal tunnel

Registered: 13/02/2002
Posts: 3212
Loc: Portland, OR
Originally Posted By: pim
I was hoping the distributed workflow stuff that git does would allow a dynamic read-only link to another repo

I'm not 100% sure what you mean by this. Generally the distributed stuff is done by each developer having a private repository, and a public-facing repository. If Joe wants changes from Alice, he pulls them from her public repository, into his private repository. When he has changes that he wants to make public to Alice, he pushes his changes from his private repository into his public repository. The project maintainer will generally maintain the "master" public repository by pulling changesets from the contributors' public repositories.

You can pull from multiple repositories, without ever pushing anything back, so in effect, everything is a dynamic read-only link in that regard.

git also has the notion of a submodules, which allows you to create a directory in your tree, and associate that with a particular revision of some other repository. This is what gives you the ability to track dependencies between projects. When you "check out" a git repo containing a submodule, the submodule isn't automatically checked out.

Top
#346535 - 21/07/2011 02:10 Re: mp3tofid on Mac OS X [Re: pim]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Originally Posted By: pim
Im just a beginner with git.

I was hoping the distributed workflow stuff that git does would allow a dynamic read-only link to another repo.

Pim


yeah, that would be a tracking repo.

Top