Results 1 to 7 of 7

Thread: QT Creator problem with examples

  1. #1
    Join Date
    Jul 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QT Creator problem with examples

    Hi,

    I'm having trouble getting QT Creator to install and work properly. I am downloading the linux 32-bit binary from:

    http://get.qtsoftware.com/qtcreator/...urce-1.2.1.bin

    I then chmod +x, and then run it with sudo. I install to /opt/qtcreator-1.2.1/
    I launch it with the Desktop shortcut automatically created and the program opens fine, except for one problem. It says "Examples not installed" under the Explore QT examples. Can anyone help me with this? I installed this program on another system of almost exactly the same specs without this issue. Thanks in advance.

    By the way, before installing QT Creator, I have compiled from source QT framework only from the below link:

    http://get.qtsoftware.com/qt/source/...c-4.5.1.tar.gz

    This seemed succesful as I can run and compile other progs based on QT. I'm running CentOS 5.3 and kernel 2.6.18-128.1.14.el5.

    I can't understand why the same instructions on an identical hardware machine with same OS/QT specs do not reproduce this error.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT Creator problem with examples

    Did you compile and install the examples while building Qt?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QT Creator problem with examples

    I did not compile QT Creator. I only compiled the framework. Then, I did download the QT Creator binary. However, when I compiled QT framework, I checked the directory to see if examples are present. In my $QTDIR/examples, I do have the following examples being listed:

    assistant draganddrop itemviews opengl richtext tutorials
    dbus examples.pro layouts painting script uitools
    designer graphicsview linguist qtconcurrent sql webkit
    desktop help mainwindows qtestlib threads widgets
    dialogs ipc network README tools xml

    This is the same on my other computer, exact hardware, os, and qt configuration. Thus, I'm stumped while I'm getting this error.

    Any suggestions? I hope I don't have to recompile qt framework or download the larger version, as I've spent hours on customizing other software based on current build.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT Creator problem with examples

    Quote Originally Posted by maccabees View Post
    I hope I don't have to recompile qt framework or download the larger version, as I've spent hours on customizing other software based on current build.
    What larger version?

    Are you sure Creator is configured to look for your compiled Qt by default?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jul 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QT Creator problem with examples

    I checked QT Creator in Tools, Options and have:

    Auto-detected QT, /usr/local/clas12/qt4

    To answer your question, I installed, Qt Framework, not QT SDK, as listed below in text and reference at link:

    http://www.qtsoftware.com/downloads

    Qt SDK

    * Qt libraries
    * Qt Creator IDE
    * Qt development tools

    QT Framework

    * Modular Qt libraries
    * Integrated Qt development tools

    Any ideas what to do? Thanks in advance.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT Creator problem with examples

    Ok, I looked into Creator code. What it looks for is "demos/qtdemo/xml/examples.xml" file. If it's there, the examples will be available from within Creator.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Jul 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QT Creator problem with examples

    I checked to see if I had examples.xml in the directory mentioned, and I did. Still, QT Creator did not seem to see them. I recompiled from source again and for some unknown reason, things now work. Thanks for your help.

    JJS

Similar Threads

  1. Configure Qt without examples?
    By Boron in forum Installation and Deployment
    Replies: 9
    Last Post: 8th September 2011, 18:24
  2. Examples of projects that make use of database
    By PaceyIV in forum Qt Programming
    Replies: 4
    Last Post: 29th June 2009, 09:32
  3. to compile and run qtopia examples for greenphone
    By prajna in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 15th April 2009, 10:00
  4. Qt State Machine Examples don't compile
    By vitalyx in forum Newbie
    Replies: 0
    Last Post: 4th April 2009, 14:19
  5. Qwt examples
    By 31512 in forum Qwt
    Replies: 11
    Last Post: 3rd July 2008, 05:00

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.