From: Henry N. <Hen...@Ar...> - 2007-09-10 17:06:15
|
Samir Kuthiala wrote: > I am having some trouble following the guide. I installed fltk-1.1.6 > from source into ~/i686-pc-linux-local. After that I ran the following > commands: > >> export PATH=$HOME/i686-linux-local/bin:$PATH >> ./configure --target=i686-pc-linux-local > --targetkerneldir=~/Downloads/devel-colinux-20070819 > --hostkerneldir=/lib/modules/2.6.20-16-generic/build 'targetkerneldir' should point to patched and configured kernel source for colinux guest (kernel 2.6.22 for snapshot 20070819) Check that there exist the file $HOME/Downloads/devel-colinux-20070819/include/linux/cooperative.h (and mutch more kernel headers) Replace the '~' with '$HOME', im not shure working with '~'. After give configure a new (empty) path to targetkerneldir, you can get the patched kernel source by: "make kernel" in source of coLinux. You can break (CTRL-C) the build after you see the message "Configuring Kernel 2.6.22" - if you not need the kernel build self. But in normal case, you need the kernel for running coLinux later. So, let the kernel build, before build the daemons for linux host. Kernel build and damons build use the same config. So, it should work. >> export COLINUX_TARGET_KERNEL_PATH=~/Downloads/devel-colinux-20070819 >> export COLINUX_HOST_KERNEL_DIR=/lib/modules/2.6.20-16-generic/build >> export COLINUX_HOST_OS=linux >> export COLINUX_CFLAGS="-I$HOME/i686-pc-linux-local/include" >> export COLINUX_LFLAGS="-L$HOME/i686-pc-linux-local/lib" >> make HOSTOS=linux colinux You stay in the directory where Makefile.linux exist? If yes, you not need the follows: COLINUX_TARGET_KERNEL_PATH, COLINUX_HOST_KERNEL_DIR, COLINUX_HOST_OS. This all comes from config file, you find in bin/user-build.cfg (created by coLinux 'configure'). This lines should be enouth: export COLINUX_CFLAGS="-I$HOME/i686-pc-linux-local/include" export COLINUX_LFLAGS="-L$HOME/i686-pc-linux-local/lib" make HOSTOS=linux colinux > [...] > In file included from src/colinux/common/config.h:13, > from src/colinux/user/daemon.h:14, > from src/colinux/os/linux/user/daemon/main.c:18: > src/colinux/common/common.h:28:31: error: linux/cooperative.h: No such The daemon don't find the colinux kernel headers. PS: I'm not know your gcc version from your distro. The snapshot you use, only works with gcc 4.1.x - If your local gcc is not 4.1.x, you need to use the more complicated parameter '--gcc-guest-build'. Or use latest source, there have opened for more gcc versions. http://www.henrynestler.com/colinux/autobuild/devel-20070909/colinux-0.8.0-20070909.src.tgz -- Henry |