Results 1 to 3 of 3

Thread: Can't run Qt example program

  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Can't run Qt example program

    Iv'e been trying to get Qt apps to run in Netbeans for days now, they all work and run in the Qt Creator but not in Netbeans; I could really use some help here.

    All I want to do is run the example program and even that is giving me problems :/

    I followed the tutorial to the T but still cant run the program.

    This is what im doing:

    Create and Run 'Hello Qt World' sample

    1. New Project > Samples > C/C++ > Hello Qt World
    2. Specify a project name and location
    3. Let the Set as Main Project check box checked
    4. Press Finish button
    5. Press 'Run Main Project' button on toolbar

    After I hit Run Main Project everything builds fine but no window shows up, and the output window reads: RUN FAILED (exit value 139, total time: 358ms)

    Is there any reason why the EXAMPLE can't run!?!? I'm really hitting my head against the desk here.

    Im using Netbeans 6.8. and Ubuntu 10.04

    Thanks

    Heres the output window:
    rm -f moc_HelloForm.cpp
    rm -f ui_HelloForm.h
    rm -f HelloForm.o newmain.o moc_HelloForm.o
    rm -f *~ core *.core
    CLEAN SUCCESSFUL (total time: 83ms)

    /usr/bin/uic-qt4 HelloForm.ui -o ui_HelloForm.h
    g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o HelloForm.o HelloForm.cpp
    g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o newmain.o newmain.cpp
    /usr/bin/moc-qt4 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. HelloForm.h -o moc_HelloForm.cpp
    g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o moc_HelloForm.o moc_HelloForm.cpp
    g++ -o HelloQtWorld_1 HelloForm.o newmain.o moc_HelloForm.o -L/usr/lib -lQtGui -lQtCore -lpthread
    BUILD SUCCESSFUL (total time: 2s)

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

    Default Re: Can't run Qt example program

    Quote Originally Posted by kmorgado View Post
    Is there any reason why the EXAMPLE can't run!?!? I'm really hitting my head against the desk here.
    Sure, check your paths. Make sure the program can find all the necessary files and libraries.

  3. #3
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can't run Qt example program

    Quote Originally Posted by tbscope View Post
    Sure, check your paths. Make sure the program can find all the necessary files and libraries.
    How would I go about seeing if it can see all of the file paths. I figured since the program builds that it can see everything fine. All my Qt programs also run in the Qt creator just not netbeans.

Similar Threads

  1. Replies: 1
    Last Post: 30th April 2010, 14:25
  2. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 19:05
  3. a program to start another program.
    By zakis in forum Qt Programming
    Replies: 4
    Last Post: 17th December 2009, 20:25
  4. Replies: 7
    Last Post: 19th January 2008, 16:29
  5. How do I make a program out of my program?
    By Randulf in forum Newbie
    Replies: 1
    Last Post: 29th May 2007, 12:11

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
  •  
Qt is a trademark of The Qt Company.