undefined reference to `llrint' problem

*nix specific usage questions
fucai1116
Blank Cone
Blank Cone
Posts: 10
Joined: 25 May 2007 03:48

undefined reference to `llrint' problem

Postby fucai1116 » 19 Jun 2007 14:16

Hi,

I cross compile ffmpeg-export-2007-05-23 with no problem. However when I try cross compile VLC-0.8.6b with static link to ffmpeg, the following error is occured.

/home/hptai/source/vlc/ffmpeg-export-2007-05-23/libavcodec/libavcodec.a(mpegaudiodec.o): In function `decode_init':
/home/hptai/source/vlc/ffmpeg-export-2007-05-23/libavcodec/mpegaudiodec.c:375: undefined reference to `llrint'
/home/hptai/source/vlc/ffmpeg-export-2007-05-23/libavcodec/mpegaudiodec.c:377: undefined reference to `llrint'

The configuration I tried:
CC=arm-linux-gcc
CXX=arm-linux-g++ \
LDFLAGS=-L/home/hptai/source/buildroot/build_arm/staging_dir/lib \
CPPFLAGS=-I/home/hptai/source/buildroot/build_arm/staging_dir/include \
AR=arm-linux-ar \
LD=arm-linux-ld \
RANLIB=arm-linux-ranlib \
STRIP=arm-linux-strip \
./configure --host=arm-linux --target=armv6-freescale-linux --prefix=/home/hptai/tmp \
--enable-debug \
--disable-a52 \
--disable-alsa \
--disable-bonjour \
--disable-cdda \
--disable-cmml \
--disable-dts \
--disable-daap \
--disable-dvdnav \
--with-dvbpsi-tree=../libdvbpsi4-0.1.5 \
--enable-faad --with-faad-tree=../faad2-2.0 \
--with-ffmpeg-tree=../ffmpeg-export-2007-05-23 \
--disable-gnutls \
--disable-hal \
--disable-freetype \
--disable-fribidi \
--disable-gnomevfs \
--disable-growl \
--disable-glx \
--disable-libcdio \
--disable-libcddb \
--disable-libmpeg2 \
--disable-libtar \
--disable-libxml2 \
--disable-mad \
--disable-mkv \
--disable-mod \
--disable-mpc \
--disable-nls \
--disable-notify \
--disable-ogg \
--disable-opengl \
--enable-oss \
--disable-png \
--disable-screen \
--disable-sdl \
--disable-sdl-image \
--disable-skins2 \
--disable-smb \
--disable-speex \
--disable-vcd \
--disable-visual \
--disable-vorbis \
--disable-wxwidgets \
--disable-x11 \
--disable-x264 \
--disable-xinerama \
--disable-xvideo

and arm-linux-gcc vesrion is 4.1.1
Can someone help to find out the reason of this problem?

Thank in advance
Tai

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
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 » 19 Jun 2007 14:20

Yes, use a former version of ffmpeg with 0.8.6b
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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15133
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Postby Rémi Denis-Courmont » 19 Jun 2007 20:22

It might be a missing function from uclibc if using that.
Also, you may try to build while adding -std=gnu99 to CFLAGS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


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

Who is online

Users browsing this forum: No registered users and 22 guests