Results 1 to 10 of 10

Thread: Porting qt 4.1 example in window mingw

  1. #1
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Porting qt 4.1 example in window mingw

    Hi All,

    I have a qt 4.1 example. Compiling properly in linux. I want to complie it in windows mingw environment. I am facing some problem while compiling. Makefile created by qmake is not compiling. Makefile contains all windows command instead of linux commands. Mingw expecting linux commands.

    Expecting a quick response from u all.

    Thanks
    Jnana
    Last edited by jnana; 28th November 2006 at 12:05. Reason: updated contents

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Porting qt 4.1 example in window mingw

    Could you post the exact commands you have run and the full error message. Also, which exact version of Qt/Win have you installed?
    J-P Nurmi

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

    Default Re: Porting qt 4.1 example in window mingw

    Do you happen to use MSYS?

  4. #4
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Porting qt 4.1 example in window mingw

    Even when I am tring to do mingw32-make on qt directory after configuration, I am getting compilation error. The problem is backward slash "\". Mingw expecting "/" for directory path.

    I downloaded qt4.1.4 exe file for mingw version.

    run exe file
    configure -statis -debug -platform win32-g++
    mingw32-make

    "mingw32-make" giving error for windows commands in make file like "\" instead of "/".

    Waiting for ur reply

    Thanks
    Jnana

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

    Default Re: Porting qt 4.1 example in window mingw

    Quote Originally Posted by jnana View Post
    Waiting for ur reply
    First, please, answer my question. Do you use MSYS? If yes, then use "Qt Command Prompt" (i.e. cmd.exe) instead. You can find a link in Start menu.

  6. #6
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Porting qt 4.1 example in window mingw

    Hi,

    Yeah, I am using MSYS. I executed the exe file of qt 4.1 mingw one. I got one window for installing. After istallation, what should I do? Whether to use executables in bin dir or to configure and make the source code. If I am using qmake form bin directory, it is creating window style make file. However, mingw is expecting linux environment make file. Even if I am tring to compile the qt source code, it is also giving error as the makfiles are in window environment.

    The way I am compiling qt source code is as follows
    configure -static -debug -platform win32-g++
    mingw32-make

    If I am doing anything wrong, please guide me.

    Waiting for ur reply.

    Thanks
    Jnana

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

    Default Re: Porting qt 4.1 example in window mingw

    Quote Originally Posted by jnana View Post
    Yeah, I am using MSYS. [...] If I am doing anything wrong, please guide me.
    I've already wrote what you should do --- stop using MSYS and use "Qt command prompt" (Start -> Applications > Qt by Trolltech ... > Qt 4.x.x Command Prompt).

  8. #8
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting qt 4.1 example in window mingw

    Quote Originally Posted by jacek View Post
    I've already wrote what you should do --- stop using MSYS and use "Qt command prompt" (Start -> Applications > Qt by Trolltech ... > Qt 4.x.x Command Prompt).
    But what if one wants to use msys?
    I cannot use the qt command prompt because it does not have the command of a unix shell, that's why one wants to use msys...
    isn't it possible to do so?

  9. #9
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Porting qt 4.1 example in window mingw

    See: Qt/MSYS.
    J-P Nurmi

  10. #10
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting qt 4.1 example in window mingw

    Quote Originally Posted by jpn View Post
    See: Qt/MSYS.
    but this means that the whole qt library should be recompiled under msys with mingw, right?

Similar Threads

  1. Replies: 3
    Last Post: 23rd July 2006, 18:02
  2. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 18:22
  3. Problem in porting Main window on linux
    By jyoti kumar in forum Qt Tools
    Replies: 2
    Last Post: 2nd June 2006, 08:35
  4. Where do I get MinGW 3.2 ?
    By Shwetha in forum Newbie
    Replies: 19
    Last Post: 3rd April 2006, 22:36
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

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.