FreeBSD > Compiling application with QT

by on January 25, 2005 · 0 comments· LAST UPDATED January 25, 2005

in

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 1

Stop 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.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: