Results 1 to 20 of 30

Thread: Qt4 -vs6-w2k

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 -vs6-w2k

    MinGW installed in "c:\mingw". I put an entry in the autoexec.bat to include it in the path. But whats confusing me is the error states that g++ is not recognized as a command. See below:
    What can I do to check that?


    Qt" -I"debug" -I"." -I"..\..\..\Qt\4.2.1\mkspecs\win32-g++" -o debug\main.o main
    .cpp
    'g++' is not recognized as an internal or external command,

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Qt4 -vs6-w2k

    Quote Originally Posted by dKoder View Post
    What can I do to check that?
    Check whether you have g++.exe in C:\MinGW\bin.

  3. #3
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 -vs6-w2k

    No sir. G++.exe is not there. I check the MinGW site and I didn't see anything that looked like a winders version.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Qt4 -vs6-w2k

    Quote Originally Posted by dKoder View Post
    No sir. G++.exe is not there.
    What about mingw32-g++.exe? Which file did you download and install from MinGW site?

  5. #5
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 -vs6-w2k

    This one mingw32-make-3.80.0-3.exe.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Qt4 -vs6-w2k

    Quote Originally Posted by dKoder View Post
    This one mingw32-make-3.80.0-3.exe.
    That explains everything. This file contains only the make program, not the whole toolchain.

    Try this: http://prdownloads.sourceforge.net/m...inGW-4.1.1.exe

  7. #7
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 -vs6-w2k

    Well... I installed the right minGW file, corrected the path in the Autoexec.bat file, and I still have the same problem.

    C:\Qt\4.2.1>mingw32-make
    mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory `C:/Qt/4.2.1'
    g++ -c -g -g -Wall -frtti -fexceptions -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
    -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.1/
    include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtGui" -I"
    C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.1/include/Active
    Qt" -I"tmp\moc\debug_shared" -I"c:\qt\projects\helloWorld" -I"." -I"mkspecs\win3
    2-g++" -o tmp\obj\debug_shared\main.o c:\qt\projects\helloWorld\main.cpp
    'g++' is not recognized as an internal or external command,
    operable program or batch file.
    mingw32-make[1]: *** [tmp\obj\debug_shared\main.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.1'
    mingw32-make: *** [debug-all] Error 2

    The error states that g++ is not recognized... Do I need to rebuild the debug libraries?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Qt4 -vs6-w2k

    Quote Originally Posted by dKoder View Post
    I installed the right minGW file
    Where did you install it? Did it install g++.exe there?

    Quote Originally Posted by dKoder View Post
    Do I need to rebuild the debug libraries?
    Start from installing the compiler.

  9. #9
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 -vs6-w2k

    Here we go again...

    I uninstalled QT and minGW and then reinstalled the Windows OpenSource version of QT. Then I ran the (Build Debug Libraries) which produced the follow:

    Qt is now configured for building. Just run mingw32-make.
    To reconfigure, run mingw32-make clean and configure.

    (cd winmain && mingw32-make -f Makefile debug)
    mingw32-make[1]: Entering directory `C:/Qt/4.2.1/src/winmain'
    mingw32-make -f Makefile.Debug
    mingw32-make[2]: Entering directory `C:/Qt/4.2.1/src/winmain'
    g++ -c -g -g -Wall -frtti -fexceptions -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEF
    ILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT
    3_SUPPORT -DQT_MOC_COMPAT -I"C:/Qt/4.2.1/include" -I"tmp" -I"C:/Qt/4.2.1/include
    /QtCore" -I"c:\Qt\4.2.1\include\qtmain" -I"tmp" -I"C:/Qt/4.2.1/include/ActiveQt"
    -I"tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\win32-g++" -o tmp\obj\debug_sha
    red\qtmain_win.o qtmain_win.cpp
    ar -ru "..\..\lib\libqtmaind.a" tmp\obj\debug_shared\qtmain_win.o
    mingw32-make[2]: Leaving directory `C:/Qt/4.2.1/src/winmain'
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/src/winmain'
    (cd tools/moc && mingw32-make -f Makefile first)
    mingw32-make[1]: Makefile: No such file or directory
    mingw32-make[1]: *** No rule to make target `Makefile'. Stop.
    mingw32-make[1]: Entering directory `C:/Qt/4.2.1/src/tools'
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/src/tools'
    mingw32-make: *** [debug-tools/moc] Error 2
    C:\Qt\4.2.1\src>

    What is moc? Do I need to install the as well?

    Frustrated to no end!

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Qt4 -vs6-w2k

    Quote Originally Posted by dKoder View Post
    I uninstalled QT and minGW and then reinstalled the Windows OpenSource version of QT. Then I ran the (Build Debug Libraries) which produced the follow:
    I've just installed Qt 4.2.1 Open Source and ran "Build Debug Libraries". It looks like everything works OK on my system, so there must be something on your system that blocks the build. Maybe you have run out of free disk space?

    You can always recompile Qt using the configure utility.

    Quote Originally Posted by dKoder View Post
    What is moc? Do I need to install the as well?
    No, moc (meta-object compiler) is an utility that comes with Qt.

  11. #11
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Re: Qt4 -vs6-w2k

    So what are my options now?

    It's late in the game do I punt or pass?

  12. #12
    Join Date
    Nov 2006
    Posts
    15
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 -vs6-w2k

    Well I deleted QT & minWG and reinstalled everything. I ran configure (contents of configure.cache are as follows)

    -platform
    win32-g++
    -debug-and-release
    -plugin-sql-mysql
    -plugin-sql-psql
    -plugin-sql-sqlite
    -no-qt3support
    -qt-style-windows
    -saveconfig

    Then I ran the (Build Debug Libraries). After 30-45 minutes or so I'm greated with the folowing errors.

    mingw32-make[5]: Entering directory `C:/Qt/4.2.1/src/plugins/sqldrivers/psql'
    g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_
    CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_COR
    E_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/
    QtCore" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2
    .1/include" -I"C:/Qt/4.2.1/include/ActiveQt" -I"tmp\moc\debug_shared" -I"." -I".
    .\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
    ----------------------
    HAD TO REMOVE SEVERAL LINES BECAUSE IT EXCEED THE CHARTER LIMIT FOR THE POST.
    ----------------------
    mingw32-make[5]: *** [tmp\obj\debug_shared\qsql_psql.o] Error 1
    mingw32-make[5]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers/psql'
    mingw32-make[4]: *** [debug-all] Error 2
    mingw32-make[4]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers/psql'
    mingw32-make[3]: *** [sub-psql-make_default] Error 2
    mingw32-make[3]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers'
    mingw32-make[2]: *** [sub-sqldrivers-make_default] Error 2
    mingw32-make[2]: Leaving directory `C:/Qt/4.2.1/src/plugins'
    mingw32-make[1]: *** [sub-plugins-make_default] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/src'
    mingw32-make: *** [sub-src-make_default-ordered] Error 2

    I have a Linux server with both MySQL & Postgres running. I use them both daily, almost, and I have a copy of sqlite on my local machine. During the install the only database QT finds is sqlite and therefore it only builds driver for that database. The first question that comes to mind is why in the sam hill should QT can one way or another whether it can find databases before it will build the drivers? That makes absolutely no sense to me! Anyway, I change to the src/plugins/sqldrivers directory and attempt to build the MySql driver and I get the following errors:

    C:\Qt\4.2.1\src\plugins\sqldrivers\mysql>mingw32-make
    mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory `C:/Qt/4.2.1/src/plugins/sqldrivers/mysql'
    g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_
    CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_COR
    E_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/
    QtCore" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2
    .1/include" -I"C:/Qt/4.2.1/include/ActiveQt" -I"tmp\moc\debug_shared" -I"." -I".
    .\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
    In file included from main.cpp:26:
    ../../../sql/drivers/mysql/qsql_mysql.h:34:19: mysql.h: No such file or director
    y
    In file included from main.cpp:26:
    ../../../sql/drivers/mysql/qsql_mysql.h:85: error: expected `)' before '*' token

    mingw32-make[1]: *** [tmp\obj\debug_shared\main.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers/mysql'
    mingw32-make: *** [debug-all] Error 2

    Then I try the postgres driver and I get a similar lenghty error.

    I have been trying to get QT to install since last Friday and I don't feel I'm any better off that when I started. Will someone show some conpasion and just shoot me?

  13. #13
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    55
    Thanked 12 Times in 11 Posts

    Default Re: Qt4 -vs6-w2k

    Take a timeout! What are your other options? java? wxWidgets?

    If you can spare it, and have experience with Visual Studio, get the commercial edition of Qt w/ the VS integration, it'll be wayyyy easier to use.
    Software Engineer



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.