LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2012, 04:40 PM   #1
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Rep: Reputation: Disabled
Handbrake (slackbuilds) not building even if all pre-requisites are met


Hi there,

Handbrake fails to build (using the latest slackbuilds from slackbuilds.org). I have already installed all required packages (such as a52dec, faac, faad2, lame..) but it fails with:

Code:
...
checking pkg-config is at least version 0.9.0... yes
checking for OldWebKitGtk... no
checking for GHB... yes
checking for pkg-config... /usr/bin/pkg-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
config.status: executing po/stamp-it commands
touch gtk/.stamp.configure
make -C ./gtk/
make[1]: Entering directory `/tmp/SBo/HandBrake-0.9.5/build/gtk'
make  all-recursive
make[2]: Entering directory `/tmp/SBo/HandBrake-0.9.5/build/gtk'
Making all in src
make[3]: Entering directory `/tmp/SBo/HandBrake-0.9.5/build/gtk/src'
gcc -DHAVE_CONFIG_H -I. -I/tmp/SBo/HandBrake-0.9.5/build/../gtk/src -I..  -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/SBo/HandBrake-0.9.5/build/../gtk/src"\" -DPACKAGE_DATA_DIR=\""/usr/share"\"   -Wall -g -g0 -O3 -I/tmp/SBo/HandBrake-0.9.5/build//libhb -D_ENABLE_GST -MT callbacks.o -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.o /tmp/SBo/HandBrake-0.9.5/build/../gtk/src/callbacks.c
/tmp/SBo/HandBrake-0.9.5/build/../gtk/src/callbacks.c:26:25: fatal error: gudev/gudev.h: No such file or directory
compilation terminated.
make[3]: *** [callbacks.o] Error 1
make[3]: Leaving directory `/tmp/SBo/HandBrake-0.9.5/build/gtk/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/HandBrake-0.9.5/build/gtk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/SBo/HandBrake-0.9.5/build/gtk'
make: *** [gtk.build] Error 2
So can anybody help? I also wonder why this slackbuilds needs its own packages when there are newer packages already installed on the system (example: lame which I already had 3.99 installed but HB comes with 3.98..)?

Thanks for clarifying in either cases!

Last edited by lpallard; 04-12-2012 at 04:42 PM.
 
Old 04-12-2012, 04:50 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
So, just get my SlackBuild and/or get the package directly, at http://taper.alienbase.nl/mirrors/pe...lds/handbrake/ . It works.

I also noticed that there is a new release of Handbrake, 0.9.6 which I should try building.

Eric
 
Old 04-12-2012, 05:18 PM   #3
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Wierd, I have 0.9.5 installed on 13.37 64 bit and had no problems. By the looks of the the error you have, you are missing a package. A quick look finds gudev.h in /usr/include/gudev-1.0/gudev/ Maybe you don't have all the prereq's you need.
 
Old 04-12-2012, 05:31 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
According to slackpkg's file-search option is gudev.h part of the udev-package which should be installed on a normal Slackware system.
 
Old 04-12-2012, 05:36 PM   #5
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
It says you're missing gudev.h. Assuming you've attempted to build it correctly, it seems you're missing the "udev" package. If you do have it, check to make sure you're starting it on boot:

# grep -i udev /etc/rc.d/rc.M:
Code:
# udevd on systems that use udev:
    if [ -x /etc/rc.d/rc.udev ]; then
      /bin/sh /etc/rc.d/rc.udev start
# If we're using udev, make /dev/cdrom and any other optical drive symlinks
# if some udev rule hasn't made them already:
    if [ -x /lib/udev/rc.optical-symlinks -a -x /etc/rc.d/rc.udev ]; then
      /bin/sh /lib/udev/rc.optical-symlinks
# slackpkg file-search gudev.h
Code:
Looking for gudev.h in package list. Please wait... DONE

The list below shows the packages that contains "gudev\.h" file.

[ installed ] - udev-165-x86_64-2

You can search specific packages using "slackpkg search package".
Edit 1: Also, Alien Bob usually builds large packages like this for the Slackware community so we don't have to go searching for the dependencies. Especially for some packages the libraries are statically built which is also nice.

