Cross Compiling Linux Kernels and Debugging via VMware
location: linuxexchange.com - date: June 16, 2009
I'm considering doing some Linux kernel and device driver development under a vmware VM for testing ( Ubuntu 9.04 as a guest under vmware server 2.0 ) while doing the compiles on the Ubuntu 8.04 host.
I don't want to take the performance hit of doing the compiles under the VM.
I know that the kernel obviously doesn't link to anything outside itself so there shouldn't be any problems in that regard, but
are there any special gotcha's I need to watch out for when doing this?
beyond still having a running computer when the kernel crashes are there any other benefits to this setup?
Are there any guides to using this kind of setup?
Edit
I've seen numerous references to remote debugging in VMware via Workstation 6.0 using GDB on the host. Does anyone know if this works with any of the free versions of VMWare such as Server 2.0.
Cross compiling
location: ubuntuforums.com - date: September 21, 2010
Hi,
I need to cross compile some Fortran code for vxWorks (PPC604).
The code is "stored" and compiled on an Intel (Ubuntu) PC, and the target is a PPC604 vxWorks on a board (in a crate!).
My PC:
CPU: Intel Pentium IV 3.2 GHz
OS: Ubuntu 10.04 LTS lucid
GCC: 4.4.3
F77: 1.5
MAKE: 3.81
Thank in advance
Max
Cross Compiling Qt5 on Linux for Windows
location: linuxexchange.com - date: December 28, 2013
I recently used this guide to cross compile a program for Windows on Linux: Building Qt 5 on Linux, for Windows
However when I compile the program, the executable file that is created is broken and does not run the program. Instead there is an error and only the option to close it. It would be appreciated if anyone could please provide an answer to why it is doing that. Below I will list a couple facts. Please be specific in your answer (such as if the reason is that I may have used something in the GUI not available with windows, please provide examples of what is not usable between the operating systems) I am at approximately mid entry level when it comes to using Qt so forgive me in advance if I ask for further explanation on answers.
Compiling with Qt Creator 2.8.1 (Based on 5.1.1)
Using Crunchbang 11 (Debian 7.0 based)
Tested by using "cd mxe && make qtbase" and subsequently "cd mxe && make qt5"
The error produced by executing the program (wine): Pastebin: Wine
Trouble cross compiling OpenCV for ARM9 Montavista Linux
location: linuxexchange.com - date: July 20, 2011
I'm trying to cross-compile the OpenCV library for using it on an embedded system running Montavista Linux(the system has an ARM926 processor). I've managed to configure and generate the makefiles; the sources are built OK, including the 3rd party libraries. The trouble comes at link time. For some reason libtool picks some libraries from the host system (libjpeg, libtiff, libpng) and tries to link them against the ARM9 object files(which evidently is wrong). The error I get is
/usr/lib/libpng12.so: could not read symbols: File in wrong format.
I couldn't and I still can't figure out what exactly is wrong with my setup(I even tried to build the library directly on the ARM9 system but unfortunately it has a very small amount of RAM and gcc chokes). I also modified the LD_LIBRARY_PATH envvar to contain the target's system libraries and exported it before running configure and make.
Below is what I pass to configure:
LDFLAGS="-L/opt/Montavista/pro/devkit/arm/v5t_le/target/usr/lib" CFL
How to set include path when compiling mythtv with Qt4.8.6?
location: linuxquestions.com - date: May 2, 2014
I've just downloaded Qt4.8.6 and installed it to Debian Squeeze in the default location "/usr/local/Trolltech/Qt-4.8.6". I'm trying to compile mythtv 0.27. The problem is that I don't know how to tell it to use the new Qt4 in /usr/local/Trolltech/Qt-4.8.6. Is it a matter of setting some environment variable? Do I need to set something in the config for mythtv? Or is there some option I needed to set when compiling and installing Qt4?
Specifically the problem is that when compiling external/qjson, it's using /usr/include/Qt4 instead of /usr/local/Trolltech/Qt-4.8.6/include. There is a file CMakeLists.txt that has the following line, but I don't know what to do with it, if this is the problem.
Code:
Compiling kernel with Physical Address Extension (PAE) for High Memory Support (64GB)
location:
ubuntuforums.com - date:
November 19, 2009
Hi All,
I am using a Dell Studio 1555 laptop with 32-bit Kubuntu Karmic 9.10. Since, the kernel is not listing my all 4GB RAM but showing only 2.9GB, I am trying to recompile the kernel with PAE support enabled (High Memory Support - 64GB).
When the recompile finally finishes, cd to /usr/src and there will be two .debs for your kernel, install them as shown below:
[email protected]:/usr/src# dpkg -i linux-headers-2.6.28.9-mykernel_2.6.28.9-mykernel-10.00.Custom_i386.deb
[email protected]:/usr/src# dpkg -i linux-image-2.6.28.9-mykernel_2.6.28.9-mykernel-10.00.Custom_i386.debThe debug output of the last command is:
[email protected]:/usr/src# dpkg -i linux-image-2.6.31.4-mykernel_2.6.31.4-mykernel-10.00.Custom_i386.deb
(Reading database … 176378 files and directories currently installed.)
Preparing to replace linux-image-2.6.31.4-mykernel 2.6.31.4-mykernel-10.00.Custom (using linux-image-2.6.31.4-mykernel_2.6.31.4-mykernel-10.00.Custom_i386.deb) …
Done.
Unpacking r
Compiling php with curl, where is curl installed?
location: linuxexchange.com - date: February 12, 2011
I need to specify a directory when compiling php with --with-curl=
The curl binary is located at /usr/bin/curl
curl -V gives me
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
locate curl gives me
/usr/bin/curl
/usr/lib/libcurl.so.3
/usr/lib/libcurl.so.3.0.0
/usr/lib64/libcurl.so.3
/usr/lib64/libcurl.so.3.0.0
removed /usr/share/... and other irrelevant files
UPDATE
Tried --with-curl=/usr/lib64 and --with-curl=/usr/lib although I'm pretty sure it's 64 bit.
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
SOLUTION
PHP requires curl-devel
Compiling PHP with GD and libjpeg support
location: linuxexchange.com - date: April 25, 2014
I compile my own PHP, partly to learn more about how PHP is put together, and partly because I'm always finding I need modules that aren't available by default, and this way I have control over that.
My problem is that I can't get JPEG support in PHP. Using CentOS 5.6. Here are my configuration options when compiling PHP 5.3.8:
'./configure' '--enable-fpm' '--enable-mbstring' '--with-mysql' '--with-mysqli' '--with-gd' '--with-curl' '--with-mcrypt' '--with-zlib' '--with-pear' '--with-gmp' '--with-xsl' '--enable-zip' '--disable-fileinfo' '--with-jpeg-dir=/usr/lib/'
The ./configure output says:
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
And then we can see that GD is installed, but that JPEG support isn't there:
# php -r 'print_r(gd_info());'
Array
(
[GD Version] => bundled (2.0.34 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Re
Cross compiling from MinGW on Fedora 12 to Windows console window?
location: linuxexchange.com - date: April 13, 2010
After reading this article http://lukast.mediablog.sk/log/?p=155 I decided to use mingw on linux to compile windows applications. This means I can compile, test, debug and release directly from Linux.
I hacked this build script which will cross compile the application and even package it in a ZIP file. Note that I am using out of source builds for QMake (did you even know this is supported? wow...). Also note that the script will pull the needed DLLs automagically. Here is the script for you all internets to use and abuse:
#! /bin/sh
set -x
set -e
VERSION=0.1
PRO_FILE=blabla.pro
BUILD_DIR=mingw_build
DIST_DIR=blabla-$VERSION-win32
# clean up old shite
rm -fr $BUILD_DIR
mkdir $BUILD_DIR
cd $BUILD_DIR
# start building
QMAKESPEC=fedora-win32-cross qmake-qt4 QT_LIBINFIX=4 config=\"release\ quiet\" ../$PRO_FILE
#qmake-qt4 -spec fedora-win32-cross
make
DLLS=`i686-pc-mingw32-objdump -p release/*.exe | grep dll | awk '{print $3}'`
for i in $DLLS mingwm10.dll ; do
f=/usr/i686-pc-m
Coredump when compiling python with a custom openssl version
location: linuxexchange.com - date: March 17, 2014
When compiling python-3.4.0rc3 with a local openssl-1.0.1f shared install, make prints no error but then I get the following core dump on make install or make test:
Program terminated with signal 11, Segmentation fault.
(gdb) bt
#0 0x00007f131dd10510 in EVP_PKEY_CTX_dup () from /data2/soft/openssl/lib/libcrypto.so.1.0.0
#1 0x00007f131dd0284f in EVP_MD_CTX_copy_ex () from /data2/soft/openssl/lib/libcrypto.so.1.0.0
#2 0x00007f131e256ab5 in EVPnew (name_obj=0x7f131e46a500, digest=0x0, initial_ctx=0x7f131e459a40, cp=0x0, len=0) at /data2/soft/python3/Python-3.4.0rc3/Modules/_hashopenssl.c:410
#3 0x00007f131e25726e in EVP_new_md5 (self=<value optimized out>, args=<value optimized out>) at /data2/soft/python3/Python-3.4.0rc3/Modules/_hashopenssl.c:799
#4 0x00000000004c7eef in ?? ()
Here is the complete list of commands used
tar -axf Python-3.4.0rc3.tgz
cd Python-3*
# For lzma and a pip-compatible openssl
export CFLAGS='-I/data2/soft/openssl/include/openssl -I/data2/local
please wait...
Page: 1 2 3 4 5 6 7 8 9 10