compile problem

*nix specific usage questions
motzky
New Cone
New Cone
Posts: 4
Joined: 14 May 2004 17:49

compile problem

Postby motzky » 14 May 2004 17:57

Hi guys,

I use Suse9 x86_64 on an AMD64-System and got many linker errors i could fix but now I came across one I can't understand:

The linker says that it can't find -lX11 or better that it had found 2 files but cannot use any of them...

here is the output:

Code: Select all

gcc -Wsign-compare -Wall -finline-limit-30000 -pipe -o libx11_plugin.so libx11_plugin_a-x11.o libx11_plugin_a-xcommon.o `top_builddir=../../.. ../../../vlc-config --libs plugin x11` /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11 /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11 /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status make[6]: *** [libx11_plugin.so] Error 1
Anyone ever had this error before ?

Greets
motzky

mikeg

any aswers yet

Postby mikeg » 20 Apr 2005 17:43

I've got the smae problem on an AMD opteron.

Anyone got any suggestions?

mikeg

update

Postby mikeg » 20 Apr 2005 17:48

Sorry I'm using the latest source and I get the following output when I run make

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[6]: *** [libscreen_plugin.so] Error 1
make[6]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/access/screen'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/access/screen'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/access'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1'
make: *** [all] Error 2


Anyone explain what I'm doing wrong?

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 20 Apr 2005 18:51

check out current svn. There were some fixes for amd64 build not long ago

mikeg

the solution

Postby mikeg » 21 Apr 2005 13:02

I finally managed to get the rpm file to install by downloading all the dependencies from http://rpmseeker.com

I now can not get vlc to open.

When I run it from the command line I get the following error message:

VLC media player 0.8.1 Janus
[00000001] main vlc error: no memcpy module matched "any"
[00000016] main interface error: no interface module matched "hotkeys,none"
[00000016] main interface error: no suitable intf module
[00000001] main vlc error: interface "hotkeys,none" initialization failed
[00000017] main interface error: no interface module matched "any"
[00000017] main interface error: no suitable intf module
[00000001] main vlc error: interface "(null)" initialization failed

Any suggestions?

mikeg

part of the solution

Postby mikeg » 21 Apr 2005 14:38

OK I've managed to resolve the error at the top of this post.

You need to add a number of lines to your /etc/ld.so.conf

