Results 1 to 3 of 3

Thread: adding directory to the path

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Cool adding directory to the path

    Hello everybody...

    Hope some hints could come out. I have made the installation of Qt4 in my Fedora/MacBookPro. It also got a first compiling and running a simple program.

    The point is that for the compiler to run I need to point out every time where the bin is located, as that:

    $ /home/threader/kinetic/bin/qmake -project

    I have tried the following, but it still doesn't work:

    # script
    #-----------------------------------------------------------#
    # /etc/bashrc or /home/threader/.bash_profile
    # config to Qt compiler
    # LD_LIBRARY_PATH para o diretorio 'lib' onde vc instalou
    LD_LIBRARY_PATH=/home/threader/kinetic/bin
    # it is PKG_CONFIG_PATH to lib/pkgconfig
    PKG_CONFIG_PATH=/home/threader/kinetic/lib/pkgconfig
    export PKG_CONFIG_PATH=/home/threader/kinetic/bin
    #-----------------------------------------------------------#
    # also include
    # !/etc/ld.so.conf
    include ld.so.conf.d/*.conf
    /home/threader/kinetic/lib
    #-----------------------------------------------------------#
    # also include
    # !/usr/local/lib/pkgconfig
    #PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    PKG_CONFIG_PATH=/home/threader/kinetic/lib/pkgconfig
    export PKG_CONFIG_PATH=/home/threader/kinetic/bin
    #-----------------------------------------------------------#

    Any suggestions would be mostly appreciated. Cheers..

  2. #2
    Join Date
    Mar 2009
    Posts
    25
    Thanked 2 Times in 2 Posts

    Default Re: adding directory to the path

    Add the following lines to you .bashrc file in you home directory.

    PATH="$PATH:/home/threader/kinetic/bin/qmake"
    export PATH

    Chances are lines like above already exist, so you add ":/home/threader/kinetic/bin/qmake" to the end of the string.

    If you're not using the default Bash shell (which I doubt), find .cshrc, etc.

    This is not Qt issue.

    Google .bashrc

  3. #3
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: adding directory to the path

    Quote Originally Posted by Hiker Hauk View Post
    Add the following lines to you .bashrc file in you home directory.

    PATH="$PATH:/home/threader/kinetic/bin/qmake"
    export PATH
    It should be /home/threader/kinetic/bin, not /home/threader/kinetic/bin/qmake.

Similar Threads

  1. Replies: 7
    Last Post: 22nd December 2010, 08:13
  2. install help nedded.
    By aj2903 in forum Installation and Deployment
    Replies: 9
    Last Post: 13th November 2008, 07:57
  3. Qt 4 current directory path
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 7th May 2008, 18:58
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. application directory path on mac
    By munna in forum Qt Programming
    Replies: 0
    Last Post: 27th January 2007, 11:45

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.