Results 1 to 4 of 4

Thread: [pls help] error install qt4.5 on freebsd 7.1

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question [pls help] error install qt4.5 on freebsd 7.1

    hi all,

    i have download qt-sdk-linux-x86-opensource-2009.02.bin from qt website.

    and after i installed on my freebsd 7.1

    i get some errors.



    how to make the installation is successfully without errors??
    i am a newbie in unix / QT

    please help me

    thx u for reply

  2. #2
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Wink Re: [pls help] error install qt4.5 on freebsd 7.1

    You need to install the FreeBSD ports. You cannot use Linux binary application directly, you could use the linux binary compatibility generally, but you have Qt4 under FreeBSD natively, so install the ports. See into the handbook how to install a port .

  3. #3
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [pls help] error install qt4.5 on freebsd 7.1

    Quote Originally Posted by ksniffer View Post
    You need to install the FreeBSD ports. You cannot use Linux binary application directly, you could use the linux binary compatibility generally, but you have Qt4 under FreeBSD natively, so install the ports. See into the handbook how to install a port .
    thx for reply sniffer,

    now i have installed qt4.4.3 from freebsd ports collection.
    all packet qt i have installed.

    i try to make a simple program


    Qt Code:
    1. #include <QApplication>
    2. #include <QWidget>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv) ;
    7. QWidget window;
    8. window.resize(250, 150);
    9. window.setWindowTitle("Simple example");
    10. window.show();
    11.  
    12. return app.exec();
    13.  
    14. }
    To copy to clipboard, switch view to plain text mode 

    i saved at /web/qt/qt1/text.cpp

    now i compile it from terminal and this is my command :
    Qt Code:
    1. root# pwd
    2. /tms/QT/qt1
    3. root# ls
    4. test.cpp
    5. root# qmake -project
    6. root# qmake
    7. QMAKESPEC has not been set, so configuration cannot be deduced.
    8. Error processing project file: /web/QT/qt1/qt1.pro
    To copy to clipboard, switch view to plain text mode 

    i have edit file ./profile


    Qt Code:
    1. .lf 1 /root/.profile
    2. # $FreeBSD: src/etc/root/dot.profile,v 1.21.8.1 2009/04/15 03:14:26 kensmith Exp $
    3. #
    4. PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:~/bin
    5. export PATH
    6. HOME=/root
    7. export HOME
    8. TERM=${TERM:-cons25}
    9. export TERM
    10. PAGER=more
    11. export PAGER
    12. QMAKESPEC=/usr/local/share/qt4/mkspecs/freebsd-g++
    13. export QMAKESPEC
    To copy to clipboard, switch view to plain text mode 

    when i type qmake, there is error :
    QMAKESPEC has not been set, so configuration cannot be deduced.
    Error processing project file: /web/QT/qt1/qt1.pro

    how to fix it? is there another setting ???

    thx u for reply

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [pls help] error install qt4.5 on freebsd 7.1

    Hi, qtb10

    I'm also a FreeBSD user. I have installed Qt 4.5.1 without problems and using it. Here is what i do after installation:

    1. add "setenv QMAKESPEC freebsd-g++" to my .tcshrc file add
    (or similat rc file for other shells)

    And everything works fine.
    Note that Qt 4.5.1 has been built from source, as you might know that port is not ready yet.

    I have seen that you tried to install QtSdk probably to have Qt and QtCreator. I can share the patched version of QtCreator which works fine for me on my FreeBSD 7.1. Or you can patch it yourself.
    I'm a rebel in the S.D.G.

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.