chienbv / sacd-ripper

Automatically exported from code.google.com/p/sacd-ripper
GNU General Public License v2.0
0 stars 0 forks source link

Error when trying to compile (cannot find -lid3tag) #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Admittedly I'm not quite sure what I'm doing overall.  I followed the wiki on 
psl1ght and compiled the ps3toolchain successfully on Ubuntu (could not get it 
to compile in cygwin successfully).  Then I checked out the code using 
subversion and ran make in the downloaded file.

I note that the sample codes in psl1ght compiled fine.

However, I cannot compile the program

What steps will reproduce the problem?
1. run make in checked out sacd-ripper folder
2.
3.

What is the expected output? What do you see instead?

Trying to get the package compiled.

I get this error when running make:

linking ... sacd-ripper-read-only.elf
/usr/local/ps3dev/ppu/lib/gcc/powerpc64-ps3-elf/4.5.2/../../../../powerpc64-ps3-
elf/bin/ld: cannot find -lid3tag
collect2: ld returned 1 exit status
make[1]: *** [/home/ankurgarg/sacd-ripper-read-only/sacd-ripper-read-only.elf] 
Error 1
make: *** [build] Error 2

What version of the product are you using? On what operating system?

r191 on Ubuntu

Please provide any additional information below.

Original issue reported on code.google.com by Mr.Ankur...@gmail.com on 10 Jun 2011 at 1:36

GoogleCodeExporter commented 9 years ago
You can try cd into libs/libid3tag and do the following two commands:

chmod u+x configure
CPPFLAGS=-I/usr/local/ps3dev/portlibs/ppu/include 
LDFLAGS=-L/usr/local/ps3dev/portlibs/ppu/lib ./configure --host=ppu

That worked for me on Debian 5 and it should work for you as well.

Original comment by rtli...@gmail.com on 10 Jun 2011 at 2:44

GoogleCodeExporter commented 9 years ago
I get the following error after running those two commands in the 
/sacd-ripper-read-only/libs/libid3tag folder 

linking ... sacd-ripper-read-only.elf
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x0): undefined reference to 
`id3_frametype_text'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x8): undefined reference to 
`id3_frametype_url'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x10): undefined reference to 
`id3_frametype_experimental'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x18): undefined reference to 
`id3_frametype_obsolete'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x20): undefined reference to 
`id3_frametype_unknown'
../libs/libid3tag/lib/libid3tag.a(frame.o): In function `id3_frame_new':
/home/ankurgarg/sacd-ripper-read-only/libs/libid3tag/frame.c:76: undefined 
reference to `.id3_frametype_lookup'
/home/ankurgarg/sacd-ripper-read-only/libs/libid3tag/frame.c:97: undefined 
reference to `.id3_compat_lookup'
../libs/libid3tag/lib/libid3tag.a(frame.o): In function `id3_frame_parse':
/home/ankurgarg/sacd-ripper-read-only/libs/libid3tag/frame.c:295: undefined 
reference to `.id3_compat_lookup'
/home/ankurgarg/sacd-ripper-read-only/libs/libid3tag/frame.c:311: undefined 
reference to `.id3_compat_lookup'
../libs/libid3tag/lib/libid3tag.a(tag.o): In function `id3_tag_findframe':
/home/ankurgarg/sacd-ripper-read-only/libs/libid3tag/tag.c:240: undefined 
reference to `.id3_compat_lookup'
../libs/libid3tag/lib/libid3tag.a(tag.o): In function `v2_parse':
/home/ankurgarg/sacd-ripper-read-only/libs/libid3tag/tag.c:642: undefined 
reference to `.id3_compat_fixup'
collect2: ld returned 1 exit status
make[1]: *** [/home/ankurgarg/sacd-ripper-read-only/sacd-ripper-read-only.elf] 
Error 1
make: *** [build] Error 2

Original comment by Mr.Ankur...@gmail.com on 10 Jun 2011 at 3:23

GoogleCodeExporter commented 9 years ago
I've adjusted the readme. You need to run ./config.sh in the libs/libid3tag 
folder before you run make in the root folder. 

Original comment by mr_wic...@hotmail.com on 10 Jun 2011 at 7:53

GoogleCodeExporter commented 9 years ago
I checkout the latest r194 and ran ./config.sh in the libs/libid3tag folder but 
still get the following when running make:

linking ... sacd-ripper.elf
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x0): undefined reference to 
`id3_frametype_text'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x8): undefined reference to 
`id3_frametype_url'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x10): undefined reference to 
`id3_frametype_experimental'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x18): undefined reference to 
`id3_frametype_unknown'
../libs/libid3tag/lib/libid3tag.a(frame.o):(.toc+0x20): undefined reference to 
`id3_frametype_obsolete'
../libs/libid3tag/lib/libid3tag.a(frame.o): In function `.id3_frame_new':
frame.c:(.text.id3_frame_new+0x3c): undefined reference to 
`.id3_frametype_lookup'
frame.c:(.text.id3_frame_new+0xc4): undefined reference to `.id3_compat_lookup'
../libs/libid3tag/lib/libid3tag.a(frame.o): In function `.id3_frame_parse':
frame.c:(.text.id3_frame_parse+0xdc): undefined reference to 
`.id3_compat_lookup'
frame.c:(.text.id3_frame_parse+0x16c): undefined reference to 
`.id3_compat_lookup'
../libs/libid3tag/lib/libid3tag.a(tag.o): In function `.id3_tag_findframe':
tag.c:(.text.id3_tag_findframe+0xe8): undefined reference to 
`.id3_compat_lookup'
../libs/libid3tag/lib/libid3tag.a(tag.o): In function `.v2_parse':
tag.c:(.text.v2_parse+0x748): undefined reference to `.id3_compat_fixup'
collect2: ld returned 1 exit status
make[1]: *** [/home/ankurgarg/sacd-ripper/sacd-ripper.elf] Error 1
make: *** [build] Error 2

Original comment by Mr.Ankur...@gmail.com on 10 Jun 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Although the problem is your os and or installation. Due to incompatibility 
issues with AudioGate. I've replaced the entire id3tag library with a custom 
(borrowed from xmms) library.

Please update from trunk and try again.

Original comment by mr_wic...@hotmail.com on 10 Jun 2011 at 2:34

GoogleCodeExporter commented 9 years ago
Worked!  REALLY thanks so much for dealing with this issue that seems more 
specific to me than the project overall.  Can't wait to test the package out!  

Also, some other people might feel the same way in that you've put a ton of 
time into something that we've all wanted for a really long time and so I 
wanted to know if you ever considered taking donations for the project?

Original comment by Mr.Ankur...@gmail.com on 10 Jun 2011 at 2:40

GoogleCodeExporter commented 9 years ago
>Also, some other people might feel the same way in that you've put a ton of 
time into something that we've all wanted for a really long time and so I 
wanted to know if you ever considered taking donations for the project?

That's very kind of you. I've added a paypal donation button to your 
suggestion. Thanks for that!

Original comment by mr_wic...@hotmail.com on 10 Jun 2011 at 3:03