• Re: mingw

    From Basile Starynkevitch@21:1/5 to All on Fri Nov 8 11:50:02 2024
    This is a multi-part message in MIME format.
    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

    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é,


    Librement

    --
    Basile STARYNKEVITCH<basile@starynkevitch.net>
    8 rue de la Faïenceriehttp://starynkevitch.net/Basile
    92340 Bourg-la-Reinehttps://github.com/bstarynk
    Francehttp://refpersys.org/

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 11/8/24 à 11:34, BERTRAND Joël a
    écrit :<br>
    </div>
    <blockquote type="cite"
    cite="mid:cb8a27a9-1f94-bd4e-3200-473910528718@systella.fr">
    <pre wrap="" class="moz-quote-pre"> 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] &gt; make w64
    x86_64-w64-mingw32-gcc -I. -Icommon/header -c -O2 -g -Werror -Wextra
    -Wall -Wno-stringop-truncation -o main.obj main.c
    <a class="moz-txt-link-freetext" href="main.c:6:10">main.c:6:10</a>: fatal error: readline/readline.h: Aucun fichier ou dossier
    de ce nom
    6 | #include &lt;readline/readline.h&gt;
    | ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [<a class="moz-txt-link-freetext" href="Makefile:41">Makefile:41</a> : main.obj] Erreur 1</pre>
    </blockquote>
    <p><br>
    </p>
    <p>Je n'ai jamais utilisé Windows de ma vie, mais GNU readline (cf <a
    href="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
    class="moz-txt-link-freetext">https://tiswww.cwru.edu/php/chet/readline/rltop.html
    </a>...) est documenté comme étant porté sous Windows et Cygwin<br>
    </p>
    <p>
    <blockquote type="cite">
    If you are running Windows, I recommend that you use
    <a href="http://www.cygwin.com">Cygwin</a>, who currently ship
    <a href="http://www.cygwin.com/packages/summary/libreadline-devel.html">
    readline-8.1</a>
    for x86 and x86_64,
    or, for a version that runs independently of Cygwin, see the
    mingw64-{i686,x86_64}-readline packages.
    </blockquote>
    </p>
    <p>Espérant avoir aidé,</p>
    <p><br>
    </p>
    <p>Librement<br>
    </p>
    <pre class="moz-signature" cols="72">--
    Basile STARYNKEVITCH <a class="moz-txt-link-rfc2396E" href="mailto:basile@starynkevitch.net">&lt;basile@starynkevitch.net&gt;</a>
    8 rue de la Faïencerie <a class="moz-txt-link-freetext" href="http://starynkevitch.net/Basile">http://starynkevitch.net/Basile</a>
    92340 Bourg-la-Reine <a class="moz-txt-link-freetext" href="https://github.com/bstarynk">https://github.com/bstarynk</a>
    France <a class="moz-txt-link-freetext" href="http://refpersys.org/">http://refpersys.org/</a></pre>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?BERTRAND_Jo=c3=abl?=@21:1/5 to All on Fri Nov 8 12:10:01 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1l9uZ02dvcSbfOJ1NY5VZ5yQQYOIVKRk8
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    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


    --1l9uZ02dvcSbfOJ1NY5VZ5yQQYOIVKRk8--

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCZy3wNQAKCRDFW/s/mMLX CCzxAQDmAXc5YO10OEOTkvoW3EmY978sGsgXSxJy5RdceNXlIQEA7dc8RfbqdmP3 IArRoknPJpgWL/7erZrVVNFKY6Bzug4=
    =Q6mp
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?BERTRAND_Jo=c3=abl?=@21:1/5 to All on Fri Nov 8 11:40:01 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --OfiYQmMPyr21QfkpWXhOllpgjuxqrBJ0R
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    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

    J'admets l'erreur. Je n'ai pas trouvé chez Debian de paquet proposant les bibliothèques de base cross-compilées avec mingw. Comment
    faites-vous dans ce cas-là ? Vous les recompilez depuis les sources ?

    Bien cordialement,

    JB


    --OfiYQmMPyr21QfkpWXhOllpgjuxqrBJ0R--

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCZy3pRgAKCRDFW/s/mMLX CKLUAQCz4Z/23oNBEzrw49KtOGjIlWioV3uRTRRyX2RWusxJeAEA+KNBTZFNOdKy EVUXxn77pOOG+SgD01+VI9HgzUt/OAk=
    =t8cU
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)