Edit 2: TobiSGD beat me.

Last edited by TommyC7; 04-12-2012 at 05:39 PM.
 
Old 04-12-2012, 07:17 PM   #6
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Good one for you guys.. I ended up being able to install it.. But it doesnt work!!

First of all, UDEV was of course installed.

Quote:
bash-4.1# slackpkg file-search gudev.h

Looking for gudev.h in package list. Please wait... DONE

The list below shows the packages that contains "gudev\.h" file.

[ installed ] - udev-165-x86_64-2

You can search specific packages using "slackpkg search package".
Then I realized this line in the output:
Quote:
checking for OldWebKitGtk... no
That made me wonder if webkitgtk was installed.. No it wasnt. I went ahead and compiled & installed it. Then I tried to start HB and got

Quote:
bash-4.1$ ghb
ghb: error while loading shared libraries: libgeoclue.so.0: cannot open shared object file: No such file or directory
So I installed "geoclue-0.12-x86_64-2sl.txz" from pkgs.org (couldnt find such slackbuilds on SB.org) and I got further with this error:

Quote:
bash-4.1$ ghb
ghb: error while loading shared libraries: libicui18n.so.44: cannot open shared object file: No such file or directory
Now I am clueless... I "swear to God", I successfully compiled and install ALL dependencies as listed on SB.org, and yet there are missing files... I *think* this SB needs a SEVERE cleanup...
 
Old 04-12-2012, 09:36 PM   #7
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
The only dependency listed for handbrake is webkit and it is a dependency for the GUI only.
Also mixing precompiled packages from god knows where is a sure way to cause problems.
 
Old 04-12-2012, 09:46 PM   #8
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Quote:
The only dependency listed for handbrake is webkit and it is a dependency for the GUI only
Never said I didnt want to use the GUI

Quote:
Also mixing precompiled packages from god knows where is a sure way to cause problems.
I agree but Ill remove it and go back one step.. not much further ahead..

In what package I can find "libicui18n"?? Maybe I can try to install this missing package..

Anything else I can try?
 
Old 04-12-2012, 09:53 PM   #9
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
This thread got me further ahead (I wasnt the only one!) : http://www.linuxquestions.org/questi...dbrake-828420/

I followed the instructions as they appeared o make sense, so I created a symlink for each missing .so files... 3 total. Then I tried to start HB and got:

Quote:
ghb: symbol lookup error: /usr/lib64/libwebkitgtk-1.0.so.0: undefined symbol: UCNV_TO_U_CALLBACK_SUBSTITUTE_44
The thread above ends up with you XGizzmo saying "icu4c's latest update breaks binary compatibility. Anything linked to an older version will need a recompile."

Have you found a solution to this??

Thanks a lot!
 
Old 04-12-2012, 09:58 PM   #10
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Quote:
Originally Posted by lpallard View Post
That made me wonder if webkitgtk was installed.. No it wasnt. I went ahead and compiled & installed it. Then I tried to start HB and got

Code:
bash-4.1$ ghb
ghb: error while loading shared libraries: libgeoclue.so.0: cannot open shared object file: No such file or directory
So I installed "geoclue-0.12-x86_64-2sl.txz" from pkgs.org (couldnt find such slackbuilds on SB.org) and I got further with this error:

Code:
bash-4.1$ ghb
ghb: error while loading shared libraries: libicui18n.so.44: cannot open shared object file: No such file or directory
Now I am clueless... I "swear to God", I successfully compiled and install ALL dependencies as listed on SB.org, and yet there are missing files... I *think* this SB needs a SEVERE cleanup...
I think you might have made a few mistakes:

1. As previously stated, webkit is ONLY needed for a gui.

2. You're using the wrong command to start it. This README file is from SlackBuilds.org as written by the maintainer:
http://slackbuilds.org/slackbuilds/1...ndBrake/README

It explains why your command is probably outputting those library errors. If the CLI version still doesn't work, then yes there may be something wrong with the SlackBuild and you can e-mail the maintainer.

3. You said you "swear to God" that you compiled and installed it. First off, I assume people who say "swear to God" that they're lying but that's besides the point. I believe you did compile and install it, but I DON'T believe you compiled handbrake with webkit. Again, refer to the README above.

