FreeBSD > Compiling application with QT
Qt is a complete C++ application framework (toolkit), including a class library and tools for cross-platform. While compile qt application under FreeBSD you get error:
/bin/uic about.ui -o about.h
/bin/uic:No such file or directory
*** Error code 1Stop in /home/projects/nqe.
To get rid of this problem:
1) To compile application under QT define QTDIR variable (assuming you are using bash shell)
$ export QTDIR=/usr/X11R6
You can add this line to your startup shell script i.e. ~/.bash_profile
2) Compile your qt application:
$ cd /path/to/appdir
$ qmake -project
$ qmake
$ make
3) Execute your code.
You may also be interested in other helpful articles:
- Programming Tutorial: How To Write a FreeBSD Kernel Module ( Driver )
- Linux: How to compile program
- Download of the day: FreeBSD 7.0 ISO / CD Image
- Download of the day: Linux kernel 2.6.24
- FreeBSD Download Sun Java JDK and JRE 1.5 Binaries
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Yesterday ~ 24 Comments
Yesterday ~ 24 Comments
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
09/05/2008 06:08 pm (2 days ago) ~ 16 Comments