블럭체인 2021. 12. 19. 06:13
반응형

몇몇 분들이 Bitcoin 빌드시에 윈도우 상에서 qt 라이브러리도 포함해서 빌드시 에러에 대해서 문의 하신 분이 있어 제가 작업했던 부분을 공유 드리고자 합니다.

 

[작업내용]

Windows상의 Bitcoin 소스를 빌드하고자 할때, qt 라이브러리는 "static"이어야 합니다.

그래서, https://choiwonwoo.tistory.com/category/MINERVA/C_CPP에 나와 있는 방법으로 qt를 설치하여 사용하면 않됩니다. 그 이유는 "dynamic"이기 때문입니다.

 

[static qt library]

https://bitcoin.forum/t/building-bitcoin-core-with-visual-studio/39

 

Building Bitcoin Core with Visual Studio

Introduction Solution and project files to build the Bitcoin Core applications msbuild or Visual Studio can be found in the build_msvc directory. The build has been tested with Visual Studio 2019 (building with earlier versions of Visual Studio should not

bitcoin.forum

위의 페이지에서 QT에 관련된 부분은 아래와 같습니다. 

'here'로 된 부분을 선택하면,

아래와 같이 직접 qt 라이브러리를 직접 build하여 static library를 얻는 방법에 대해서 설명하고 있습니다.

https://github.com/sipsorcery/qt_win_binary

 

GitHub - sipsorcery/qt_win_binary: This repository contains static builds of Qt for Windows that are compatible with Bitcoin Cor

This repository contains static builds of Qt for Windows that are compatible with Bitcoin Core. - GitHub - sipsorcery/qt_win_binary: This repository contains static builds of Qt for Windows that ar...

github.com

위 방법을 통해서 얻게된 static qt library를 bitcoin build시에 설정해서 하시면 됩니다.

 

감사합니다.

반응형
posted by choiwonwoo
: