undefined reference to `libiconv'

*nix specific usage questions
jklanka
Blank Cone
Blank Cone
Posts: 13
Joined: 23 May 2007 15:57

undefined reference to `libiconv'

Postby jklanka » 05 Jun 2007 16:17

Hi,

I am trying to compile and install VLC-Trunk with Fedora Core 6.

inside the VLC- folder I can succussfully run ./configure.

But then when I run make, I am getting following error.

ib/lib src/.libs/libvlc.so -L/usr/local/lib -lrt -lpthread -ldl -L/home/vlc/vlc-trunk/extras/contrib/lib -Wl,--rpath -Wl,/usr/local/lib
src/.libs/libvlc.so: undefined reference to `libiconv'
src/.libs/libvlc.so: undefined reference to `libiconv_close'
src/.libs/libvlc.so: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/home/vlc/vlc-trunk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vlc/vlc-trunk'
make: *** [all] Error 2


Then I installed the package libiconv from http://www.gnu.org/software/libiconv/ .

But still I am getting the same error.

Please help me on this to sort out and go further.

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 05 Jun 2007 16:41

Did you make completely the contribs ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jklanka
Blank Cone
Blank Cone
Posts: 13
Joined: 23 May 2007 15:57

Postby jklanka » 05 Jun 2007 17:05

Yes I did complete the contrib.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 05 Jun 2007 17:09

add a -liconv
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jklanka
Blank Cone
Blank Cone
Posts: 13
Joined: 23 May 2007 15:57

Postby jklanka » 06 Jun 2007 10:11

Really thanks for your reply.

1)
But I could not find and install liconv and is it a part of glib?
Can you please give me some info about it?

But if I configure with --disable-libtool option and I could compile and make install succcessfully.

2)
I am trying to run the Java samples with Eclipse Editor. So that I addedd the --enable-java-bindings option to configure line.

Do I need to go to /vlc-trunk folder/bindings and make and make install again to create the libjvlc packages. Please varify me whether I am going in the right track

Thanks

jklanka
Blank Cone
Blank Cone
Posts: 13
Joined: 23 May 2007 15:57

Postby jklanka » 06 Jun 2007 15:04

Hi,

I ran make and make install under vlc-trunk/bindings folder. It is not creating libjvlc.so.

Please help

jklanka
Blank Cone
Blank Cone
Posts: 13
Joined: 23 May 2007 15:57

Postby jklanka » 10 Jun 2007 16:40

Can you please tell me how to add -liconv

philo
New Cone
New Cone
Posts: 1
Joined: 02 Apr 2008 13:21

Re: undefined reference to `libiconv'

Postby philo » 03 Apr 2008 17:45

I had the same probleme with liconv and libiconv.so

to get everything correct I had to configure vlc compilation with :
/configure : ./configure --with-ffmpeg-tree=./extras/ffmpeg --enable-libtool --disable-wxwidgets --disable-skins2
The important option is --enable-libtool without it I couldn't have any libvlc.so and proper libiconv.so.2
It seems that on ubuntu, libtool are enabled by default but not on mandriva...

Then during the complilation of the code which call libvlc (and generates the error undefined reference to `libiconv' )
you need to specify the path of libiconv :

compilation exemple : gcc -I/home/user/Desktop/vlc/instal/include/ -lvlc -liconv -L/home/user/Desktop/vlc/vlc/extras/contrib/lib/ -L/home/user/Desktop/vlc/vlc/src/.libs main.c -o demo

-Imust be followed by the path to all the headers (.h) installed by vlc
-lvlc -liconv mean you want to link to those library and
-Lmust be followed by the paths to those library (.so) installed by vlc

to set exactly a instalation file, you can add the option : --prefix=the/path/you/want at the end of the ./configure line
in my case its : /home/user/Desktop/vlc/instal/

kwizart
Cone that earned his stripes
Cone that earned his stripes
Posts: 164
Joined: 18 Dec 2006 03:43

Re: undefined reference to `libiconv'

Postby kwizart » 07 Apr 2008 03:48

Be "carefull" with Fedora Core 6, This release is unsupported anymore by the fedoraproject.org as it is now "end of life".


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests