FreeBSD > Compiling application with QT

by on January 25, 2005 · 0 comments· Last updated January 25, 2005

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.



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 3 + 11 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: