Results 1 to 9 of 9

Thread: How to change the route in the *.h files ?

  1. #1
    Join Date
    Jan 2011
    Posts
    40
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to change the route in the *.h files ?

    the route of the head files is wrong,and i have to modified it.But in windows xp,there is no way to change the environment variaties.So could i add some code into the program so that i could decrease my work time ?Poor english hope you could understand me .

  2. #2
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to change the route in the *.h files ?

    Do you mean path to header files?
    If yes then add path to your pro file, like this:
    Qt Code:
    1. INCLUDEPATH += path1 \
    2. path2 \
    3. path3
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2011
    Posts
    40
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to change the route in the *.h files ?

    in fact it doesn't work .the source code is like this
    Qt Code:
    1. #include <taglib/taglib.h>
    To copy to clipboard, switch view to plain text mode 
    and the files route is like this
    Qt Code:
    1. ./taglib/include/taglib.h
    To copy to clipboard, switch view to plain text mode 
    so how could make sure that the QT could recognize the <taglib/taglib.h> is the file of ./taglib/include/taglib.h

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to change the route in the *.h files ?

    so how could make sure that the QT could recognize the <taglib/taglib.h> is the file of ./taglib/include/taglib.h
    You change <taglib/taglib.h> to <taglib.h> and add the path to the include paths.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to change the route in the *.h files ?

    Quote Originally Posted by wter27 View Post
    But in windows xp,there is no way to change the environment variaties.
    You mean environment variables? Of course you can, they are in "My computer"

  6. #6
    Join Date
    Jan 2011
    Posts
    40
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to change the route in the *.h files ?

    though I knew the way you just mentioned .But that would be a lot work to do.I just wondered if there is some easy way to work it out.

    thanks ,i knew that .but in windows xp there is no way to make a link between the <taglib/taglib.h> and the ./taglib/include/taglib.h

  7. #7
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to change the route in the *.h files ?

    Your installation doesn't match what your code is calling for. One or the other will have to be changed.

  8. #8
    Join Date
    Jan 2011
    Posts
    40
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to change the route in the *.h files ?

    Quote Originally Posted by SixDegrees View Post
    Your installation doesn't match what your code is calling for. One or the other will have to be changed.
    What is that
    doesn't match what your code is calling for
    ,i dont get it.could you give me some hints?

  9. #9
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to change the route in the *.h files ?

    Your source code is looking for headers in a place that doesn't exist. You either have to put your headers where your source code expects them to be, or change your source code to look in a different place.

Similar Threads

  1. DockWidgetArea change and layout direction change
    By mstegehu in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2012, 21:24
  2. How to change path where ui_* files are generated?
    By Tiansen in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2010, 13:39
  3. Replies: 12
    Last Post: 17th June 2009, 05:34
  4. How to change some files backgroundcolors
    By tkms in forum Qt Programming
    Replies: 3
    Last Post: 17th December 2008, 06:23
  5. socket programming... getting "no route to host"
    By babusunlux in forum Qt Programming
    Replies: 1
    Last Post: 4th August 2006, 20:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.