wallet-core-python icon indicating copy to clipboard operation
wallet-core-python copied to clipboard

python3 setup.py build issue

Open fangzheli opened this issue 3 years ago • 5 comments

Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2021.2.2\plugins\python\helpers\pydev\pydevd.py", line 1483, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm 2021.2.2\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/Users/fangz/wallet-core-python/setup.py", line 34, in for line in open(os.path.join(WALLET_CORE_BUILD, 'CMakeCache.txt')): FileNotFoundError: [Errno 2] No such file or directory: 'wallet-core\build\CMakeCache.txt'

fangzheli avatar Jul 06 '22 22:07 fangzheli

This file is available in docker image of wallet-core. But not available in wallet-core folder in this repo. Hope get some help on it.

fangzheli avatar Jul 06 '22 22:07 fangzheli

Did you follow step at https://github.com/phuang/wallet-core-python#readme ?

phuang avatar Jul 06 '22 23:07 phuang

@fangzheli i know whats your problem.

please follow this : https://developer.trustwallet.com/wallet-core/developing-the-library/building

you need to download everything needed depends on the OS, cant find windows OS there but I can find this repo https://github.com/kaetemi/wallet-core-windows

Idan-Shperling avatar Jul 07 '22 11:07 Idan-Shperling

Did you follow step at https://github.com/phuang/wallet-core-python#readme ? Thank you so much for your reply. I have tried to build it in git bash and get the following error message.

Initializing...

PREFIX: /c/Users/fangz/OneDrive/Desktop/IntelligentX/wallet-core-python/wallet-core/build/local Downloading gtest... Downloading libcheck... Downloading nolhmann_json... Downloading protobuf... done. -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/fangz/OneDrive/Desktop/IntelligentX/wallet-core-python/wallet-core/build/local/src/gtest/googletest-release-1.11.0 make: *** No targets specified and no makefile found. Stop.

I don't see there is any makefile in this wallet-core folder. When "make -Cbuild -j12 tests TrezorCryptoTests" is executed. An alterative solution I am thinking is git clone your repo in the docker that I already have wallet-core built and substitute the wallet-core in this repo by the wallet-core I have already built, do you think that make any sense? Thanks for your time.

fangzheli avatar Jul 07 '22 17:07 fangzheli

@fangzheli i know whats your problem.

please follow this : https://developer.trustwallet.com/wallet-core/developing-the-library/building

you need to download everything needed depends on the OS, cant find windows OS there but I can find this repo https://github.com/kaetemi/wallet-core-windows

Thanks. Will check it out.

fangzheli avatar Jul 07 '22 17:07 fangzheli