Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: vanshtah on September 16, 2019, 03:44:21 AM



Title: Build .exe for my new altcoin
Post by: vanshtah on September 16, 2019, 03:44:21 AM
I have forked litecoin0.15

https://github.com/vanshtah/Arc-Iris

Wallet is compling and its is working good in linux but after following all the instructions given in doc for building it for windows
i didn't get .exe file

i am building the files in ubuntu 16.04

can someone help?


Title: Re: Build .exe for my new altcoin
Post by: HeistToken on September 16, 2019, 03:58:14 AM
Have you installed Mingw-w64?


Title: Re: Build .exe for my new altcoin
Post by: vanshtah on September 16, 2019, 04:11:08 AM
Have you installed Mingw-w64?


Yes i did by following command
sudo apt install g++-mingw-w64-x86-64


Title: Re: Build .exe for my new altcoin
Post by: Heisenberg_Hunter on September 16, 2019, 05:38:13 AM
As you are building a new altcoin based on litecoin, your topic belongs to Altcoin Discussion. The OP itself is pretty much confusing  ???

You seem to be building the wallet in ubuntu and expecting a .exe file? .exe file is a windows extension and they cannot be used in Linux subsystem. Are you compiling and building the wallet in Linux or doing a Windows cross-compiling using a WSL to run Ubuntu on Windows? There are 2 possibilities to proceed with :

If you are building the wallet in Linux OS :

The executable will be present in /usr/local/bin and you need to type sudo make install in the terminal to install the wallet. Further, when you type litecoin-qt the wallet will run.

If you are building the wallet in WSL Ubuntu :

The same process continues and you can run the wallet using the above query in terminal. But if you need a .exe file, type ./configure --prefix='pwd'/depends/x86_64-w64-mingw32 This command will provide .exe file which will be present in litecoin/src/qt.


Title: Re: Build .exe for my new altcoin
Post by: mocacinno on September 16, 2019, 05:50:34 AM
In the past, i've succesfully compiled my own litecoin wallet for both linux and windows by doing a gitian build on linux... Pretty straight foreward, just follow the walktrough

https://github.com/litecoin-project/litecoin/blob/master/doc/gitian-building.md
now points to
https://github.com/bitcoin-core/docs/blob/master/gitian-building.md


Title: Re: Build .exe for my new altcoin
Post by: vanshtah on September 16, 2019, 05:58:12 AM
okay i tried the steps now i am stuck here

Code:
Making all in src
make[1]: Entering directory '/usr/src/arciris/src'
make[2]: Entering directory '/usr/src/arciris/src'
make[3]: Entering directory '/usr/src/arciris'
make[3]: Leaving directory '/usr/src/arciris'
make[3]: Entering directory '/usr/src/arciris/src/secp256k1'
make[3]: Leaving directory '/usr/src/arciris/src/secp256k1'
  GEN      qt/res/bitcoin-qt-res.o
/usr/bin/x86_64-w64-mingw32-windres: ./qt/res/icons/bitcoin.ico: read of 1128 returned 1127
/usr/bin/x86_64-w64-mingw32-windres: preprocessing failed.
Makefile:9855: recipe for target 'qt/res/bitcoin-qt-res.o' failed
make[2]: *** [qt/res/bitcoin-qt-res.o] Error 1
make[2]: Leaving directory '/usr/src/arciris/src'
Makefile:9323: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/arciris/src'
Makefile:747: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


Title: Re: Build .exe for my new altcoin
Post by: vanshtah on September 16, 2019, 11:40:54 AM
okay i tried the steps now i am stuck here

Code:
Making all in src
make[1]: Entering directory '/usr/src/arciris/src'
make[2]: Entering directory '/usr/src/arciris/src'
make[3]: Entering directory '/usr/src/arciris'
make[3]: Leaving directory '/usr/src/arciris'
make[3]: Entering directory '/usr/src/arciris/src/secp256k1'
make[3]: Leaving directory '/usr/src/arciris/src/secp256k1'
  GEN      qt/res/bitcoin-qt-res.o
/usr/bin/x86_64-w64-mingw32-windres: ./qt/res/icons/bitcoin.ico: read of 1128 returned 1127
/usr/bin/x86_64-w64-mingw32-windres: preprocessing failed.
Makefile:9855: recipe for target 'qt/res/bitcoin-qt-res.o' failed
make[2]: *** [qt/res/bitcoin-qt-res.o] Error 1
make[2]: Leaving directory '/usr/src/arciris/src'
Makefile:9323: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/arciris/src'
Makefile:747: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
ok done it is compiled thanks for the help though