473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

add a directory location for compilation

Hi everyone, my question is probably trivial but I couldn't find a way
to do it. Is there a way to tell the compiler about a directory where
it has to look for some files? For example, I'm trying to use Qt to
design a graphic user interface and in my system the Qt files are
under /usr/include/Qt4 instead of /usr/include. I could easily change
the location in the produced header files but I think this is a brute
force approach and maybe adding another directory to the compiler is
something easy.

Thanks for your help.



Aug 5 '07 #1
2 1854
On Sun, 05 Aug 2007 22:09:52 +0000, aaragon wrote:
Hi everyone, my question is probably trivial but I couldn't find a way
to do it. Is there a way to tell the compiler about a directory where it
has to look for some files? For example, I'm trying to use Qt to design
a graphic user interface and in my system the Qt files are under
/usr/include/Qt4 instead of /usr/include. I could easily change the
location in the produced header files but I think this is a brute force
approach and maybe adding another directory to the compiler is something
easy.
#include <// includes headers from a directory listed with -i dir

#include "" // includes headers at an absolute or relative directory

For Qt4 use the qmake-qt4 project file (.pro) to modify the common macro
directory locations.
qmake-qt4 -project # creates a project file

vi *.pro # edits the project file that creates Makefile

qmake-qt4 # creates the Makefile

make # builds the app

by default the project file is the directory name followed by .pro



Aug 5 '07 #2
On Aug 5, 5:40 pm, Just me <noemailt...@somedomain.comwrote:
On Sun, 05 Aug 2007 22:09:52 +0000, aaragon wrote:
Hi everyone, my question is probably trivial but I couldn't find a way
to do it. Is there a way to tell the compiler about a directory where it
has to look for some files? For example, I'm trying to use Qt to design
a graphic user interface and in my system the Qt files are under
/usr/include/Qt4 instead of /usr/include. I could easily change the
location in the produced header files but I think this is a brute force
approach and maybe adding another directory to the compiler is something
easy.

#include <// includes headers from a directory listed with -i dir

#include "" // includes headers at an absolute or relative directory

For Qt4 use the qmake-qt4 project file (.pro) to modify the common macro
directory locations.

qmake-qt4 -project # creates a project file

vi *.pro # edits the project file that creates Makefile

qmake-qt4 # creates the Makefile

make # builds the app

by default the project file is the directory name followed by .pro
Thank you so much, I just changed the .pro file and included the right
path.

Aug 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: See Sharp | last post by:
Hello all, I have a set of admin pages which are put in a subfolder called admin inside my application folder. I want to limit access to these admin pages. How can I do this? In Linux, I can...
1
by: Ryan Moore | last post by:
I need to add an additional directory to search for assemblies other than the "bin" directory.... how do I do this in the web.config file?
0
by: Ian Suttle | last post by:
I have created an HTTPModule for error handling, which I only want to handle a specified directory structure. In the root of my application, I have altered the web.config file as follows: ...
6
by: js | last post by:
I am trying to use the form futhentication where the configuration parameters are specified in web.config in my application root directory "/". My applciation has secured pages and public pages...
0
by: Andrés G. Aragoneses | last post by:
When trying to use a webservices, not very often I obtain the following exception: Server was unable to process request. ---> Access to the temp directory is denied. Identity 'NT...
2
by: Les Caudle | last post by:
I converted an ASP.NET 1.1 web running on IIS under XP Pro using Visual Studio 2005 It runs ok, but when I build it - no dlls are created in the BIN directory (or any other directory that I've...
0
by: oritc123 | last post by:
Hello . I am having the following error when I run my application under Windows Vista ( it runs fine under Windows XP ) : "Access to the temp directory is denied. Identity 'ORITSLAPTOP\orit'...
7
by: Arthur | last post by:
hi, this might be a simple one to them who know: i'm developing an asp.net project and use the debug mode. i have a xml file which contains data, that shall be read, if a specific page is...
0
by: Darko Bazulj | last post by:
How to add next to web.config <location path="9998886"> <system.web> <compilation tempDirectory="D:\logs\temporary_asp_net_files\9998886" /> </system.web> </location> <location path="444">
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.