Hi, when i building imx6 BSP L3.0.35_4.1.0_130816 in ubuntu 12.04-64bit,get a err: can't compile a simple hello world test program.
liusf@ubuntu:~/imx6/L3.0.35_4.1.0_130816_source/source/ltib$ ./ltib
sh: 2: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc: not found
Error /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc can't compile a simple hello world test program:
echo '#include <stdio.h>
int main() { printf("hello world"); }' | /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc -x c - -c -o /dev/null
traceback:
main::check_toolchain_setup:2625
main::pre_build_checks:1465
main:569
Started: Thu Jun 12 19:27:04 2014
Ended: Thu Jun 12 19:27:07 2014
Elapsed: 3 seconds
Build Failed
And i found the PATH is including the arm-none-linux-gnueabi-gcc (/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin), but i still get the err, who can help me ?
liusf@ubuntu:~/imx6/L3.0.35_4.1.0_130816_source/source/ltib$ $PATH
bash: /home/liusf/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin:/home/liusf/bin/fsl-linaro-toolchain/bin: No such file or directory
已解决! 转到解答。
Hi liusf,
I know you are using 64bit ubuntu, so you please install the following packages :
# Install packages needed by LTIB
sudo aptitude -y install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
sudo aptitude -y install libdbus-glib-1-dev liborbit2-dev intltool
sudo aptitude -y install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
sudo aptitude -y install uuid-dev liblzo2-dev
sudo aptitude -y install tcl dpkg
sudo aptitude -y install asciidoc texlive-latex-base dblatex xutils-dev
# Packages required for 64-bit Ubuntu
# Do "uname -a" and see if the word "x86_64" shows up.
if uname -a|grep -sq 'x86_64'; then
sudo aptitude -y install ia32-libs libc6-dev-i386 lib32z1
fi
# The following recommended for Linux development.
# They are not required by LTIB.
sudo aptitude -y install gparted emacs22-nox openssh-server
sudo aptitude -y install nfs-common nfs-kernel-server lintian
sudo aptitude -y install git-core git-doc git-email git-gui gitk
sudo aptitude -y install diffstat indent tofrodos fakeroot doxygen uboot-mkimage
sudo aptitude -y install sendmail mailutils meld atftpd sharutils
sudo aptitude -y install manpages-dev manpages-posix manpages-posix-dev linux-doc
sudo aptitude -y install vnc4server xvnc4viewer
Have a great day,
Best Regards
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,Dan
Thanks for your help, the problem has solved .
I have a another problem: when i get android source code , i get a err.
liusf@ubuntu:~/myandroid$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 ::-- 0:01:04 ::-- 0curl: (7) Failed to connect to 2404:6800:4005:807::100a: Network is unreachable
Has there another url to get repo? or how to solve this problem?
Best Regards
liusf
Hi liusf,
Which version android source code are you downloading? The problem you attached is the the network server problem, I have met this problem before. After I set proxy server by "export http_proxy=******and export https_proxy=" in my office, it worked. So you also need to set the proxy server first. Hope this can help you.
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Helpful Answer/ Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,Dan
The version is android-4.3_r2.1 that i downloading.
If it is network server problem, the cmd: "$ sudo apt-get install rpm " will fail ,but it succeed, and many other packegs all get succeed.
Best Regards
liusf
Hi liusf,
You can have a try use : curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~/bin/repo . Here I attached a file for you . This may help you.
Best Regards
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,Dan
I download the android source using : curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~/bin/repo .
It succeed ,but the following cmd is fail. What can I do?
liusf@ubuntu:~/myandroid$ ~/bin/repo init -u https://android.googlesource.com/platform/manifest-b android-4.3_r2.1
fatal: remote error: Git repository not found
fatal: cannot obtain manifest https://android.googlesource.com/platform/manifest-b
Best Regards
liusf
Hi,Dan
I have another question about ltib building on 64bit ubuntu. The err info is :
liusf@ubuntu:~/imx6/L3.0.35_4.1.0_130816_source/source/ltib$ ./ltib
Processing platform: Freescale iMX6x Based Boards
===================================================
using config/platform/imx/.config
Processing: fake-provides
===========================
Processing: u-boot-v2009.08
=============================
Processing: kernel-3.0.35
===========================
Processing: skell
===================
Processing: base_libs
=======================
Processing: busybox
=====================
Processing: libtermcap
========================
Processing: bash
==================
Processing: zlib
==================
Processing: iproute
=====================
Processing: hotplug
=====================
Processing: glib2
===================
Processing: alsa-lib
======================
Processing: libxml2
=====================
Processing: udev
==================
Processing: liboil
====================
Processing: gstreamer-core
============================
Processing: gst-plugins-base
==============================
Processing: gst-plugins-good
==============================
Build path taken because: directory build, no prebuilt rpm,
scbuild/scdeploy already unpacked package
Processing: gst-plugins-good
==============================
Build path taken because: directory build, build key set, no prebuilt rpm,
rpmbuild --dbpath /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/tmp' --define '_rpmdir /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/tmp/rpm-tmp.28211
+ umask 022
+ cd /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rpm/BUILD
+ cd gst-plugins-good-0.10.30
+ export CAIRO_CFLAGS=-I/home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/cairo
+ export CAIRO_LIBS=-L/home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/cairo
+ export LIBS=-lcairo
+ ./configure --prefix=/usr --host=arm-linux --build=x86_64-unknown-linux-gnu --without-check --disable-speex --disable-shout2test --disable-shout2 --disable-dv1394 --disable-libpng --disable-libdv --disable-libcaca --disable-ladspa --disable-jpeg --disable-flac --disable-esd --disable-esdtest --disable-cairo --disable-aalib --disable-aalibtest --disable-x --disable-xvideo --disable-hal NM=nm
configure: WARNING: unrecognized options: --without-check, --disable-ladspa
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking nano version... 0 (release)
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for arm-linux-gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/rpm/BUILD/gst-plugins-good-0.10.30':
configure: error: C compiler cannot create executables
See `config.log' for more details
error: Bad exit status from /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/tmp/rpm-tmp.28211 (%build)
RPM build errors:
Bad exit status from /home/liusf/imx6/L3.0.35_4.1.0_130816_source/source/ltib/tmp/rpm-tmp.28211 (%build)
Build time for gst-plugins-good: 5 seconds
Failed building gst-plugins-good
f_buildrpms() returned an error, exiting
traceback:
main:572
Started: Fri Jun 13 01:54:00 2014
Ended: Fri Jun 13 01:54:11 2014
Elapsed: 11 seconds
These packages failed to build:
gst-plugins-good
Build Failed
What I can do for the err?
Best Regards
liusf
Hi liusf,
Are you building Multimedia Codecs Source? If yes, please go to edit the ltib/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec
use # to comment out the followings cairo things like this :
#export CAIRO_CFLAGS=-I/home/ashish/Desktop/dev_imx6/ltib/rootfs/usr/include/cairo
#export CAIRO_LIBS=-L/home/ashish/Desktop/dev_imx6/ltib/rootfs/usr/lib/cairo
#export LIBS=-lcairo
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------