LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2009, 07:27 PM   #1
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

Rep: Reputation: 34
mingw and wine


Has anyone ever wrote linux programs that they want to make cross-platform, and then intalled Wine and installed MinGW and MSYS with Wine and actually compiled with MinGW in Wine and created Windows executables?

I was thinking about trying that but I wonder if anybody could already tell me it's impossible. ...or if there's a smarter way to make windows executables on a Linux machine.
 
Old 09-07-2009, 11:19 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by icecubeflower View Post
Has anyone ever wrote linux programs that they want to make cross-platform, and then intalled Wine and installed MinGW and MSYS with Wine and actually compiled with MinGW in Wine and created Windows executables?

I was thinking about trying that but I wonder if anybody could already tell me it's impossible. ...or if there's a smarter way to make windows executables on a Linux machine.

Yes, I used cross-mingw compilation and linking under Linux, and tested the output executables under 'wine'; I needed a Windows console application; the simplest Windows GUI application was also tested this way.

My point, though, is that the development environment, even though for Windows, was not under 'wine'.
 
Old 09-08-2009, 03:30 PM   #3
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

Original Poster
Rep: Reputation: 34
Oh so you can run a compiler as a LINUX application and it creates Windows executables? That's neat.
 
Old 09-08-2009, 04:12 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I came across (no pun intended) this a while ago, I haven't tried it though:

http://www.sandroid.org/imcross/
 
Old 09-08-2009, 04:35 PM   #5
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by brianL View Post
I came across (no pun intended) this a while ago, I haven't tried it though:

http://www.sandroid.org/imcross/
I used this one: http://www.nongnu.org/mingw-cross-env/#latest-release , though an earlier version. It is apparently more up to date; also, quite easy to build.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MinGW or Cygwin delite Programming 7 05-02-2009 07:39 PM
MinGW problem hai12345 Programming 2 08-19-2008 11:37 PM
Mingw package davidguygc Slackware 2 04-20-2007 09:44 AM
MinGW or Cygwin??? montylee Programming 2 06-14-2006 01:07 AM
WxWindows and MingW Genjix Programming 0 01-01-2005 05:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration