Results 1 to 15 of 15

Thread: How to set QMAKESPEC ??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Dec 2006
    Posts
    103
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to set QMAKESPEC ??

    now qmake is working but when i give "make" i get the following error fot the "t1" tutorial given with Qt
    [root@localhost t1]# qmake -project
    [root@localhost t1]# qmake
    [root@localhost t1]# make
    make: Nothing to be done for `first'.
    [root@localhost t1]#
    can you tel me whts 'first' as the code in .cpp is
    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3. int main(int argc, char *argv[])
    4. { QApplication app(argc, argv);
    5. QPushButton hello("Hello world!");
    6. hello.resize(100, 30);
    7. hello.show();
    8. return app.exec(); }
    To copy to clipboard, switch view to plain text mode 

    when i m deleting the "first: all" fm in between the makefile then its successfully executing n getting as follows
    [root@localhost t1]# make
    g++ -c -pipe -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SO URCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/lin ux-g++ -I. -I../../../include/QtCore -I../../../include/QtCore -I../../../includ e/QtGui -I../../../include/QtGui -I../../../include -I. -I.moc/release-shared -I .uic/release-shared -o .obj/release-shared/main.o main.cpp
    g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.2.2/lib -Wl,-rpath,/usr/local/Trolltech /Qt-4.2.2/lib -o t1 .obj/release-shared/main.o -L/root/qt-x11-opensource-src- 4.2.2/lib -lQtGui -L/root/qt-x11-opensource-src-4.2.2/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXe xt -lX11 -lQtCore -lz -lm -lglib-2.0 -ldl -lpthread
    (test -z "" || cd "" ; targ=`basename t1`; objcopy --only-keep-debug "$targ" "$t arg.debug" && objcopy --strip-debug "$targ" && objcopy --add-gnu-debuglink="$tar g.debug" "$targ" && chmod -x "$targ.debug" ) ;
    [root@localhost t1]#
    but the "t1" and "t1.debug" generated are of executable type but not getting executed.
    Last edited by Shuchi Agrawal; 13th March 2007 at 11:26.
    I worked on windows Xp with Qt 4.2.2(Open Source Version) and MinGw
    now i am trying the same things on Fedora Core 5 (linux-gcc) and Qt 4.2.2 open source edition.

Similar Threads

  1. QMAKESPEC has not been set, so configuration cannot be deduced
    By Rekha in forum Installation and Deployment
    Replies: 11
    Last Post: 6th November 2012, 18:48
  2. what is this QMAKESPEC and hw to set it?
    By neomax in forum Qt Programming
    Replies: 2
    Last Post: 13th March 2007, 07:04

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.