chienbv / sacd-ripper

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

Problem when compile sacd_extract on Ubuntu #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
First, compile libiconv, in my console:
$cd libiconv-1.14/
$configure
$make && make install

then compile sacd-ripper:
$cd sacd-ripper/
$svn update
$cd tools/sacd_extract
$cmake .
$make clean
$make

3.
What is the expected output? What do you see instead?
I expected it build success, but it failed.

What version of the product are you using? On what operating system?
sacd-ripper subversion r395 on Ubuntu 12.04 LTS,
gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
cmake version 2.8.11.2
gnu libiconv 1.14

Please provide any additional information below.
When I add ' -liconv' to CMakeLists.txt, then
$cmake .
$make clean
$make
I get the compiled binary file.
Please see the attach file. Thanks.

Original issue reported on code.google.com by mike2718 on 24 Sep 2013 at 5:44

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry and the what-do-you-see-instead is:

3.
What do you see instead?

mike@mike-pc:~/dev/sacd-ripper/tools/sacd_extract$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/mike/dev/sacd-ripper/tools/sacd_extract
mike@mike-pc:~/dev/sacd-ripper/tools/sacd_extract$ make
Linking C executable sacd_extract
CMakeFiles/sacd_extract.dir/home/mike/dev/sacd-ripper/libs/libcommon/charset.c.o
: In function `charset_convert':
charset.c:(.text+0x6d): undefined reference to `libiconv_open'
charset.c:(.text+0x100): undefined reference to `libiconv'
charset.c:(.text+0x1da): undefined reference to `libiconv_close'
collect2: ld return 1
make[2]: *** [sacd_extract] error 1
make[1]: *** [CMakeFiles/sacd_extract.dir/all] error 2
make: *** [all] error 2
mike@mike-pc:~/dev/sacd-ripper/tools/sacd_extract$ 

Original comment by mike2718 on 24 Sep 2013 at 5:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No need libiconv in linux.
To compile the source code must be placed in /root. Not in the user directory.

For example:

sudo su [password]
#cd 
#svn checkout http://sacd-ripper.googlecode.com/svn/trunk/ sacd-ripper
#cd sacd-ripper/tools/sacd_extract/
#cmake .
#make

works on ubuntu 14.04

Original comment by mpd.hw...@gmail.com on 2 Oct 2014 at 5:37

Attachments:

GoogleCodeExporter commented 9 years ago

Must move the generated binary eg: /usr/local/bin

Original comment by mpd.hw...@gmail.com on 2 Oct 2014 at 5:40

GoogleCodeExporter commented 9 years ago
Documentation of this is all in the readme as of r397, including a note about 
libiconv not being needed.  Closing.

Original comment by gregs1...@gmail.com on 11 Nov 2014 at 12:37