Olivier Forget wrote:
> Hello,
>
> I would like to write a Qt program that can send commands and receive results
> from a real time thread. I can see how all the pieces fit together, except
> that I wouldn't know how to set up the compiler. The makefile for Qt is quite
> complicated, and as far as I can tell, the rtlinux apps are a little
> sensitive to which compiler is used and which options are used. That makes it
> hard for me to figure out how to compile a program that has both Qt and RTL
> functions.
well, you do not use the same method to compile a userspace application
and a RTLinux application. The only demmand for the userspace program is
that you have to open the fifos or mbuf module.
>
> I am using examples/frank_app as a test. I want to add some Qt code to that
> program so that the "Frank" and "Zappa" appear in a little GUI window. I know
> how to write a Qt application, but how do I compile it??
In the standard way. Just add a soft link to QT when you compile.
The frank test is split i to parts. A userspace app, and a RTlinix module.
include ../../rtl.mk
frank_app: frank_app.c
$(CC) ${INCLUDE} ${USER_CFLAGS} -O2 -Wall frank_app.c -o frank_app
frank_module.o: frank_module.c
$(CC) ${INCLUDE} ${CFLAGS} -c frank_module.c -o frank_module.o
you can see that the user space $(USER_CFLAGS) is used insted off $(CFLAGS).
A simple gees should bee to add a -lqt for support for qt library (only
for frank_app). that is
frank_app: frank_app.c
$(CC) ${INCLUDE} ${USER_CFLAGS} -O2 -Wall frank_app.c -o
frank_app -lqt
Anders Gnistrup
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/