4. Why did you compile and install "webkitgtk" when it asks for "webkit"?

5. Why are you mixing packages from a source that may or may not be reliable?

Last edited by TommyC7; 04-12-2012 at 10:03 PM.
 
Old 04-12-2012, 10:03 PM   #11
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
Quote:
Handbrake fails to build (using the latest slackbuilds from slackbuilds.org). I have already installed all required packages (such as a52dec, faac, faad2, lame..) but it fails with:
None of those are listed as dependencies.

icu4c, libproxy, ORBit2, GConf, libtasn1, libgnome-keyring, gnome-keyring, libsoup, webkit, HandBrake.
 
Old 04-12-2012, 10:06 PM   #12
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Quote:
Originally Posted by XGizzmo View Post
None of those are listed as dependencies.

icu4c, libproxy, ORBit2, GConf, libtasn1, libgnome-keyring, gnome-keyring, libsoup, webkit, HandBrake.
I think he's talking about the Source Download links.
 
Old 04-12-2012, 10:51 PM   #13
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Hi guys,

To "TommyC7":

Quote:
webgtk is ONLY needed for a gui.
Exactly, and I want the GUI.

I am using "ghb" to start HB because it is the GUI startup command, as far as I know, but I may be wrong. On my HTPC, I've compiled and ran HB the very same way, but using older sources (that was about a year ago). It worked then. Required a lot of work, but it worked and Im still using it.

The README file from the maintainer is very clear and says:

Quote:
[...]

webkit is a dependency for the GUI only. Disable it with the following:
"GUI=no ./HandBrake.SlackBuild"

Lacking a GUI, the binary is HandBrakeCLI -- not HandBrake as you might
otherwise expect. To launch this application after installing, type in
"HandBrakeCLI" [...]"
To me, its clear that if I want to use ONLY the CLI version, I enter GUI=no before the ./SlackBuild command. Then, I understand to start HB in CLI mode I need to type "HandBrakeCLI". Simple enough.

The README file doesnt tell me where I went wrong. It doesnt tell me either that I went wrong trying to start the GUI version with ghb, nor that I shouldnt install webkit if I wanted to use the GUI.

Quote:
First off, I assume people who say "swear to God" that they're lying but that's besides the point
Thats your personal opinion & yes thats beside the point. Also note English is not my primary language and in French, "Swear to God" means in "all honesty and seriously". Anyways, in over 4 years here, I have never been told I was lying..

In regards to webkitgtk VS webkit, I simply was confused between them. The output of the first build attempt had a reference to webkitGTK and I thought it was the same package as int he README file.. I was wrong. Recompiling webkit from SB.org and installing it solved my problems.

To "XGizzmo":

Yes, I am talking about the downloads in the source files...

http://slackbuilds.org/repository/13...dia/HandBrake/
 
Old 04-13-2012, 08:16 AM   #14
abrouwers
Member
 
Registered: May 2005
Location: Michigan
Distribution: Slackware -current
Posts: 98

Rep: Reputation: 37
Actually, in recent handbrake versions, webkit is completely optional, gui or not. It was mostly used on the OSX port for doing in-place upgrades, or something.

To remove the dep:

--disable-gtk-update-checks
 
Old 04-13-2012, 08:40 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You can check my SlackBuild and packages for HandBrake 0.9.6 here: http://connie.slackware.com/~alien/s...lds/handbrake/ - there is no external dependency and as abrouwers mentioned, you can avoid webkit-gtk easily (which I also do). My package includes both the GUI and the cli applications.

Eric
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre Requisites on Linux for Xterm sessions/terminal Darrell22 Linux - Server 1 01-09-2012 10:58 PM
[SOLVED] issue building chromium from slackbuilds trademark91 Slackware 7 07-24-2011 08:43 AM
Red Hat training and certification - course pre-requisites? paulfoel Linux - Newbie 29 03-10-2011 12:16 PM
[SOLVED] Problem building from slackbuilds ~sHyLoCk~ Slackware 14 05-18-2010 01:48 PM
Pre-requisites for hardware device programmer just.srad Linux - General 2 09-29-2008 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration