edwardstock / bip3x

Bip39 mnemonic C++ implementation. Contains java and C bindings.
MIT License
19 stars 13 forks source link

can't install on windows (even w/ -DENABLE_CONAN=OFF) #3

Closed Phildo closed 3 years ago

Phildo commented 3 years ago

The commands I'm running are:

git clone git@github.com:edwardstock/bip3x
cd bip3x
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_CONAN=OFF -DCMAKE_INSTALL_PREFIX="C:\Users\phild\projects\bipinst" 

and I'm getting

CMake Error at modules/ConanInit.cmake:1 (find_program):                                                                                                                      Could not find CONAN_BIN using the following names: conan 

as a result.

(This probably isn't helpful, but some additional info: Just on a whim, I went in and commented out #find_program(CONAN_BIN conan REQUIRED) in modules\ConanInit.cmake, and now I'm getting an error that FindToolbox.cmake isn't found.)

edwardstock commented 3 years ago

Hi @Phildo ! Yep, it was my mistake, i've fixed finding conan if it disabled. Also, i don't use anymore submodules as dependencies (only gtest left), as it leads to incosistence in recursive dependencies. So, to build bip3x manually, you should build toolbox manually too.

How to build toolbox:

Now to build bip3x you need to pass -DToolbox_ROOT=C:/libs/toolbox while configuring project