Results 1 to 5 of 5

Thread: .o file (Windows)

  1. #1
    Join Date
    Oct 2009
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default .o file (Windows)

    Hi,

    I am so new to Qt world. I run Qt Creator to compile the code as follows. It turns out with test.exe and test.o files. I then bring test.o file to a linux-based machine. It shows the error, "cannot execute binary file.

    For my understanding, it is possible to develop on Windows, then execute on Linux. I was wondering if I am right. Please kindly correct me! Thank you in advance!

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: .o file (Windows)

    Quote Originally Posted by ehsu View Post
    For my understanding, it is possible to develop on Windows, then execute on Linux.
    No you cant do that.

  3. #3
    Join Date
    Oct 2009
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: .o file (Windows)

    Hi yogeshgokul,

    What's the difference between Qt windows and Qt Linux? Thank You!!

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: .o file (Windows)

    What do want actually ?

  5. #5
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: .o file (Windows)

    Quote Originally Posted by ehsu View Post
    Hi,

    I am so new to Qt world. I run Qt Creator to compile the code as follows. It turns out with test.exe and test.o files. I then bring test.o file to a linux-based machine. It shows the error, "cannot execute binary file.

    For my understanding, it is possible to develop on Windows, then execute on Linux. I was wondering if I am right. Please kindly correct me! Thank you in advance!
    When you sit on Platform A and want to compile for Platform B you need a "cross compiler". I know that gcc can handle A == Linux and B == Windows, but I have not seen the opposite direction so far.

Similar Threads

  1. Replies: 5
    Last Post: 5th August 2009, 18:32
  2. Replies: 2
    Last Post: 27th October 2007, 19:16
  3. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 19:10
  4. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 02:00
  5. QProcess problem with windows batch file
    By bood in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2006, 09:08

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.