LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 02-27-2010, 11:39 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Build win32 executables in Arch


Hi Forum

I have made a Finite elements package for Linux, it compiles with gcc, it is about 1Mb size, it is a console application that solves structural problems involving beams cables and bars ( trusses ) . Does not need X support, it will read a file <myprob>.dat and return a <myprob>.res.

Nothing too complex really...

This links with library fuctions from arpack, spooles, lapack... that's all.

I wish to know wether i can build an executable for win32 using this same source code in Arch.

I want to give this application i made to a dude that is too "chicken scared" to shift for Linux... I even showed him an Ubuntu LiveDVD, and did not convince him...

How do I make him be a Slacker, or an Archer.... ?

I remember from my Debian ( or was it plain Ubuntu... do not remember exactly ) days there was a thingie called mingw32-gcc that did the job allright ( at least for console applications ) never tried the trick for windowing applications with mingw32.... don't think it is possible anyway...

Well

1.) Does Arch has the mingw32-gcc thingie ?
2.) Does the mingw32-gcc thingie requires 32bits environment, or compatibility libraries... ?


My other choice will be intsll some dev-C compiler in a WinXP box and build the thing there... But from my experience mingw32-gcc compiled libs/execs are way much faster than the same things created in dev-C compiler in W$....


BRGDS

Alex
 
Old 02-27-2010, 11:52 AM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
http://www.archlinux.org/packages/?s...gged=&limit=50

http://aur.archlinux.org/packages.ph...2&do_Search=Go
 
1 members found this post helpful.
Old 02-27-2010, 11:54 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
2 issues all tangled up here---easy one first:
Quote:
I even showed him an Ubuntu LiveDVD, and did not convince him...
How do I make him be a Slacker, or an Archer.... ?
You don't

To compile something to run on Windows, you have to set up an environment with all the right headers and other junk (just as you did on Arch), and then----compile.

I am not a programmer, so you can bet that I've over-simplified it a bit.....
 
1 members found this post helpful.
Old 02-27-2010, 01:37 PM   #4
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi @pixellany, @reed9

Thx

Quote:
...You don't
...guess trying to "drag" someone who thinks ubuntu is "complicated", to Slackware or Arch is "Mission Impossible" huh..!?

BRGDS

Alex

Yu do not take a Muslim to the Vatican to salute the Pope...

Last edited by Alexvader; 02-27-2010 at 01:56 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
First time linux user- getting the internet to work on new build (arch linux/samba??) mothergoose729 Linux - Networking 0 08-27-2008 09:14 PM
build Cinelerra 2.1 for x86_64, bash "arch" command not found? newtovanilla Linux - Newbie 4 07-08-2008 05:28 PM
How to build a C++ portable network application on Win32 and POSIX systems? Bassam Programming 1 05-17-2007 03:43 PM
Loading Win32 Executables. Trygve Programming 3 02-04-2005 07:38 AM
Win32 Console Executables ToothlessRebel Programming 8 09-06-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

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

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