Results 1 to 6 of 6

Thread: Installling Qt 3.3.6 on Mac OS X - Problem with .profile

  1. #1
    Join Date
    Jan 2006
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Installling Qt 3.3.6 on Mac OS X - Problem with .profile

    I want to install Qt 3.3.6 for Mac(free version) on Mac OS X 10.4.
    Now the install manual instructs to create a .profile file (since my shell is bash) and set the environment variables there.

    Now I am stuck at this point, where exactly do I create the file .profile ?

    Pleease help me out!

    Thanks in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile

    In your home-directory: /Users/<yourUsername>/

    In Finder, press Command + Shift + H to go there.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile

    Thanks a lot for the help! I did that. I have added the following lines it.

    QTDIR=/Developer/qt-3.3.6
    PATH=$QTDIR/bin:$PATH
    DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH

    export QTDIR PATH DYLD_LIBRARY_PATH

    I also logged out n logged.
    After this I gave env command at the bash command, but the PATH does not list "$QTDIR/bin:$PATH".

    Whats is going wrong? How do i figure out that the environment variables have been set?

  4. #4
    Join Date
    Jan 2006
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile

    Just in case this helps.... this is what i get on giving the 'env' command on bash:

    TERM_PROGRAM=Apple_Terminal
    SHELL=/bin/bash
    TERM=xterm-color
    TERM_PROGRAM_VERSION=133
    USER=shambhavi
    __CF_USER_TEXT_ENCODING=0x1F5:0:0
    PATH=/bin:/sbin:/usr/bin:/usr/sbin
    PWD=/Users/shambhavi
    HOME=/Users/shambhavi
    SHLVL=2
    LOGNAME=shambhavi
    SECURITYSESSIONID=2f04e20
    _=/usr/bin/env
    OLDPWD=/Users/shambhavi

  5. #5
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile

    Is there already a .bash-profile file in addition to .profile in you home directory?

  6. #6
    Join Date
    Jan 2006
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile

    Thank you Dimitri and axeljaeger for your help. I have got it running now.

    I did a silly thing, the .profile was of RTF format and so it could'nt be recognised. I recreated the file using vim, and now the variables are set.
    Last edited by Shambhavi; 8th April 2006 at 10:10.

Similar Threads

  1. Problem compile QT embedded 3.3.6
    By webquinty in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 27th June 2008, 08:55

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.