Author Topic: Building From Source  (Read 8870 times)

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Building From Source
« on: November 20, 2012, 10:30:46 pm »
Hello,

Trying to setup build environment. I am following the wiki. My setup is on a VM. I am looking at all the scripts and such to see what is going on but I'm running into problems. I'm sure there is something I'm missing.

When I run
Code: [Select]
/install-build-pkgs.shI end up with an error
Code: [Select]
The following packages have unmet dependencies:
libxine-dev: Depends: libxine2 (=1.2.0~hg20111226.0300-0yavdr0~lucid) but it is not going to be installed

I'm learning this as I go so bear with me.
Thanks

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #1 on: November 21, 2012, 03:39:04 am »
Also this:
Code: [Select]
********************************************************************************
*** Running: /usr/local/lmce-build/prepare-scripts/cd2-prepare.sh
********************************************************************************
mkdir: created directory `/var/lmce-build/cd2-packages'
mkdir: created directory `/var/lmce-build/cd2-packages/cachecd1-cache'
/var/lmce-build/cd2-packages/cachecd1-cache /usr/local/lmce-build
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
No candidate version found for belocs-locales-bin
No candidate version found for libartsc0
No candidate version found for libfaad0
No candidate version found for libfaad2-0
No candidate version found for libft-perl
blah...

Something is very wrong.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Building From Source
« Reply #2 on: November 21, 2012, 06:36:35 am »
For the xine problem add deb http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/ lucid main to your sources.list. Ignore other packages that you can't find for now. And see how far you get without those.

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #3 on: November 21, 2012, 02:37:00 pm »
Thanks for the help

I'm finding after apt-get update
Code: [Select]
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 272A2CE18103B360

and after apt-get dist-upgrade
Code: [Select]
The following packages have been kept back:
  libxine1 libxine1-bin libxine1-console libxine1-misc-plugins libxine1-x

Here is my /etc/apt/sources.list
Code: [Select]
root@lmcedev4:/usr/local/lmce-build# cat /etc/apt/sources.list
#deb cdrom:[Kubuntu 10.04.4 LTS _Lucid Lynx_ - Release i386 (20120214.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
 deb http://archive.canonical.com/ubuntu lucid partner
 deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
deb     http://www.e-tobi.net/vdr-experimental/ sid base
deb     http://deb.linuxmce.org/ubuntu/ lucid beta2
deb     http://deb.linuxmce.org/ubuntu/ 20dev_ubuntu main
deb http://debian.slimdevices.com/ stable main
deb http://www.avenard.org/files/ubuntu-repos/ intrepid release testing
deb http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/ lucid main



l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Building From Source
« Reply #4 on: November 21, 2012, 04:14:15 pm »
sudo gpg --keyserver pgp.mit.edu --recv-keys 8103B360
sudo gpg --export --armor 8103B360 | apt-key add -
sudo apt-get update

go again
I never quit... I just ping out.

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #5 on: November 21, 2012, 05:51:55 pm »
Ok that cleared that up.

Moving forward now...still lots of errors but we will see.

Thanks!

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Building From Source
« Reply #6 on: November 21, 2012, 07:53:39 pm »
May I ask why you want to build LinuxMCE from sources?

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #7 on: November 21, 2012, 09:52:55 pm »
Sure...

Working on improving Squeezeslave. It appears, to my limited knowledge, that it is built into the package and loaded when squeeslave device is  added. It looks like the standard app as loaded by apt-get install squeezeslave so I may be wrong. Later versions of squeezeslave have added a select by name for sound output. This I can modify with udev as it is an attrib of the card to be something like attrib + device id. So after reboot you don't need to worry about squeezeslave moving your output device. I am writing a script that will check for squeezeslave version and either build a new one from source or pull in the one from lmce. I'm not sure if the latter is possible yet and I don't want to force an upgrade and brake things.

Am I on the right page here or way off?

Thanks

Update:
I misspoke. The only way to get squeezeslave is to build from source. I discovered that this was the case earlier but just forgot. I suppose I can just add to script to just build from source at add device if no squeezeslave is found. Just takes some time.
« Last Edit: November 22, 2012, 03:03:32 am by SBCC »

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #8 on: November 22, 2012, 02:34:01 am »
Ok kept moving forward with build.
Ran ./build.sh
Crashed in "build-replacements.sh" with
Code: [Select]
dpkg-buildpackage -rfakeroot -us -uc -b -tc
/usr/local/lmce-build/build-scripts/build-replacements.sh: line 44: dpkg-buildpackage: command not found

/usr/local/lmce-build/common/logging.sh: line 38: mail: command not found
I'm going to comment out that and move forward.

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #9 on: November 22, 2012, 04:45:46 am »
Ok commented out "build.sh" and came up with error in "build-makerelease.sh" as
Code: [Select]
ERROR: Failed to precompile pluto_main to use for MakeRelease
And a whole bunch of
Code: [Select]
.....
Computing dependencies for Table_Command.cpp/bin/sh: g++: not found
 done
Computing dependencies for Table_CommMethod.cpp/bin/sh: g++: not found
 done
Computing dependencies for Table_City.cpp/bin/sh: g++: not found
 done
.....

So I don't think its working. I may try and go further but it looks like something is not right.
I'm doing this on a VM not chrooted but on a fresh install of kubuntu 10.04-4 desktop i386.
I'm going to pull down another copy of kubuntu and see if that helps. Same version.




Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Building From Source
« Reply #10 on: November 22, 2012, 06:35:29 am »
sounds like you are also missing build-essential

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Building From Source
« Reply #11 on: November 22, 2012, 08:10:12 am »
The quickest way to get all the build dependencies, for me, has always been:

going into src:

apt-get install `cat Ubuntu_Helpers_NoHardcode/conf-files/lucid-i386/build-packages`

you will need to remove 1 or two packages from that file, but it will get you all the build dependencies needed.

-Thom

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #12 on: November 22, 2012, 04:36:01 pm »
Ok thanks for the help.

I noticed "install-build-pkgs.sh" ran into all kinds of trouble. I will try loading them each and see what happens.

Jim

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Building From Source
« Reply #13 on: November 23, 2012, 05:12:50 am »
SBCC building a full builder is rarely rarely necessary.

You can build whatever you need, and then submit it once working. Grabbing source, and building packages is all you really need. It is easier to develop, I find, just building the normal way.

For me, it seems there is a reason the docs are not readily avail for a 1004 builder. If you can figure out how it works... you might be able to do something which requires it.

That is a longer term project. Make it build, submit it... that is all you need to worry about now.
I never quit... I just ping out.

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Building From Source
« Reply #14 on: November 24, 2012, 03:25:27 am »
I think I got it but I moved on with your advice. I can revisit adding to the package the new squeezeslave source later. I just hate pushing something I have not yet built and tested 1st.

Thanks for that