We have customized intel core-i7-64 machine and we developed Yocto Image and SDK for the hardware.
After sourcing the environment script and running "make modules_prepare", I get the following warning:
Makefile:956: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
The same error happens when I compile out of tree modules. How can i remove this error. What all packages should we need to add to avoid this.
Install libelf-dev and elfutils package. If you are using ubuntu or any debian variant then use the following command to install them.
sudo apt install libelf-dev
I have tried the following command:
yum install libgcc.i686 --setopt=protected_multilib=false
But I got some error message from the output:
Transaction Check Error:
package libgcc-4.8.2-8.el6.x86_64 (which is newer than libgcc-4.4.7-18.el6_9.2.i686) is already installed
So how to fix this issue? I think it's acceptable to keep both two arch version compilers in the system.
You may need to instal i686 components of GCC:
yum install libgcc.i686 glibc-devel.i686
For C++ you will also need
yum install libstdc++-devel.i686
The error message is telling you that the x86 and x86_64 version of the libraries must be in sync, so you'll need to install/update both:
yum install libgcc libgcc.i686
I am having some issues compiling a QT program from an i386 Ubuntu Linux PC to a Pandaboard.
We were successful in creating a build which could create a console application from my PC to a Pandaboard, but when I try to use a program with a GUI, I receive a missing symbol error.
We are trying to build a program which runs directly on the Ubuntu system on the ARM device.
We do not want to run the program as embedded, but as a stand-alone QT application.
I am having an issue with the X11 Display Drivers I believe.
Below is the error I am receiving when running my ./configure:
XLib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/vantage/QT_ARM_GUI2/qt-everywhere-opensource-src-4.8.4/mkspecs/linux-arm-gnueabi-g++.
Below are the items I have installed on the current build:
libfontconfig1-dev
libfreetype6-dev
libx11-dev
libxcursor-dev
libxext-dev
libxfixes-dev
libxft-dev
libxi-dev
libxrandr-dev
libxrender-dev
sudo apt-get install build-essential automake autoconf libtool
sudo apt-get install g++-arm-linux-gnueabi
sudo apt-get build-dep qt4-qmake
Below is my current PATH variable:
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/vantage/QT/arm-2012.09/bin:/home/vantage/QT/xc/include/X11:/home/vantage/QT/xc/lib/X11:/usr/lib/xorg:/usr/include/xorg
I am using the following build of QT:
qt-everywhere-opensource-src-4.8.4
I am using the below toolchain:
arm-2012.09-64-arm-none-linux-gnueabi-i686-pc-linux-gnu from codesourcery
Below is my Config statement:
./configure -arch arm -nomake demos - nomake examples - nomake docs -no-qt3support -release -platform linux-g++ -xplatform qws/linux-arm-gnueabi-g++ -declarative -xmlpatterns -exceptions -make tools -make libs -little-endian
I have edited my linux.conf file and changed the QMAKE_LIBDIR_X11 to point to /usr/lib/xorg and my QMAKE_INCDIR_X11 to /usr/include/xorg.
I have also edited my linux-arm-gnueabi-g++ -> qmake.conf file to match the above include and lib directories.
I have also tried to point these directories to the library and include files I received from "http://www.x.org/archive/X11R6.8.1/src-single/X11R6.8.1-src.tar.bz2" which I exported to home/vantage/QT/xc/.
I have been following the below article, attempting to work through the errors but I am still receiving the issue with Xlib.
"http://qt-project.org/forums/viewthread/17193"
Any direction or assistance would be greatly appreciated.
Thank you in advance
I think you should try to provide all these installed libs i.e. libX11 etc. in qmake.config file in Qt source.
once you include cross compiled libs and headers then it should work.
I am trying to compile the code for Abiword 2.8.6. I run the configure command as follows:
./configure --enable-static -disable-shared
This command ends with the following error
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
configure: error: jpeg.h not found
I have no idea where to find jpeg.h. I am doing this on Ubuntu on a x86_64 hardware. I tried installing libjpeg using the following command:
sudo apt-get install libjpeg-progs
That did not help. libjpeg-progs package did install, but it did not solve my problem.
Is libjpeg-dev (or -devel depending on your system) installed? You need the development headers - including the libjpeg ones - to compile from source.
On a Debian-based system you'd do the following (as root):
apt-get install libjpeg-dev
RPM based systems will have a similar command.
I am trying to compile Android source code under Ubuntu 10.04. I get an error saying,
/usr/bin/ld: cannot find -lz
Can you please tell me how can I fix it? What does cannot find -lz mean? Here's the full error message:
external/qemu/Makefile.android:1101: warning: overriding commands for target `external/qemu/android/avd/hw-config-defs.h'
external/qemu/Makefile.android:933: warning: ignoring old commands for target `external/qemu/android/avd/hw-config-defs.h'
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
And my GCC version output:
scheung#scheung-virtual-box:/media/EXTDIV/mydroid$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I already have the zlib1g-dev library installed:
$ sudo apt-get install zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g-dev is already the newest version.
(I get that from this link.)
I had the exact same error, and like you, installing zlib1g-dev did not fix it. Installing lib32z1-dev got me past it. I have a 64 bit system and it seems like it wanted the 32 bit library.
For x64 install zlib1g-dev.
sudo apt-get install zlib1g-dev
I don't need all the x86 libs ;)
sudo apt-get install libz-dev in ubuntu.
I just encountered this problem and contrary to the accepted solution of "your make files are broken" and "host includes should never be included in a cross compile"
The android build includes many host executables used by the SDK to build an android app.
In my case the make stopped while building zipalign, which is used to optimize an apk before installing on an android device.
Installing lib32z1-dev solved my problem, under Ubuntu you can install it with the following command:
sudo apt-get install lib32z1-dev
I had the exact same error, Installing zlib-devel solved my problem,
Type the command and install zlib package.
On linux:
sudo apt-get install zlib*
On Centos:
sudo yum install zlib*
Another possible cause: You've passed --static to the linker, but you only have a dynamic version of libz (libz.so), but not a version that can be statically linked (libz.a).
Try one of those three solution. It must work :) :
sudo apt-get install zlib1g-dev
sudo apt-get install libz-dev
sudo apt-get install lib32z1-dev
In fact what is missing is not the lz command, but the development files for the zlib library.So you should install zlib1g-devlib for ex to get it.
For rhel7 like systems the package is zlib-devel
It means you asked it to include the library 'libz.a' or 'libz.so' containing a compression package, and although the compiler found some files, none of them was suitable for the build you are using.
You either need to change your build parameters or you need to get the correct library installed or you need to specify where the correct library is on the link command line with a -L/where/it/is/lib type option.
This will show you clues about why the linker doesn't want the installed library:
LD_DEBUG=all make ...
I had the same problem in a different context: my system /lib/libz.so.1 had unsatisfied dependencies on libc because I was trying to relink on a different version of the OS.
for opensuse 12.3 (Dartmouth) (i586)
sudo zypper install zlib-devel zlib-devel-static
Others have mentioned that lib32z-dev solves the problem, but in general the required packages can be found here:
http://source.android.com/source/initializing.html
See "Installing required packages"