Cross Compiling not directly compiling with installer #10909

issue globaltoken opened this issue on July 22, 2017
  1. globaltoken commented at 12:17 PM on July 22, 2017: none

    Hello,

    How to Cross Compile directly into that Bitcoin setup.exe for Windows? I think with Gitian Building its working, but not with Cross Compiling?

    If I compile I get only single files with .exe but how to compile that they are directly in the setup wizard .exe for windows ?

    Cheers.

  2. jonasschnelli added the label Build system on Jul 24, 2017
  3. jonasschnelli added the label Windows on Jul 24, 2017
  4. jonasschnelli commented at 8:29 AM on July 24, 2017: contributor

    Have you tried make deploy when cross-compiling with MinGW?

  5. globaltoken commented at 6:55 PM on July 24, 2017: none

    Hi,

    No - never tried, I'm building under Ubuntu x64 14.04 LTS I followed these steps:

    cd depends make HOST=i686-w64-mingw32 cd .. ./autogen.sh # not required when building from tarball CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/ make # means directly make deplay or make && make deploy ?

  6. globaltoken commented at 6:55 PM on July 24, 2017: none

    means directly make deplay or make && make deploy ?

  7. jonasschnelli commented at 7:05 PM on July 24, 2017: contributor

    means directly make deplay or make && make deploy ?

    Doesn't really matter. But do make deploy directly.

  8. globaltoken commented at 7:57 PM on July 24, 2017: none

    Okay, I will test it and let you know.

  9. globaltoken commented at 9:17 PM on July 24, 2017: none

    Okay I did it but where are the .exe Files located? Cant find them :(

  10. jonasschnelli commented at 7:17 AM on July 25, 2017: contributor

    They should be on the root level (IIRC). Maybe post the output of your make deploy.

  11. globaltoken commented at 11:48 AM on July 25, 2017: none

    Okay, the thing was if I directly run make deploy, he didn't build the binaries. Just if I make "make" It builds the binaries. So I did make && make deploy and I think you mean with root level the Folder where the Files like makefile.am, autogen.sh and so on are right?

    because i checked and didn't found them, am I missing some dependencies maybe? I installed all which was descripted in build-windows.md

    Cheers.

  12. laanwj closed this on Jul 25, 2017

  13. globaltoken commented at 11:52 AM on July 25, 2017: none

    Why is it closed now ?

  14. jonasschnelli commented at 12:24 PM on July 25, 2017: contributor

    Can you post your make deploy output? Can you add V=1 to make (verbose)?

  15. globaltoken commented at 4:31 PM on July 25, 2017: none

    I receive this:

    Seems that QT is not building and thats why its failed. If I compile without deploy it works ?

    make[2]: Leaving directory /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/src' make[1]: Leaving directory /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/src' Making all in doc/man make[1]: Entering directory /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/doc/man' make[1]: Nothing to be done for all'. make[1]: Leaving directory /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/doc/man' make[1]: Entering directory /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2' make[1]: Nothing to be done for all-am'. make[1]: Leaving directory /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2' /bin/mkdir -p ./release STRIPPROG="/usr/bin/x86_64-w64-mingw32-strip" /bin/bash /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/build-aux/install-sh -c -s ./src/bitcoind.exe ./release STRIPPROG="/usr/bin/x86_64-w64-mingw32-strip" /bin/bash /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/build-aux/install-sh -c -s ./src/qt/bitcoin-qt.exe ./release /home/globaltoken/wallet-compile/Compilers/deploytest/deploytest2/build-aux/install-sh: ./src/qt/bitcoin-qt.exe does not exist. make: *** [bitcoin-1.0.3-win64-setup.exe] Error 1 globaltoken@euve59306:~/wallet-compile/Compilers$

  16. globaltoken commented at 8:38 PM on July 25, 2017: none

    No its not working. Here the last limes from ssh output.txt

  17. eMosbat commented at 2:28 PM on August 22, 2017: none

    I tried cross compilation and got linux executable files instead exe!?

    cd depends make HOST=x86_64-w64-mingw32 cd .. ./autogen.sh CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/ make make install DESTDIR=/myexe

    I see linux files instead exe in /myexe folder

  18. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me