[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mingw



Basile Starynkevitch a écrit :
> 
> Le 11/8/24 à 11:34, BERTRAND Joël a écrit :
>> 	Bonjour à tous,
>>
>> 	En attendant de réussir à réutiliser ma VM Windows 10, j'ai besoin de
>> compiler un utilitaire (un truc que j'ai écrit moi-même en C) pour qu'il
>> puisse s'exécuter sous Windows.
>>
>> 	J'ai donc installé mingw. Problème, mon outil est lié avec readline et
>> la compilation échoue avec :
>>
>> hilbert:[~/cvs/sonde_renard] > make w64
>> x86_64-w64-mingw32-gcc -I. -Icommon/header -c -O2 -g -Werror -Wextra
>> -Wall -Wno-stringop-truncation -o main.obj main.c
>> main.c:6:10: fatal error: readline/readline.h: Aucun fichier ou dossier
>> de ce nom
>>     6 | #include <readline/readline.h>
>>       |          ^~~~~~~~~~~~~~~~~~~~~
>> compilation terminated.
>> make: *** [Makefile:41 : main.obj] Erreur 1
> 
> 
> Je n'ai jamais utilisé Windows de ma vie, mais GNU readline (cf
> https://tiswww.cwru.edu/php/chet/readline/rltop.html ...) est documenté
> comme étant porté sous Windows et Cygwin

	Certes.

>> If you are running Windows, I recommend that you use Cygwin
>> <http://www.cygwin.com>, who currently ship readline-8.1
>> <http://www.cygwin.com/packages/summary/libreadline-devel.html> for
>> x86 and x86_64, or, for a version that runs independently of Cygwin,
>> see the mingw64-{i686,x86_64}-readline packages. 
> 
> Espérant avoir aidé,

	Un exécutable Cygwin sauf si cela a changé récemment n'est pas
directement un exécutable Windows. Ma question porte sur une version
cross-compilé de readline pour cross-compiler un soft en mode texte sous
Debian et pouvoir l'utiliser sous Windows.

	JB

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: