#1146 Please add instructions for compiling and cross-compiling use MXE

open
nobody
None
5
2013-03-22
2013-03-22
Wikinaut
No

http://mxe.cc is the M Cross-compiler Environment (former name MinGW).

I wanted to compile 7zip

  • command line version, compiling on Linux, for Linux using gcc

    ./configure
    make

  • command line version, cross-compiling on Linux, for Windows using the mxe-gcc cross compiler

    ./configure --host=i686-pc-mingw32
    make

However, I am lost, because I cannot find make files and instructions.

Please can you

add clear instructions on http://www.7-zip.org/faq.html#developer_faq how to compile

how to do that, how to compile command line versions, this would be very helpful.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2013-03-22

    Now I don't compile with MinGW.
    Maybe later I'll try it.

     
    • Wikinaut

      Wikinaut - 2013-03-22

      I compiled yesterday - it was a wish since 20 years - successfully my AGREP ( see https://github.com/Wikinaut/agrep/blob/master/Makefile ! ) and also GNU sed both for LINUX - which I do since years - and: using MXE, for Windows. Compiling it worked really like a charm, and I am fully impressed of MXE.

      Then I wanted to compile your wonderful 7zip into a Linux binary and also into a single stand-alone exe for Windows (i.e libraries built-in), but could not find instructions neither on your homepage, nor in your sources.

       

Log in to post a comment.