An example is given below.
  • include ld.so.conf.d/*.conf
    /usr/lib64/mysql
    /usr/X11R6/lib
    /usr/X11R6/lib64
    /usr/lib64/qt-3.3/lib
    /usr/lib64/xmms/Visualization
    /usr/local/lib
    /usr/local/include/ebml
    /usr/local/include/matroska
    /usr/local/include/matroska/c
    /usr/local/include/wx-2.5
    /usr/local/include/theora
    /usr/local/include/vorbis
    /usr/local/include/goom
    /usr/local/include/mpeg2dec
    /usr/local/lib/pkgconfig/
    /usr/local/lib/python2.3/site-packages
Then run:
# /sbin/ldconfig

You should now be able to compile the source.

I've done this and used the following to configure vlc:

./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --x-libraries=/usr/X11R6/lib64 --enable-release --enable-dvdread --enable-dvdplay --enable-dvbpsi --enable-v4l --enable-vcd --enable-mad --enable-ffmpeg --with-ffmpeg-tree=/enter/your_path/here/fmpeg-20041113 --enable-faad --enable-xvid --enable-flac --enable-theora --enable-x11 --enable-xvideo --disable-qte --disable-directx --enable-fb --enable-aa --without-wingdi --enable-oss --enable-esd --enable-arts --enable-alsa --disable-waveout --enable-gtk --disable-familiar --enable-gnome --enable-wxwindows --disable-opie --disable-macosx --disable-qnx --disable-intfwin --enable-xosd --enable-lirc --enable-pth --disable-st --disable-testsuite --enable-plugins

Now it failes when I run the make:

/usr/bin/ld: /usr/local/lib/liba52.a(parse.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/liba52.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[6]: *** [liba52tofloat32_plugin.so] Error 1
make[6]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/audio_filter/converter'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/audio_filter/converter'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/audio_filter'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules/audio_filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mgilroy/video_on_demand_binaries/vlc-0.8.1'
make: *** [all] Error 2
[root@a2e vlc-0.8.1]# cd ..
[root@a2e video_on_demand_binaries]# ls


Any suggestions anyone?

daminh
New Cone
New Cone
Posts: 3
Joined: 21 Apr 2005 07:51

Postby daminh » 21 Apr 2005 16:06

/usr/bin/ld: /usr/local/lib/liba52.a(parse.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/liba52.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

You have to check if your ld and the library liba52.a has the same version or does that library compiled by your gcc.

mikeg

Postby mikeg » 22 Apr 2005 10:47

The library was compiled by gcc.

I've tried compiling it with the --with-pic option set and I still get the same problem.

Has anyone managed to get videoLAN working on a 64bit processor?

mikeg

help

Postby mikeg » 22 Apr 2005 15:55

I've compiled liba52 with the -fPIC option ( ./configure --with-pic )
Ran make, make_install.

Re-configured the vlc source, and I still get the same error messages when I try to run the make file. Has anyone any suggestions?

mikeg

It works!

Postby mikeg » 25 Apr 2005 11:24

HI I finally managed to get vlc to run using the x86_64 rpm files.

Just for anyone with similat problems in the future:

download VLC rpm and all the dependancies.

installl them all with:
rpm -U *.rpm

then make sure you use the following command:
# ln -s /usr/lib64/vlc /usr/lib/vlc

to load:

# wxvlc

if you do not run the above you will get the following error message:

[00000001] main vlc error: no memcpy module matched "any"
[00000016] main interface error: no interface module matched "hotkeys,none"
[00000016] main interface error: no suitable intf module
[00000001] main vlc error: interface "hotkeys,none" initialization failed
[00000017] main interface error: no interface module matched "any"
[00000017] main interface error: no suitable intf module
[00000001] main vlc error: interface "(null)" initialization failed

Anyone know how to get this point added to the documentation as I think you will always need this command to get it to work for 64-bit processors. It would help save people a lot of time.

mikeg

still doesn't work

Postby mikeg » 27 Apr 2005 12:19

OK although I've managed to videoLAN installled and runnning I can't get it to play any mpeg2, mpeg4 or avi files.


I've no problem when using MPlayer to view these files so could anyone offer any suggestions?

The following is the output on the message window when I try to open an *.avi

Code: Select all

main debug: adding playlist item `/home/mgilroy/Movie_clips/WarofTheWorlds.avi' ( /home/mgilroy/Movie_clips/WarofTheWorlds.avi ) main debug: creating new input thread main debug: waiting for thread completion main debug: `/home/mgilroy/Movie_clips/WarofTheWorlds.avi' gives access `' demux `' path `/home/mgilroy/Movie_clips/WarofTheWorlds.avi' main debug: demux2_New: access='' demux='' path='/home/mgilroy/Movie_clips/WarofTheWorlds.avi' main debug: looking for access_demux module main debug: probing 2 candidates main debug: access2_New: access='' path='/home/mgilroy/Movie_clips/WarofTheWorlds.avi' main debug: looking for access2 module main debug: probing 4 candidates vcd debug: trying .cue file: /home/mgilroy/Movie_clips/WarofTheWorlds.cue vcd warning: could not open /home/mgilroy/Movie_clips/WarofTheWorlds.avi access_file debug: opening file `/home/mgilroy/Movie_clips/WarofTheWorlds.avi' main debug: using access2 module "access_file" main debug: pre buffering main debug: received first data for our buffer main debug: prebuffering done 1408981 bytes in 0s - 407208 kbytes/s main debug: demux2_New: access='' demux='' path='/home/mgilroy/Movie_clips/WarofTheWorlds.avi' main debug: looking for demux2 module main debug: probing 33 candidates avi debug: found Chunk fourcc:46464952 (RIFF) size:15203238 pos:0 avi debug: found LIST chunk: 'AVI ' avi debug: <list 'AVI '> avi debug: found Chunk fourcc:5453494c (LIST) size:8830 pos:12 avi debug: found LIST chunk: 'hdrl' avi debug: <list 'hdrl'> avi debug: found Chunk fourcc:68697661 (avih) size:56 pos:24 avi debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED 656x352 avi debug: found Chunk fourcc:5453494c (LIST) size:4244 pos:88 avi debug: found LIST chunk: 'strl' avi debug: <list 'strl'> avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:100 avi debug: strh: type:vids handler:0x78766964 samplesize:0 23.98fps avi debug: found Chunk fourcc:66727473 (strf) size:40 pos:164 avi debug: strf: video:DX50 656x352 planes:1 24bpp avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 avi debug: </list 'strl'> avi debug: found Chunk fourcc:5453494c (LIST) size:4234 pos:4340 avi debug: found LIST chunk: 'strl' avi debug: <list 'strl'> avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:4352 avi debug: strh: type:auds handler:0x00000000 samplesize:1 15963.00fps avi debug: found Chunk fourcc:66727473 (strf) size:30 pos:4416 avi debug: strf: audio:0x0055 channels:2 44100Hz 0bits/sample 124kb/s avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:4454 avi debug: </list 'strl'> avi debug: found Chunk fourcc:5453494c (LIST) size:260 pos:8582 avi debug: found LIST chunk: 'odml' avi debug: <list 'odml'> avi debug: found Chunk fourcc:686c6d64 (dmlh) size:248 pos:8594 avi warning: unknown chunk (not loaded) avi debug: </list 'odml'> avi debug: </list 'hdrl'> avi debug: found Chunk fourcc:4b4e554a (JUNK) size:1382 pos:8850 avi debug: found Chunk fourcc:5453494c (LIST) size:15103422 pos:10240 avi debug: skipping movi chunk access_file error: seeking too far avi debug: </list 'AVI '> avi debug: * LIST-root size:1802492 pos:0 avi debug: + RIFF-AVI size:15203238 pos:0 avi debug: | + LIST-hdrl size:8830 pos:12 avi debug: | | + avih size:56 pos:24 avi debug: | | + LIST-strl size:4244 pos:88 avi debug: | | | + strh size:56 pos:100 avi debug: | | | + strf size:40 pos:164 avi debug: | | | + JUNK size:4120 pos:212 avi debug: | | + LIST-strl size:4234 pos:4340 avi debug: | | | + strh size:56 pos:4352 avi debug: | | | + strf size:30 pos:4416 avi debug: | | | + JUNK size:4120 pos:4454 avi debug: | | + LIST-odml size:260 pos:8582 avi debug: | | | + dmlh size:248 pos:8594 avi debug: | + JUNK size:1382 pos:8850 avi debug: | + LIST-movi size:15103422 pos:10240 avi debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED avi debug: stream[0] rate:24000 scale:1001 samplesize:0 avi debug: stream[0] video(DX50) 656x352 24bpp 23.976025fps main debug: Selecting program id=0 avi debug: stream[1] rate:15963 scale:1 samplesize:1 avi debug: stream[1] audio(0x55) 2 channels 44100Hz 0bits avi warning: cannot find idx1 chunk, no index defined avi warning: cannot find indx (misdetect/broken OpenDML file?) avi warning: cannot find indx (misdetect/broken OpenDML file?) avi debug: stream[0] created 0 index entries avi debug: stream[1] created 0 index entries avi warning: broken or missing index, 'seek' will be axproximative or will have strange behavour main debug: using demux2 module "avi" main debug: looking for a subtitle file in /home/mgilroy/Movie_clips/ main debug: looking for decoder module main debug: probing 20 candidates ffmpeg debug: libavcodec initialized (interface 4742 ) ffmpeg debug: postprocessing disabled ffmpeg debug: using direct rendering ffmpeg debug: ffmpeg codec (MPEG-4 Video) started main debug: using decoder module "ffmpeg" main debug: thread 13412016 (decoder) created at priority 0 (src/input/decoder.c:157) main debug: looking for decoder module main debug: probing 20 candidates main debug: using decoder module "mpeg_audio" main debug: thread 13414416 (decoder) created at priority 10 (src/input/decoder.c:157) main debug: meta information: main debug: - 'Setting' = ' HAS_INDEX IS_INTERLEAVED' main debug: `/home/mgilroy/Movie_clips/WarofTheWorlds.avi' sucessfully opened avi debug: old:0 < new 0 main debug: no usable vout present, spawning one main debug: looking for video output module main debug: probing 7 candidates xvideo debug: adaptor 0, port 69, format 0x32315659 (YV12) planar xvideo debug: Window manager supports NetWM xvideo debug: Window manager supports _NET_WM_STATE_FULLSCREEN xvideo debug: Window manager supports _NET_WM_STATE_ABOVE xvideo debug: Window manager supports _NET_WM_STATE_BELOW xvideo debug: Window manager supports _NET_WM_STATE_STAYS_ON_TOP main debug: using video output module "xvideo" main debug: waiting for thread completion main debug: got 8 direct buffer(s) main debug: picture in 656x352, chroma 0x30323449 (I420), aspect ratio 80509:43200 main debug: picture out 656x352, chroma 0x30323449 (I420), aspect ratio 80509:43200 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 13274832 (input) created at priority 20 (src/input/input.c:228)

straus
New Cone
New Cone
Posts: 1
Joined: 14 Dec 2006 22:54

Postby straus » 14 Dec 2006 23:01

To get this to work I had to compile the RPMs from the SRPMS. The RPMs on the net did not match my system even though they were both x86_64.


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

Who is online

Users browsing this forum: No registered users and 5 guests