LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 03-08-2007, 02:55 PM   #1
Siiiiiii
LQ Newbie
 
Registered: May 2006
Location: Sweden
Distribution: Vector Linux
Posts: 28

Rep: Reputation: 15
Cross compiling to Windows binary, including Linux shared libraries


Hi!
I am looking for a cross compilation program for (as the title of this thread says) making a Windows binary. The source code is written using Linux-only shared libraries, so I would like it to be able to compile these into .dll-files.
I have heard of both Cygwin and MinGW. However, I cannot find the source packages for those two. Well, I did find it for MinGW, but the configure scripts contained strange Windows-textfile characters, so it would not install. I reckon it was meant for a Windows compilation. The packages I downloaded were:

Code:
gcc-g++-3.4.2-20040916-1-src.tar.gz  
mingw-runtime-3.9-src.tar.gz
w32api-3.6-src.tar.gz
binutils-2.15.91-20040904-1-src.tar.gz  mingw32-make-3.80.0-3-src.tar.bz2
Am I using the wrong packages?
Where can I find the Linux MinGW or Cygwin compilers?
What alternative alternative compilers are there that I can use for this purpose?
 
Old 03-08-2007, 03:31 PM   #2
Siiiiiii
LQ Newbie
 
Registered: May 2006
Location: Sweden
Distribution: Vector Linux
Posts: 28

Original Poster
Rep: Reputation: 15
I found a solution myself.
If anyone is interested, here's a HOWTO: http://www.mingw.org/MinGWiki/index....%20for%20Linux
 
Old 03-09-2007, 12:36 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,724

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
I have sources and build scripts for mingw32 here:
http://distro.ibiblio.org/pub/linux/...Compile/MingW/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cross-compiling windows console apps on linux nathan10177 Programming 2 10-28-2005 08:40 PM
cross compiling a shared library baba_gorakhnath Linux - Laptop and Netbook 0 03-10-2005 11:02 PM
compiling with shared and static libraries jinksys Programming 1 11-22-2003 04:54 AM
linux init error in loading shared shared libraries akaran Linux - Software 1 05-28-2003 04:40 AM
Cross compiling - Windows Xp -> Linux groston Programming 1 05-31-2002 03:19 AM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration