LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Build win32 executables in Arch (https://www.linuxquestions.org/questions/arch-29/build-win32-executables-in-arch-791981/)

Alexvader 02-27-2010 11:39 AM

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.... ? :D

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

reed9 02-27-2010 11:52 AM

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

http://aur.archlinux.org/packages.ph...2&do_Search=Go

pixellany 02-27-2010 11:54 AM

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.....;)

Alexvader 02-27-2010 01:37 PM

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..!? :D

BRGDS

Alex

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


All times are GMT -5. The time now is 02:55 PM.