Compiling Error: qt/test/test_main.cpp #10836

issue globaltoken openend this issue on July 15, 2017
  1. globaltoken commented at 7:19 pm on July 15, 2017: none

    Hey,

    When I’m compining under Linux Ubuntu 14.04 64 bit it crashes at this Step:

    cd depends // works make HOST=i686-w64-mingw32 // works cd .. // works ./autogen.sh # not required when building from tarball // works CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/ // works make // failed

    I followed these Instructions:

    https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md

    I used the Current Master Version.

    After maybe 30 minutes, it stops compiling with this Error:

    Removed plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. GEN qt/locale/bitcoin_uk.qm GEN qt/locale/bitcoin_ur_PK.qm GEN qt/locale/bitcoin_uz@Cyrl.qm GEN qt/locale/bitcoin_vi.qm GEN qt/locale/bitcoin_vi_VN.qm GEN qt/locale/bitcoin_zh_CN.qm GEN qt/locale/bitcoin_zh_HK.qm GEN qt/locale/bitcoin_zh.qm GEN qt/locale/bitcoin_zh_TW.qm GEN qt/qrc_bitcoin_locale.cpp CXX qt/qt_libbitcoinqt_a-qrc_bitcoin_locale.o AR qt/libbitcoinqt.a OBJCXXLD qt/bitcoin-qt.exe CXX qt/test/qt_test_test_bitcoin_qt-compattests.o CXX qt/test/qt_test_test_bitcoin_qt-rpcnestedtests.o CXX qt/test/qt_test_test_bitcoin_qt-test_main.o qt/test/test_main.cpp: In function ‘int main(int, char**)’: qt/test/test_main.cpp:62:43: error: ‘setenv’ was not declared in this scope setenv(“QT_QPA_PLATFORM”, “minimal”, 0); ^ make[2]: *** [qt/test/qt_test_test_bitcoin_qt-test_main.o] Error 1 make[2]: Leaving directory /home/globaltoken/wallet-compile/bitcoin/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /home/globaltoken/wallet-compile/bitcoin/src’ make: *** [all-recursive] Error 1

    What am I missing ?

    Kind Regards.

  2. ReneNyffenegger commented at 6:22 pm on July 16, 2017: contributor
    You seem to follow the building instructions for Windows. I was able to compile Bitcoin Core on Ubuntu following these steps: https://gist.github.com/kostaz/19729e6d53adc5d1606c
  3. globaltoken commented at 11:26 am on July 17, 2017: none
    Yeah that was right, I want to Compile Windows Wallets not Linux Wallets. And Windows Wallet Compiling failed with this Error.
  4. laanwj added the label Windows on Jul 17, 2017
  5. huobur commented at 6:14 am on July 21, 2017: none

    In ../bitcoin/src/qt/test/test_main.cpp:

    setenv() is not compatible in Windows

    if you replace it with: //setenv(“QT_QPA_PLATFORM”, “minimal”, 0); _putenv_s(“QT_QPA_PLATFORM”, “minimal”);

    it should build.

    Note: the code above is not portable, but will get your Windows build going.

  6. laanwj closed this on Jul 26, 2017

  7. laanwj referenced this in commit f29d5dbd04 on Jul 26, 2017
  8. mempko referenced this in commit c1e291a6ac on Sep 28, 2017
  9. PastaPastaPasta referenced this in commit 59ee64c6a8 on May 6, 2019
  10. PastaPastaPasta referenced this in commit fc1b3772d5 on May 6, 2019
  11. barrystyle referenced this in commit fbc438d1c4 on Jan 22, 2020
  12. 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: 2024-11-23 00:12 UTC

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