SVN compile issues on Ubuntu 8.10

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
brashquido
Posts: 5
Joined: Fri Apr 24, 2009 4:11 am

SVN compile issues on Ubuntu 8.10

Post by brashquido »

Trying to compile SVN version 2352 and am finding a few issues. Apologies if these seem a bit daft, I'm still pretty new to Linux. Firstly, following the compile guide it says to CD into the Handbrake directory after checking the code out from SVN. This is all good, however it then says that all that is required is to run make to start building, but there doesn't appear to be any make file. I ended up running the configure script, and then as directed in the output CD'd to the build directory and ran make. This seemed to work ok (no errors, only warnings), but as it differs to what is documented in the compile guide I thought I better check.

The second, and bigger issue is when I try and compile GTK I get the following errors;
../../libhb/hb.h:8:21: error: project.h: No such file or directory
callbacks.c: In function âabout_activate_cbâ:
callbacks.c:2409: error: âHB_PROJECT_VERSIONâ undeclared (first use in this function)
callbacks.c:2409: error: (Each undeclared identifier is reported only once
callbacks.c:2409: error: for each function it appears in.)
callbacks.c:2409: error: âHB_PROJECT_BUILD_ARCHâ undeclared (first use in this function)
callbacks.c:2414: error: âHB_PROJECT_URL_WEBSITEâ undeclared (first use in this function)
I've checked the libhb directory, and no project.h file exists, although there is a project.h.m4 and a project.h file does exist elsewhere in the directory structure. Not sure about the other errors, but I assume they are related to the missing project.h file? Any ideas on how to fix this?

P.S - I haven't included an activity log as I am yet to compile Handbrake to a working state.
Deleted User 11865

Re: SVN compile issues on Ubuntu 8.10

Post by Deleted User 11865 »

Checkout HandBrake. You will find current build instructions in the doc directory of your checkout.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: SVN compile issues on Ubuntu 8.10

Post by JohnAStebbins »

The compile guide currently only applies to the 0.9.3 release sources. We overhauled the build system recently. New instructions are in the doc folder of the source tree as Rodeo pointed out.
brashquido
Posts: 5
Joined: Fri Apr 24, 2009 4:11 am

Re: SVN compile issues on Ubuntu 8.10

Post by brashquido »

Thank you all, finally up and going with an encode going!

Seems all I was missing was;

./configure --launch

instead of just

./configure

The docs didn't seem to include any details for building GTK, at least not that I could find. Thanks to hunterk for helping me out here, and for writing a guide that is easy to follow for newbies like me to follow (don't think I breaking any of the forum rules by posting this link);

http://filthypants.blogspot.com/2009/03 ... brake.html

In short I had to run make from build/gtk instead of the gtk directory off the root. Anyway, thanks again.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: SVN compile issues on Ubuntu 8.10

Post by JohnAStebbins »

With the new build system you don't have to build gtk separately. It gets built for you. You should have read the build directions we pointed you to in the doc folder more carefully.
The special option `--launch' selects launch mode and performs the
following steps:
* assert scratch directory `build/' does not exist
* create scratch directory `build/'
* change to directory `build/'
* launch `make'
After make is done, *everything* has been built. All you have to do is run "make install" from the build directory if you want to install it. Alternatively, you could run it in place "./build/gtk/src/ghb".
Post Reply