Skip to contentSkip to conversation

Problem building MVM: "error: The X11 library '-lX11' could not be found"

Xenomai-help Ashri, Sarit 2 participants 2 messages Dec 4, 2005

lore
Share & tools
lore
#0 lore raw

Hi Philippe,
Do you think I should wait for the v2.1 to be released or is it stable enough To start playing with it now?

Thanks a lot for all your help!
Sarit.

Quoted 103 lines

-----Original Message-----
From: Philippe Gerum [mailto:[email protected]
Sent: Thursday, December 01, 2005 2:52 PM
To: Ashri, Sarit
Cc: [email protected]
Subject: Re: [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found"

Quoted 4 lines · Sarit
Quoted 4 lines
Quoted 2 lines · Sarit

Hi Philippe,

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

I did read the files. What I don't understand is how to build the Xenomai With Simulator support?
When I build Xenomai without simulator support - everything

works just

Quoted 2 lines

fine (crossed compiled to work on PPC with Linux 2.6.13.4). As soon as I mark Simulator->Minute Virtual Machine I get

that error

Quoted 23 lines
Quoted 23 lines
Quoted 2 lines

(X11 library..).
I understood from reading previous mails on the internet

that I should

Quoted 1 line

be able to build the MVM on my host computer which is NOT

patched by

Quoted 1 line

Adeos (RHEL3.0 Linux on i686) through Regular Xenomai

CROSS_COMPILING

Quoted 1 line

and installation.

Try this:

- Build your target system first without the simulator using cross-compilation for ppc. Let's say that you installed the results under /usr/realtime, which is the default.

- Then, build the simulator separately for the host:

Quoted 7 lines
Quoted 5 lines
$ mkdir sim-build && cd sim-build
$ .../xenomai/sim/configure --with-xeno-dir=/usr/realtime
--with-gcc-tarball=/something/gcc-2.95.3.tar.bz2
$ make install

Everything compiled fine, but when I tried to compile the

native demo

Quoted 22 lines

for the Simulator I received the following error:
cd .../skins/native/demos
[demos]$ /usr/realtime/bin/gcic -o satch_s.o -c satch.c -g -I /opt/nfs_root/usr/realtime/include
In file included from /opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
from
/opt/nfs_root/usr/realtime/include/nucleus/asm-generic/system.h:560,
from
/opt/nfs_root/usr/realtime/include/nucleus/asm/system.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/types.h:40,
from
/opt/nfs_root/usr/realtime/include/nucleus/queue.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:23,
from
/opt/nfs_root/usr/realtime/include/native/task.h:26,

Quoted 2 lines
                 from satch.c:4:

/usr/include/asm/atomic.h:40: warning: #warning Using

kernel header in

Quoted 4 lines

userland program. BAD!
In file included from /opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
from

Gah. Ok, my mistake. Since you are cross-compiling for your target, you need to have two Xenomai installations, once for the ppc target to run the real stuff, another one to run the virtual simulation environment for the x86 host.

So, ...

- Configure and cross-compile Xenomai for ppc without simulation support for installing to /opt/nfsroot
- Configure and compile Xenomai natively for x86 with simulation support for installing to, e.g. /opt/local

This way at least, you won't need to build the simulator apart, it will be built as part of the second step. Most of the native x86 support won't be used (aside of the simulator, of course), but at least, this will work. On the host, you will need to set your PATH and LD_LIBRARY_PATH to /opt/local/bin, and /opt/local/lib respectively, so that the simulation libs and tools are found.

Quoted 9 lines

The #warning won't go away though; only v2.1 gets rid of this by avoiding any kernel header inclusion in user-space. Debian systems would not bother you with this (at least sarge doesn't), but RH actually do.

Signature · 1 line
Philippe.

***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [email protected] and destroy the original message.
***********************************************************************************

#1 lore raw
Quoted 3 lines · Sarit

Hi Philippe,
Do you think I should wait for the v2.1 to be released or is it stable enough To start playing with it now?

If we are still talking about the simulator, this is a rather mature piece of code since 2000 or so. Actually, it has been adapted from an old RTOS simulator project I recently moved to GNA: www.gna.org/projects/carbonkernel.

Quoted 116 lines

Thanks a lot for all your help!
Sarit.

Quoted 94 lines

-----Original Message-----
From: Philippe Gerum [mailto:[email protected]] Sent: Thursday, December 01, 2005 2:52 PM
To: Ashri, Sarit
Cc: [email protected]
Subject: Re: [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found"

Quoted 5 lines · Sarit
Quoted 5 lines
Quoted 2 lines · Sarit

Hi Philippe,

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

I did read the files. What I don't understand is how to build the Xenomai With Simulator support? When I build Xenomai without simulator support - everything

works just

Quoted 2 lines

fine (crossed compiled to work on PPC with Linux 2.6.13.4). As soon as I mark Simulator->Minute Virtual Machine I get

that error

Quoted 25 lines
Quoted 25 lines
Quoted 2 lines

(X11 library..).
I understood from reading previous mails on the internet

that I should

Quoted 1 line

be able to build the MVM on my host computer which is NOT

patched by

Quoted 1 line

Adeos (RHEL3.0 Linux on i686) through Regular Xenomai

CROSS_COMPILING

Quoted 1 line

and installation.

Try this:

- Build your target system first without the simulator using
cross-compilation for ppc. Let's say that you installed the results under /usr/realtime, which is the default.

- Then, build the simulator separately for the host:

Quoted 7 lines
Quoted 5 lines
$ mkdir sim-build && cd sim-build
$ .../xenomai/sim/configure --with-xeno-dir=/usr/realtime
--with-gcc-tarball=/something/gcc-2.95.3.tar.bz2
$ make install

Everything compiled fine, but when I tried to compile the

native demo

Quoted 21 lines

for the Simulator I received the following error:
cd .../skins/native/demos
[demos]$ /usr/realtime/bin/gcic -o satch_s.o -c satch.c -g -I /opt/nfs_root/usr/realtime/include In file included from /opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
from
/opt/nfs_root/usr/realtime/include/nucleus/asm-generic/system.h:560,
from
/opt/nfs_root/usr/realtime/include/nucleus/asm/system.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/types.h:40,
from
/opt/nfs_root/usr/realtime/include/nucleus/queue.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:23,
from
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:23,
from
/opt/nfs_root/usr/realtime/include/native/task.h:26,

Quoted 2 lines
                from satch.c:4:

/usr/include/asm/atomic.h:40: warning: #warning Using

kernel header in

Quoted 4 lines

userland program. BAD!
In file included from /opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
from

Gah. Ok, my mistake. Since you are cross-compiling for your target, you need to have two Xenomai installations, once for the ppc target to run the real stuff, another one to run the virtual simulation environment for the x86 host.

So, ...

Quoted 13 lines

- Configure and cross-compile Xenomai for ppc without simulation support for installing to /opt/nfsroot
- Configure and compile Xenomai natively for x86 with simulation support for installing to, e.g. /opt/local

This way at least, you won't need to build the simulator apart, it will be built as part of the second step. Most of the native x86 support won't be used (aside of the simulator, of course), but at least, this will work. On the host, you will need to set your PATH and LD_LIBRARY_PATH to /opt/local/bin, and /opt/local/lib respectively, so that the simulation libs and tools are found.

The #warning won't go away though; only v2.1 gets rid of this by avoiding any kernel header inclusion in user-space. Debian systems would not bother you with this (at least sarge doesn't), but RH actually do.

Signature · 1 line
Philippe.

***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [email protected] and destroy the original message.
***********************************************************************************

Signature · 1 line
Philippe.