LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing xvidcap on suse linux with missing libs (https://www.linuxquestions.org/questions/linux-software-2/installing-xvidcap-on-suse-linux-with-missing-libs-4175443668/)

nuttynibbles 01-01-2013 04:13 AM

installing xvidcap on suse linux with missing libs
 
hi,

im installing xvidcap 1.1.7 on suse linux 11 enterprise server and im facing missing packages.

Code:

checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  de en it es
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met:

No package 'gtk+-2.0' found
No package 'libglade-2.0' found
No package 'glib-2.0' found
No package 'gthread-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

i checked my software repo via yast and i have the following installed:
- gtk2 - Library for Creation of Graphical User Interfaces (version 2)
- glib2 - A Library with Convenient Functions Written in C
- libglade2 - Glade Library Compatible with the GNOME 2.x Desktop Platform
- libgthread-2_0-0 - A Library with Convenient Functions Written in C

what should i do? it says i should set my package_cflags and package_libs. but how should i do that?

knudfl 01-01-2013 04:45 AM

Development packages ( -devel ) are required when you want to compile :

# zypper in libglade2-devel gtk2-devel glib2-devel


Note : The file xvidcap.spec, "BuildRequires" :
gtk2-devel libmp3lame-devel libglade2-devel perl-XML-Parser pkgconfig \
scrollkeeper update-desktop-files
ftp://ftp.pbone.net/mirror/packman.i....7-5.2.src.rpm

.

nuttynibbles 01-01-2013 07:30 AM

hi knudfl,

where should i get these devel packages? i couldnt find it in suse linux iso. what is the normal practise? get it from external parties?

knudfl 01-01-2013 03:42 PM

# 3 : No, none of the three packages are on the install DVD.
Usually you would type : 1) su <enter password>
2) zypper in <package> <package> <package>
... to get the packages installed.
But it won't work unless you have paid for the "SLE 11" support.

Please show the output from the commands :
a) uname -m
b) rpm -qa glib2
c) rpm -qa gtk2
d) rpm -qa libglade2

.

nuttynibbles 01-04-2013 08:58 AM

sorry i was away for a while. as request, the outputs from the commands are:
1) x86_64
2) glib2-2.22.5-0.2.23
3) gtk2-2.18.9-0.21.4
4) libglade2-2.6.4-1.2.267

knudfl 01-04-2013 09:44 AM

# 5

OK, that's SLE 11 SP2 packages.

The 64bits '-devel' packages are on the SLE11SP2-SDK-x64-DVD1
http://demeter.uni-regensburg.de/SLE...1/suse/x86_64/

→ glib2-devel atk-devel cairo-devel pango-devel gtk2-devel libglade2-devel


.

nuttynibbles 01-04-2013 08:56 PM

hi knudfl, thank you so much. you have been so much help!!! i managed to install xvidcap dependencies successfully. anyhow, i ran ./configure make make install, but where is it installed to? i can't find xvidcap in application browser nor in /usr/local/share/omf/xvidcap. is it installed correctly?? how can i check?

knudfl 01-04-2013 11:23 PM

# 7

The command : which xvidcap
.. will reply with /usr/local/bin/xvidcap

Starting the application is done with the command : xvidcap

And :
The launcher "/usr/local/share/applications/xvidcap.desktop"
can be copied to your Desktop.


( The Suse package from pacman, referred to in post #2,
creates a menu entry "xvidcap AudioVideo Recorder".)


.

nuttynibbles 01-04-2013 11:48 PM

hi knudfl, my installed dir is /usr/local/share/omf/xvidcap. there isnt a application dir in share. anyway the xvidcap dir is empty. strange!!! im not sure if it is installed correctly

nuttynibbles 01-05-2013 12:03 AM

i realise make install failed. i get install recursive error 1

John VV 01-05-2013 01:53 PM

can you post the error .
I am guessing it is a mismatch in the

glib2-2.22.5-0.2.23 AND glib2-devel-2.22.5-0.2.23
gtk2-2.18.9-0.21.4 AND gtk2-devel-2.18.9-0.21.4
libglade2-2.6.4-1.2.267 AND libglade2-devel-2.6.4-1.2.267

the libs and the source headers must match

please rerun this
Code:

su -
 rpm -qa glib2*
------------
 rpm -qa gtk2*
-------
 rpm -qa libglade2*

the " * " is a wild card
on opensuse 12.1 i get for "rpm -qa gtk2* "
Code:

rpm -qa gtk2*
gtk2-tools-2.24.7-2.5.1.x86_64
gtk2-engines-2.20.2-7.1.2.x86_64
gtk2-immodule-vietnamese-2.24.7-2.5.1.x86_64
gtk2-devel-2.24.7-2.5.1.x86_64
gtk2-immodule-amharic-2.24.7-2.5.1.x86_64
gtk2-metatheme-adwaita-3.2.1-2.1.2.noarch
gtk2-tools-32bit-2.24.7-2.5.1.x86_64
gtk2-branding-openSUSE-12.1-4.1.1.noarch
gtk2-data-2.24.7-2.5.1.noarch
gtk2-immodule-thai-2.24.7-2.5.1.x86_64
gtk2-immodule-inuktitut-2.24.7-2.5.1.x86_64
gtk2-engines-32bit-2.20.2-7.1.2.x86_64

