IRRLICHT and colinux

A forum to store posts deemed exceptionally wise and useful
Post Reply
strale
Posts: 119
Joined: Wed Nov 23, 2005 1:58 pm
Location: Lambrugo Italy
Contact:

IRRLICHT and colinux

Post by strale »

Once uppon a time LINUX IRRLICHT was runnig free on my installed ArchLinux.
But... windows OS was mandatory fror me so
few days ago i istalled colinux to run Linux from the Win2000

:? if some one other is it is interessed in, it is quite simple :
but please consider that i am not a Linux expertand the following tips are only the stps i have undertaken to run IRRLICHT on my Linux partition from Win2000.

If some one would like to try this i suggest to take the following tips in conjunction with the colinux manuals that is suitable for more general PC configurations.

IU have An hard disk 0, with win200 installed
and an other hard disk with LINUX installed.

downloaded:
colinux 0.7xxx
xming 6.9xx for win2000 or upper versions for XP

double click on coLinux-0.7.3.exe (a new directory is generated in c:\colinux i have put it there as it isd the default)
double click on xming_xyz_setup.exe


colinux 0.7xx use a file.conf to setup the sistem
so it easy to run a preinstalled linux, just setup the example.conf :

Code: Select all

# File contains the root file system.
# Download and extract preconfigured file from SF "Images for 2.6".
cobd0="\Device\Harddisk1\Partition1"
this tell : second ardisk first partition.

Code: Select all

# Tell kernel the name of root device (mostly /dev/cobd0,
# /dev/cobd/0 on Gentoo)
# This parameter will be forward to Linux kernel.
root=/dev/cobd0
this tell that the mount point
(colinux use cobf files to map driver for linux )


then:
Linux has no access to PC hardware as windos was there before
no access to graphic card is allowed and xorg must not be started.
a little change to inittab file would be of help to avoid startin xorg
vi /etc/inittab
and change
id:5:initdefault:
to
id:3:initdefault:

(I have not made this change , in my case the system try to start x take some error and drop X, in colinux 0.6xx this gave a system halt also in windows :!: but , in my case (colinux 0.7xx) i have not noticed it at all)


to run colinux from a dos console i have run this command:

c:\colinux\colinux-daemon.exe "@c:\colinux\archpart.conf"
(archpart.conf is my modified conf file .)

now a Linux console is suppose to popup in a window
just enter linux with user and password

our aim now is to run Irrlicht :? but how without xorg :?:
some of you will remember about xming this is an X server that run on windows
it is like having X11 on the windows and access to the graphic server is supposed by network

a running network is mandatory:

colinux already has a configuration and could see window
try ping to the window IP
to find the windows IP "ifconfig" on a dos console
then from the Linux console just try to ping windows
if it does not ack

stop linux network and restart.. on Archlinux distro:
/etc/rc.d/network stop
then
/etc/rc.d/network start

in my case i see some error but then it works

if it still does not run ... well i do not know what to do more.
else{
run xming from windows (Xlaunch.exe) i have radio checked multiple windows

in Linux console run:
xterm -display windowsIP:0.0
ex : xterm 156.12.9.34:0.0
this tell to run xterm throug the window server listening on that IP.

a xterm (hope) will popup in windows and
from this xterm i have succeded in compiling the examples for Linux
and rrunning them.

The sistemis is very slow but can be improuved.
hope it could of help

Cheers
torleif
Posts: 188
Joined: Mon Jun 30, 2008 4:53 am

Post by torleif »

If coLinux is on the same partition you are trying to access the files from you may have trouble mounting them. When I tried coLinux they had this problem, but they may have fixed it since
nmn
Posts: 23
Joined: Tue Sep 02, 2008 7:35 pm

Post by nmn »

I'm interested, though I no longer use Windows for my main development box - Would it be possible to build a GCC Linux cross compiler inside of Cygwin and use Irrlicht from that? Testing would still require CoLinux, or another box, but you could still make builds without running the Linux kernel which is possibly interesting.
strale
Posts: 119
Joined: Wed Nov 23, 2005 1:58 pm
Location: Lambrugo Italy
Contact:

Post by strale »

Hi

torleif:
i tried on a notebook and seems they have fixed it

nmn:
i belived cygwin used a compiler like the mingw but may be i am wrong.
Post Reply