Results 1 to 12 of 12

Thread: Porting application from Linux to Win32

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Porting application from Linux to Win32

    With my surprise, the compilation of my software developed under linux went well.
    I did
    Qt Code:
    1. qmake
    2. make
    To copy to clipboard, switch view to plain text mode 

    But strangely, few things do not work under windows.
    For example, in my app I have to choose an SQLite databse. In linux all goes fine, I can connect to the database, but in Windows I can't.
    Moreover some icons are missing, although I imported all the "images" folder.
    Somebody have ever had these issues?
    G

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Porting application from Linux to Win32

    Qt can be configured in such a way that it will use system's SQLite. So one of the possible reasons is that it is configured this way but no SQLite is installed on your Windows machine.That's why you cannot connect to your SQLite DB.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting application from Linux to Win32

    So, I don't understamd.
    In Windows, I just installed the qt with mingw bundled inside (from qt wesite).
    What should I do in order to install the sqlite drivers?
    Are not they installed by default?
    Please, if you have some pointers to give me I will appreciate very much.
    g

  4. #4
    Join Date
    Oct 2008
    Posts
    70
    Thanks
    1
    Thanked 9 Times in 9 Posts

    Default Re: Porting application from Linux to Win32

    Quote Originally Posted by giusepped View Post
    So, I don't understamd.
    In Windows, I just installed the qt with mingw bundled inside (from qt wesite).
    What should I do in order to install the sqlite drivers?
    Are not they installed by default?
    Please, if you have some pointers to give me I will appreciate very much.
    g
    Hello!

    1) What sql plugins do you have in QTDIR\plugins\sqldrivers\ folder?
    2) Do you have warning messages on console\output when your application tried to connect to DB? (I mean something like - "driver not loaded", etc)

  5. #5
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Porting application from Linux to Win32

    Suppose you have unpacked qt to QT_HOME directory.
    In $QT_HOME you will find configure.exe. Run
    Qt Code:
    1. configure.exe --help | more
    To copy to clipboard, switch view to plain text mode 
    And look at these options. They should help

    -qt-sql-<driver>
    -plugin-sql-<driver>

    Here is how i install qt:
    1. Run qt installer
    2. cd to QT_HOME
    3. configure <my options>
    4. mingw32-make
    5. mingw32-make install
    6. mingw32-make clean
    I'm a rebel in the S.D.G.

  6. #6
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting application from Linux to Win32

    Thank you.
    I started the compilation and since it takes time I will give some feedbacks tomorrow.
    Anyway, it is very surprising that such very usefful info are difficult to find in Qt docs and Qt books as weel, if I well checked.
    Regards
    Giuseppe

  7. #7
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting application from Linux to Win32

    After hours of compilation, the compiler fires strange errors, expecially in the linking stage.
    On my laptop, it says

    ...qtaccessiblewidgets4.dll Permission denied
    ld returned 1 exit status

    On a Desktop machine, I got surprisingly "no enough resources". Useless to say that the PC has 1Gb of memory and 120Gb of hardisk and no process but the configure itself.
    Any more hint?

  8. #8
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting application from Linux to Win32

    Some hints?
    I re-did the compilation but nothing.
    Strangely, now I can use sql drivers.
    But I am quite disappointed of compilation errors...
    G

  9. #9
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Porting application from Linux to Win32

    That is a good news that sql drivers are available now. As for "resources" problem then it is really strange, i have never come across such error with Qt.
    What options did you specify to configure.exe?
    I'm a rebel in the S.D.G.

  10. #10
    Join Date
    Oct 2008
    Posts
    70
    Thanks
    1
    Thanked 9 Times in 9 Posts

    Default Re: Porting application from Linux to Win32

    Quote Originally Posted by giusepped View Post
    Some hints?
    I re-did the compilation but nothing.
    Strangely, now I can use sql drivers.
    But I am quite disappointed of compilation errors...
    G
    Try to increase Windows swap

  11. #11
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting application from Linux to Win32

    Quote Originally Posted by lyuts View Post
    That is a good news that sql drivers are available now. As for "resources" problem then it is really strange, i have never come across such error with Qt.
    What options did you specify to configure.exe?
    Those ones suggested by you.

  12. #12
    Join Date
    Oct 2008
    Posts
    70
    Thanks
    1
    Thanked 9 Times in 9 Posts

    Default Re: Porting application from Linux to Win32

    2 giusepped: Did you try to increase swap (pagefile.sys) on your Windows machine? It should solve compilation errors.

Similar Threads

  1. Porting Qt application from linux to Windows
    By ankit17.ag in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2009, 21:18
  2. Deploying application on Linux machine without Qt
    By will49 in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 22:41
  3. Font Problem Porting from Windows to Linux
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2007, 10:25
  4. Replies: 2
    Last Post: 12th January 2007, 11:19
  5. Porting Qt application on windows from linux
    By safknw in forum Qt Programming
    Replies: 13
    Last Post: 22nd May 2006, 13: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.