Help: LTIB build failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help: LTIB build failed

Jump to solution
13,941 Views
danix
Contributor III

Hi folks,

 

I'm trying to install and build LTIB as in the installation guide in the BSP, but I got the following error while building it;

.

.

.

Copying packages to /home/danny/ltib/pkgs

Installation complete, your ltib installation has been placed in
/home/danny/ltib, to complete the installation:

cd /home/danny/ltib
./ltib

danny@danny-beast:~$ cd /home/danny/ltib
danny@danny-beast:~/ltib$ ./ltib
sh: g++: not found
sh: tclsh: not found

ltib cannot be run because one or more of the host packages needed to run it
are either missing or out of date or not in ltib's standard path.  Please
install/upgrade these packages on your host.  If you have your own utilities
in non-standard paths, please add an entry into the .ltibrc file for example:

%path_std
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes

Package                Minimum ver   Installed info
-------                -----------   ---------------
libstdc++              0             not installed
gcc-c++                2.96          not installed
zlib-devel             0             not installed
rpm                    0             not installed
rpm-build              0             not installed
ncurses-devel          0             not installed
m4                     0             not installed
bison                  0             not installed
patch                  0             not installed
tcl                    0             not installed

Died at ./ltib line 1397.
traceback:
 main::host_checks:1397
  main:542


Started: Thu May  5 18:32:58 2011
Ended:   Thu May  5 18:32:58 2011
Elapsed: 0 seconds


Build Failed

Exiting on error or interrupt
danny@danny-beast:~/ltib$

 

what should I do, then...

 

PS: I'm new to LTIB and even to Linux, so forgive me if that is a stupid question

Tags (1)
1 Solution
4,150 Views
MarianoGoluboff
Contributor III

Hi Daniel,

I haven't seen these problems before, and I've used ltib on Ubuntu 9.04, so it can be done. What I would suggest at this point is to completely remove ltib (and the /opt/freescale directory), then re-install after making sure that your Ubuntu box is setup per the instructions in my second post on this thread.

 

If you don't want to run that script and instead manually figure out what to do, you should follow the steps here:

http://www.imxdev.org/wiki/index.php?title=ALL_Boards_ltib_config_ubuntu

 

After you have that setup, then install and re-run LTIB.

 

If you're still getting this problem, then go to freescale.com, login to "My Freescale", and click on Enter a Service Request to get an apps engineer from Freescale to help you out.

 

Mariano

View solution in original post

0 Kudos
31 Replies
1,241 Views
danix
Contributor III

Now it builds successfully...

Thanks a ton, Mariano!

0 Kudos
1,241 Views
jorgepereira
Contributor I

Hi danix,

I got stuck in the same dbus problem has you did back then. Do you remember the steps that you did to solve the problem? If you could tell me I will be much appreciated!

Regards

0 Kudos
4,151 Views
MarianoGoluboff
Contributor III

Hi Daniel,

I haven't seen these problems before, and I've used ltib on Ubuntu 9.04, so it can be done. What I would suggest at this point is to completely remove ltib (and the /opt/freescale directory), then re-install after making sure that your Ubuntu box is setup per the instructions in my second post on this thread.

 

If you don't want to run that script and instead manually figure out what to do, you should follow the steps here:

http://www.imxdev.org/wiki/index.php?title=ALL_Boards_ltib_config_ubuntu

 

After you have that setup, then install and re-run LTIB.

 

If you're still getting this problem, then go to freescale.com, login to "My Freescale", and click on Enter a Service Request to get an apps engineer from Freescale to help you out.

 

Mariano

0 Kudos
1,241 Views
danix
Contributor III

Hey,

Can't get past the linker problem (ld can't find -lx11). It brings this up when it tries to build dbus

 

it been a week trying to figure out, what options do I have,...please share your experience

0 Kudos
1,241 Views
MarianoGoluboff
Contributor III

Not sure why you're having a library linker problem (ld can't find -lX11). One possible problem is that there ltib left some residual stuff when you ran it without all the necessary packages installed.

 

Pay very close attention to this post:

http://imxcommunity.org/group/ubuntutipsandtricks/forum/topics/building-ltib-in-ubuntu-1004

0 Kudos
1,241 Views
danix
Contributor III

hey,

so, i configured ltib with  "./ltib -m config" successfully. but when I run it "./ltib" after running for about 20 minuits it reported like this:

.

.

.

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [dbus-launch] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o .libs/dbus-send dbus-print-message.o dbus-send.o  ../dbus/.libs/libdbus-1.so
creating dbus-send
make[2]: Leaving directory `/home/danny/ltib/rpm/BUILD/dbus-1.2.3/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/danny/ltib/rpm/BUILD/dbus-1.2.3'
make: *** [all] Error 2
error: Bad exit status from /home/danny/ltib/tmp/rpm-tmp.7723 (%build)


RPM build errors:
    Bad exit status from /home/danny/ltib/tmp/rpm-tmp.7723 (%build)
Build time for dbus: 35 seconds

Failed building dbus


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Sat May  7 11:24:30 2011
Ended:   Sat May  7 11:29:19 2011
Elapsed: 289 seconds

These packages failed to build:
dbus

Build Failed

Exiting on error or interrupt

 

How can I fix that....

BTW: Freescale's documentation sucks big time!... I missed the days I played with TI's and Atmel's products

0 Kudos
1,241 Views
MarianoGoluboff
Contributor III
I don't think you need mutter for LTIB. That package is installed to setup a machine for Android development. So you could try running LTIB now and see if you're up and running.
0 Kudos
1,241 Views
danix
Contributor III

Hey Mariano,

 

I run the script from the link you suggested, but after installing tons of packages it stops at

.

.

.

Installing mutter...
E: Couldn't find package mutter

 

I couldn't find mutter for Ubuntu 9.04 in the repository. Used mutter for other versions anyway, but it in turn requires

gtk+-3.0 or above which I couldn't find anywhere...ahh

 

What is the solution for these?

 

thanks

0 Kudos
1,241 Views
danix
Contributor III

Thanks man,

Yes I'm using Ubuntu 9.04

0 Kudos
1,241 Views
MarianoGoluboff
Contributor III

By the way, if you're on Ubuntu, read this:

http://imxcommunity.org/group/ubuntutipsandtricks/forum/topics/another-ltib-installation

 

(and you should join the "Ubuntu Tips and Tricks" group if you haven't already)

0 Kudos
1,241 Views
MarianoGoluboff
Contributor III
You don't have the necessary packages installed on your Linux host. What distribution of Linux are you using as your host machine?
0 Kudos