Results 1 to 10 of 10

Thread: Building Qt 4.4.3 with GCC 4.3.2 on Windows XP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: Building Qt 4.4.3 with GCC 4.3.2 on Windows XP

    Thank you, Shiyutang. This is a beeg help...the corrections particularly so. Only, it has not been 3 hours, but has now been compiling for more than twelve hours straight with no end in sight (perhaps I don't have as powerful a computer as you).

    Thanks again.

    Shirazk.

  2. #2
    Join Date
    May 2008
    Posts
    7
    Thanked 5 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Building Qt 4.4.3 with GCC 4.3.2 on Windows XP

    My computer is a ThinkPad T61, with a CPU Inter Core 2 Duo T7500, and 2GB memory.

  3. #3
    Join Date
    Jul 2008
    Location
    St. Louis, MO
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Building Qt 4.4.3 with GCC 4.3.2 on Windows XP

    I just wanted to say thanks for a great post. I was able to make the necessary modifications and build qt quite easily. But as another person mentioned is does take some time, so I basically started the build before going to bed, and it was finished in the morning. Anyway, thanks again.

  4. #4
    Join Date
    Jul 2008
    Location
    St. Louis, MO
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Building Qt 4.4.3 with GCC 4.3.2 on Windows XP

    A couple of relatively minor notes to keep in mind, especially for us newbies:

    The primary purpose of this installation process is to update MinGW from gcc version 3.4.5 to gcc 4.3.2, a much more recent compiler but less tested than the "official" 3.4.5 release.

    Purely for convenience, to temporarily keep the 3.4.5 libraries separate from the 4.3.2 libraries that I am now creating, I moved the source for Qt to a different directory than where I originally installed Qt when I used the installation program noted in this post.

    If you do put the source in another location as I did, it will impact a number of items:
    a) the environment variables used by the configure program have to be changed. These are "Lib" and "Include", and they were defined by the setup program to point to the original location for the source.
    b) using the command prompt in the menus for the original Qt installation (menu "All Programs", "Qt by Nokia", "Qt Command Prompt") executes the qtvars.bat program that was generated by the installation program. Qtvars will define variables that point to the original folders for Qt, not the modified location I used afterwards.

    I chose a quick and dirty way to address this, although I'm sure there are many other ways :
    a) I redefined the environment variables to point to the new location of the source
    b) I did not use the command prompt provided by the Qt menu. Instead, I opened a normal command prompt and changed the directory to the new location of the source.
    c) After this was done I then executed the configure and minGW-make commands suggested by this post.

    In the future, after I verify that the gcc 4.3.2 compilation does what I need it to do, then I may reinstall Qt to my location of choice and afterwords overwrite library files with those compiled using the gcc 4.3.2 compiler noted here.

    One more small gotcha - when I cut and paste the external "C" code that corrects a Qt bug, the parentheses around the C character come up as weird characters and the compile fails. So if you see strange compiler errors, this may be the problem. Simply edit this class using a text editor and replace these weird characters that enclose the C with proper " symbols. When I did this everything worked great.

    Hope this helps for us newbies.

  5. The following user says thank you to gjshannon for this useful post:

    yuniarto.rahardjo (24th November 2008)

  6. #5
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Building Qt 4.4.3 with GCC 4.3.2 on Windows XP

    If you do put the source in another location as I did, it will impact a number of items:
    You can solve this problem by using symbolic links to folders.
    The idea is to have one "main" folder (c:\qt\qt) which is in fact a symbolic link to the version of qt you're using at the moment (c:\qt\qt-4.5.2-gcc3, c:\qt\qt-4.5.2-gcc4, c:\qt\qt-4.5.2-vc...).
    To be able to quickly change current version of qt you can create a series of batch files using junction tool from M$

    Each batch file consists only from one line
    junction c:\qt\qt c:\qt\qt-[some version]

    You can also use this approach when you have more than one mingw version to be able to switch among them easily.

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.