some of those are dependencies for other programs
but
gtk2-tools-2.24.7-2.5.1.x86_64
gtk2-devel-2.24.7-2.5.1.x86_64
gtk2-data-2.24.7-2.5.1.noarch
------
All match

nuttynibbles 01-05-2013 09:22 PM

hi,

heres the reply to your q:

#rpm -qa glib2*
glib2-2.22.5-0.2.23
glib2-branding-SLES-2.16-47.3
glib2-devel-2.22.5-0.2.23
glib2-lang-2.22.5-0.2.23


# rpm -qa gtk2*
gtk2-devel-2.18.9-0.21.4
gtk2-engines-32bit-2.16.1-4.26
gtk2-2.18.9-0.21.4
gtk2-engines-2.16.1-4.26
gtk2-theme-SLED-11.1-1.29.82
gtk2-lang-2.18.9-0.21.4
gtk2-branding-SLED-11.1-1.26
gtk2-32bit-2.18.9-0.21.4
gtk2-themes-0.1-737.22

# rpm -qa libglade2*
libglade2-devel-2.6.4-1.2.267
libglade2-2.6.4-1.2.267

John VV 01-05-2013 09:54 PM

can you post the error you are getting
http://sourceforge.net/projects/xvidcap/?source=dlp
is from 2009 and uses ffmpeg ( the OLD single threaded version i am guessing )
and not the current multi threaded one

i would expect some ffmpeg error

on OpenSUSE 12.1-64 bit, using an older gcc ( gcc4.1 ) i get this make error
Code:


gcc -Wall -g -DDBUS_SERVICE_DIR=\""/usr/local/share/dbus-1/service"\" -g -O2 -pthread -I /home/johnvv/Download/test/xvidcap-1.1.7 -I/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavcodec -I/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavformat -I/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavutil -I/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libswscale -I/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavdevice -export-dynamic -L/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavcodec -L/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavformat -L/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavutil -L/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libswscale -L/home/johnvv/Download/test/xvidcap-1.1.7/ffmpeg/libavdevice -o xvidcap app_data.o capture.o codecs.o colors.o frame.o gnome_frame.o gnome_ui.o gnome_warning.o gnome_options.o led_meter.o main.o options.o xtoffmpeg.o xtoxwd.o job.o xvc_error_item.o eggtrayicon.o dbus-server-object.o -pthread -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  -pthread -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0    -Wl,-Bstatic -lavdevice -Wl,-Bdynamic -Wl,-Bstatic -lavformat -Wl,-Bdynamic -Wl,-Bstatic -lavcodec -Wl,-Bdynamic -Wl,-Bstatic -lswscale -Wl,-Bdynamic -Wl,-Bstatic -lavutil -Wl,-Bdynamic  -lm -lXdamage -lXfixes -lXmu
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: frame.o: undefined reference to symbol 'XGetWindowAttributes'
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: note: 'XGetWindowAttributes' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [xvidcap] Error 1
make[3]: Leaving directory `/home/johnvv/Download/test/xvidcap-1.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/johnvv/Download/test/xvidcap-1.1.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/johnvv/Download/test/xvidcap-1.1.7'
make: *** [all] Error 2

and it is a linker error


but ,xvidcap is in the "packman" repo ( suse 11.2 )
http://packman.inode.at/suse/11.2/Multimedia/x86_64/
--installing the repo file--
http://wiki.links2linux.de/packman:faq_en
and the repo file is here
http://packman.inode.at/suse/11.2/
and the muitimedia repo
http://packman.inode.at/suse/11.2/Mu...ultimedia.repo

knudfl 01-06-2013 02:09 AM

Ref. # 14

Confirm : The "pacman xvidcap" works out of the box, SLES 11 SP2.
> > >
xvidcap-1.1.7-5.2.x86_64.rpm :
http://packman.inode.at/suse/11.2/Mu...5.2.x86_64.rpm


@nuttynibbles : Please do not try to build xvidcap yourself.
None of the available { 1.1.7 sources, src packages / patches }
seem to work with SLE 11.
( I tried with a couple of SRC.RPMS , and the Debian "src" : No luck.)
.

nuttynibbles 01-06-2013 07:42 AM

hi knudfl, i downloaded xvidcap rpm and tried to install. it gives an error:

rpm -i xvidcap-1.1.7-5.2.x86_64.rpm
warning: xvidcap-1.1.7-5.2.x86_64.rpm: Header V4 RSA/SHA1 signature: NOKEY, key ID 1abd1afb
error: Failed dependencies:
libmp3lame.so.0()(64bit) is needed by xvidcap-1.1.7-5.2.x86_64


so i installed libmp3lame from here. more of it can be found here.

so i installed and im getting segemtation fault. see below for more error:
# rpm -i libmp3lame0-3.99.5-1002.1.x86_64.rpm
warning: libmp3lame0-3.99.5-1002.1.x86_64.rpm: Header V4 RSA/SHA1 signature: NOKEY, key ID 1abd1afb
# rpm -i xvidcap-1.1.7-5.2.x86_64.rpm
warning: xvidcap-1.1.7-5.2.x86_64.rpm: Header V4 RSA/SHA1 signature: NOKEY, key ID 1abd1afb
# xvidcap
Segmentation fault


All times are GMT -5. The time now is 11:18 PM.