View previous topic :: View next topic |
Author |
Message |
Kernel78 Moderator

Joined: 24 Jun 2005 Posts: 3654
|
Posted: Tue Jun 13, 2006 10:25 am Post subject: [OT] Gentoo -> wine -> cygwin |
|
|
Ciao a tutti, una perplessità al limite della malattia mentale, per lavoro programmo e compilo in C sotto linux (infatti sul portatile aziendale ho installato Gentoo) ma a volte mi tocca un reboot per poter compilare gli stessi sorgenti sotto cygwin (ovviamente sotto winzozz xp).
Secondo voi sarebbe possibile installare wine, al suo interno installare cygwin e poter compilare in questa catena di "emulazioni" ottenendo magari qualcosa di funzionante ?
Spero di non essere troppo OT. _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
 |
Scen Retired Dev


Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Tue Jun 13, 2006 10:38 am Post subject: |
|
|
L'idea per me è fattibile (anche se contorta ), comunque sembrerebbe che anche altri abbiano avuto il tuo stesso pensiero
http://appdb.winehq.org/appview.php?appId=633
 _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
 |
Onip Advocate


Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Tue Jun 13, 2006 10:41 am Post subject: |
|
|
Code: | onip @ Hal9000 ~ $ eix mingw
* dev-libs/wx-xmingw
Available versions: ~2.4.2
Installed: none
Homepage: http://www.wxwidgets.org/
Description: Win32 version of wxWidgets for xmingw cross-compiler
* dev-util/xmingw-binutils
Available versions: 2.15.90.0.2 ~2.15.94.20050118.1
Installed: none
Homepage: http://sources.redhat.com/binutils/
Description: Tools necessary to build Win32 programs
* dev-util/xmingw-gcc
Available versions: 3.4.2 ~3.4.2-r1 ~3.4.4
Installed: none
Homepage: http://www.gnu.org/software/gcc/gcc.html
Description: The GNU Compiler Collection - i386-mingw32msvc-gcc only
* dev-util/xmingw-runtime
Available versions: 3.5 ~3.7
Installed: none
Homepage: http://www.mingw.org
Description: Free Win32 runtime and import library definitions
* dev-util/xmingw-w32api
Available versions: 3.1 ~3.2
Installed: none
Homepage: http://www.mingw.org
Description: Free headers and libraries for the Win32 API
Found 5 matches
|
Forse qualcosa qui in mezzo può esserti utile. Non che io sappia come funzioni però... _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
 |
mamo Tux's lil' helper


Joined: 05 Jan 2006 Posts: 90
|
Posted: Tue Jun 13, 2006 4:51 pm Post subject: |
|
|
credo che la cosa migliore sia quella di creare una macchina virtuale su cui far girare windows
nella sezione (documentazione e tools) trovi una guida su come installare qemu e vmware |
|
Back to top |
|
 |
federico Advocate


Joined: 18 Feb 2003 Posts: 3272 Location: Italy, Milano
|
Posted: Tue Jun 13, 2006 5:05 pm Post subject: |
|
|
Non so rispondere al tuo problema ma mi ha incuriosito, compili sotto cygwin per una controprova? Non capisco esattamente l'utilita' della procedura, ma sicuramente un motivo c'e'
Fede _________________ Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk |
|
Back to top |
|
 |
randomaze Bodhisattva


Joined: 21 Oct 2003 Posts: 9985
|
Posted: Tue Jun 13, 2006 6:15 pm Post subject: |
|
|
federico wrote: | Non so rispondere al tuo problema ma mi ha incuriosito, compili sotto cygwin per una controprova? |
Penso lo faccia perché gli serve una versione eseguibile anche su windows
Comunque la crosscompilazione com mingw mi sembra un argomento interessante . Kernel78 se decidi di seguire questa strada tienici aggiornati  _________________ Ciao da me! |
|
Back to top |
|
 |
federico Advocate


Joined: 18 Feb 2003 Posts: 3272 Location: Italy, Milano
|
Posted: Tue Jun 13, 2006 8:42 pm Post subject: |
|
|
randomaze wrote: |
Penso lo faccia perché gli serve una versione eseguibile anche su windows
|
E non ci sono compilatori nativi? _________________ Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk |
|
Back to top |
|
 |
.:deadhead:. Advocate


Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed Jun 14, 2006 12:49 am Post subject: |
|
|
ma con wine dovrebbe essere possibile utilizzare questi eseguibili:
Code: | wine
wine winecpp wine-kthread wine-preloader
wineboot winedbg winelauncher wine-pthread
winebrowser winedump winemaker wineserver
winebuild winefile winemine wineshelllink
winecfg wineg++ winepath
wineconsole winegcc wineprefixcreate
|
vedendoli così come sono winegcc e wineg++ sembrano tanto dei compilatori. la man di winegcc per esempio cita:
Quote: | NAME
winegcc - Wine C and C++ MinGW Compatible Compiler
SYNOPSIS
winegcc [options] infile...
DESCRIPTION
winegcc is a gcc wrapper which tries to provide a MinGW compatible com-
piler under Linux. This is most useful to Win32 developers who can sim-
ply take their MinGW code from Windows, and recompile it without modi-
fications under Winelib on Linux. wineg++ accepts mostly the same
options as winegcc.
The goal of winegcc is to be able to simply replace gcc/g++/windres
with winegcc/wineg++/wrc in a MinGW Makefile, and just recompile the
application using Winelib under Wine. While typically there are small
adjustments that must be made to the application source code and/or
Makefile, it is quite easy to do them in a fashion that is compatible
between the MinGW and Wine environments.
|
|
|
Back to top |
|
 |
Kernel78 Moderator

Joined: 24 Jun 2005 Posts: 3654
|
Posted: Wed Jun 14, 2006 6:57 am Post subject: |
|
|
Dunque vedo di riepilogare un attimo...
Adesso la compilazione dei programmini C avviene sotto: linux, sco, unixware e windows (ovviamente per windows ci appoggiamo a cygwin) visto che furbamente i commerciali non ritengono opportuno forzare i clienti ad acquistare da noi un'unica architettura e obbligano lo sviluppo su multipiattaforma con salti mortali acrobatici ...
Purtroppo ho scoperto che cygwin ha enormi problemi sotto wine a causa dell'implementazione della fork() e quindi penso sia meglio che mi metta a esplorare altre strade.
Al momento sto già cercando di introdurre molti cambiamenti, tecnologici e metodologici e vediamo se riesco a farli passare da cygwin a mingw, io provo a vedere se ottengo risultati con quest'ultimo ...
Ovviamente vi terrò aggiornati ma se qualcuno avesse idee, suggerimenti e/o esperienze da condividere si faccia avanti  _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
 |
|