Hey! I'm trying to compile wownero to make my monero library (and monero wallet) support WOW.
Currently I'm unable do build wallet_api target, it errors out on `v0.11.1.0` and current `master`.
I've managed to compile it with `v0.11.0.1` (I think that wowlet uses the same wallet_api target, and it had this commit checked out as submodule).
steps to reproduce
```plain
$ mkdir build && cd build
$ cmake ..
$ make wallet_api -j$(nproc)
```
Error can be seen in console:
```
wownero/src/wallet/api/wallet.cpp: In member function ‘virtual Monero::PendingTransaction* Monero::WalletImpl::createTransactionMultDest(const std::vector<std::__cxx11::basic_string<char> >&, const std::string&, Monero::optional<std::vector<long unsigned int> >, uint32_t, Monero::PendingTransaction::Priority, uint32_t, std::set<unsigned int>, const std::set<std::__cxx11::basic_string<char> >&)’:
wownero/src/wallet/api/wallet.cpp:1776:118: error: cannot convert ‘std::vector<crypto::key_image>’ to ‘const tools::wallet2::unique_index_container&’ {aka ‘const std::set<unsigned int>&’}
1776 | extra, subaddr_account, subaddr_indices, preferred_input_list);
| ^~~~~~~~~~~~~~~~~~~~
| |
| std::vector<crypto::key_image>
```
I did a fresh build of master, which is commit 589efde6b3d6494645c0264a0a354d039c0f46fe, and everything compiled.
git clone https://git.wownero.com/wownero/wownero.git wowgit --recursive
cd wowgit
cmake -Bbuild .
make -Cbuild -j12
$ ls build/bin
wownerod wownero-wallet-cli wownero-wallet-rpc
I did a fresh build of `master`, which is commit `589efde6b3d6494645c0264a0a354d039c0f46fe`, and everything compiled.
```bash
git clone https://git.wownero.com/wownero/wownero.git wowgit --recursive
cd wowgit
cmake -Bbuild .
make -Cbuild -j12
$ ls build/bin
wownerod wownero-wallet-cli wownero-wallet-rpc
```
I'm not trying to build binaries, I'm trying to build wallet_api target, so the make command from your example would be:
$ make -Cbuild wallet_api -j12
I'm not trying to build binaries, I'm trying to build wallet_api target, so the make command from your example would be:
```bash
$ make -Cbuild wallet_api -j12
```
Hey @dsc, I think that I've found a fix that still keeps the coin control feature enabled (I only know bare basics of CPP so this patch may be entirely wrong, but it fixed the build issues so I wanted to share it):
@mrcyjanek unrelated but I see you are [working on Monero](https://www.mrcyjanek.net/p/xmruw-monero-wallet/), I want to let you know about https://github.com/sanderfoobar/monero-cmake-modern/ which makes it easier to integrate Monero.
Yeah I am ^^, currently working on WOW support as well.
Sadly that repo won't help me much (at least not currently), but I find monero's contrib/depends very helpful when cross-compiling.
Yeah I am ^^, currently working on WOW support as well.
Sadly that repo won't help me much (at least not currently), but I find monero's contrib/depends very helpful when cross-compiling.
Hey! I'm trying to compile wownero to make my monero library (and monero wallet) support WOW.
Currently I'm unable do build wallet_api target, it errors out on
v0.11.1.0
and currentmaster
.I've managed to compile it with
v0.11.0.1
(I think that wowlet uses the same wallet_api target, and it had this commit checked out as submodule).steps to reproduce
Error can be seen in console:
I did a fresh build of
master
, which is commit589efde6b3d6494645c0264a0a354d039c0f46fe
, and everything compiled.I'm not trying to build binaries, I'm trying to build wallet_api target, so the make command from your example would be:
Sorry, I read over that. master seems broken yes, the following fixes it:
Thanks @dsc!
Hey @dsc, I think that I've found a fix that still keeps the coin control feature enabled (I only know bare basics of CPP so this patch may be entirely wrong, but it fixed the build issues so I wanted to share it):
@mrcyjanek unrelated but I see you are working on Monero, I want to let you know about https://github.com/sanderfoobar/monero-cmake-modern/ which makes it easier to integrate Monero.
Yeah I am ^^, currently working on WOW support as well.
Sadly that repo won't help me much (at least not currently), but I find monero's contrib/depends very helpful when cross-compiling.