Results 1 to 3 of 3

Thread: Help running git build in custom directory

  1. #1
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Help running git build in custom directory

    I need some help with running a build of a git clone of Qt Creator, installed in a custom directory in home folder.

    These are the exact steps I performed. Can someone take a look and tell me if I did something wrong?

    Qt Code:
    1. tbscope@laptop ~ $ mkdir qtmaster-bin
    2. tbscope@laptop ~ $ mkdir qtcreatormaster-bin
    3. tbscope@laptop ~ $ mkdir qtcreatormaster-build
    4. tbscope@laptop ~ $ mkdir qtgit
    5. tbscope@laptop ~ $ cd qtgit
    6. tbscope@laptop ~/qtgit $ git clone git://gitorious.org/qt/qt.git
    7. tbscope@laptop ~/qtgit $ git clone git://gitorious.org/qt-creator/qt-creator.git
    8. tbscope@laptop ~/qtgit $ cd qt
    9. tbscope@laptop ~/qtgit/qt $ ./configure -no-glib -no-gtkstyle -declarative -debug -no-webkit -developer-build -prefix /home/tbscope/qtmaster-bin
    10. tbscope@laptop ~/qtgit/qt $ make -j2
    11. tbscope@laptop ~/qtgit/qt $ make install
    12. tbscope@laptop ~/qtgit/qt $ cd ../../qtcreatormaster-build
    13. tbscope@laptop ~/qtcreatormaster-build $ /home/tbscope/qtmaster-bin/bin/qmake /home/tbscope/qtgit/qt-creator/qtcreator.pro
    14. tbscope@laptop ~/qtcreatormaster-build $ make -j2
    15. tbscope@laptop ~/qtcreatormaster-build $ make "ROOT_INSTALL=/home/tbscope/qtcreatormaster_bin" install
    16. tbscope@laptop ~/qtcreatormaster-build $ cd ../qtcreatormaster-bin
    17. tbscope@laptop ~/qtcreatormaster-bin $ cd bin
    18. tbscope@laptop ~/qtcreatormaster-bin/bin $ ./qtcreator
    19. Cannot mix incompatible Qt library (version 0x40603) with this library (version 0x40700)
    To copy to clipboard, switch view to plain text mode 

    I already tried the following things:
    * I removed a Qt Creator 1.3.1 install so all the plug-ins are definatly from my build of Qt Creator
    * I added a qt.conf document in the ~/qtcreatormaster-bin/bin folder
    * I checked my paths. ~/qtmaster-bin/bin and ~/qtcreatormaster-bin/bin are in $PATH
    * I used ldd to check most of the executables and libraries (not all though). All those checked seem to call the correct Qt libraries.

    I have no idea how to solve this.
    Does anyone else have any ideas?

    Thanks

    Edit: Thinking about it a little bit:
    I think it is a program or library outside my build of Qt and Qt-Creator that makes use of Qt-4.6.3.
    Or, since I didn't compile Qt Webkit from the git clone, and there is a Qt webkit 4.6.3 installed, something calls this library. Although I think this is highly unlikely.
    Last edited by tbscope; 14th August 2010 at 16:27.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Help running git build in custom directory

    After completely removing Qt-4.6.3, I got this error/warning when starting Qt Creator (it does start now)

    Qt Code:
    1. QSqlDatabase: QSQLITE driver not loaded
    2. QSqlDatabase: available drivers:
    To copy to clipboard, switch view to plain text mode 

    I guess Qt Creator tried to use Qt-4.6.3 sql drivers.
    Since my install of Qt-4.7.0-git does contain the sqlite sql driver, I don't know why it doesn't find it.

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Help running git build in custom directory

    I got it now.

    After a weekend of trial and error, I redid everything in a clean environment, and it all worked out of the box.

Similar Threads

  1. How to build a list of custom widgets
    By curreli in forum Newbie
    Replies: 6
    Last Post: 28th July 2010, 12:55
  2. Replies: 7
    Last Post: 2nd November 2009, 19:07
  3. QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory
    By doggrant in forum Installation and Deployment
    Replies: 5
    Last Post: 28th August 2009, 15:55
  4. Custom Plugin problem to build
    By brevleq in forum Qt Programming
    Replies: 10
    Last Post: 21st December 2008, 17:41
  5. Running Qtopia app outside of image directory
    By lubo in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th April 2008, 08:03

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.