Bitcoin Forum
November 17, 2024, 08:03:06 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 »  All
  Print  
Author Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw  (Read 49109 times)
hesdeadjim
Sr. Member
****
Offline Offline

Activity: 468
Merit: 250


View Profile
September 05, 2017, 04:33:50 PM
 #101

Hello everyone.

I've been compiling wallets for different Linux distros and for the Raspberry Pi and I thought I might give the Windows wallet a shot.

I followed the instructions on the first post exactly and everything worked perfectly until the compile.

I used Blackcoin as the example suggested.

The errors are as follows:

Code:
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$ sudo ./compile-blk.sh
./compile-blk.sh: 1: ./compile-blk.sh: #!/bin/bash: not found
./compile-blk.sh: 4: ./compile-blk.sh: i686-w64-mingw32.static-qmake-qt5: not found
make: Makefile.Release: No such file or directory
make: *** No rule to make target `Makefile.Release'.  Stop.
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$

Now here is the strange part. I put the path in correctly, and it shows up fine when I display environmental list in the terminal.

Any help would be appreciated.

Thanks. Smiley

Awesome New Exchange  -  http://www.cryproquo.com/addcoin.html  -  Awesome New Exchange
Put  -  Referred By hesdeadjim  -  In The Box Marked Additional Notes And Receive 1/2 Off Listing Fees From 07/01/18  -  07/07/18
AnthonyBitLand
Member
**
Offline Offline

Activity: 70
Merit: 10

http://eddiecoin.com


View Profile WWW
September 08, 2017, 11:37:31 AM
 #102


Code:
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$ sudo ./compile-blk.sh
./compile-blk.sh: 1: ./compile-blk.sh: #!/bin/bash: not found
./compile-blk.sh: 4: ./compile-blk.sh: i686-w64-mingw32.static-qmake-qt5: not found
make: Makefile.Release: No such file or directory
make: *** No rule to make target `Makefile.Release'.  Stop.
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$


I have same error

DONATIONS FOR EDDIE DEVELOPMENT  EL6pxpN7Y7F5RJoTsu2ThiPhfivjXTiZZ1 THANK YOU
kurdcoin
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
September 08, 2017, 05:22:38 PM
 #103

i'm having trouble with building a coin using secp256k1

Code:
libsecp256k1_la-secp256k1.o: file not recognized: File format not recognized

generally it seems like i have success with secp256k1 but it is not recognized on qt build.

i've tried a variety of things including

Code:
./autogen.sh
./configure --host=i686-w64-mingw32.static
make

fails on qt build

and
Code:
./configure --host=i686-w64-mingw32.static --prefix=/home/mxe/mxe/usr/i686-w64-mingw32.static --enable-static --disable-shared

gives error during configure
Code:
./configure: line 12234: SECP_64BIT_ASM_CHECK: command not found
./configure: line 12263: SECP_INT128_CHECK: command not found
./configure: line 12291: SECP_INT128_CHECK: command not found
./configure: line 12316: SECP_GMP_CHECK: command not found
./configure: line 12422: SECP_OPENSSL_CHECK: command not found

also fails on qt build



any assistance would be welcomed Smiley


i kinda fixed this issue ,, the fastes way is to get pre compiled secp256k1  for win32, or do it yourself on winodws, copy secp256k1  to ubuntu , copy and merge libs & include in to mxe  i686-w64-mingw32.static folder, and that is it,

at least it works for me
bumbacoin
Legendary
*
Offline Offline

Activity: 1638
Merit: 1036



View Profile
September 09, 2017, 09:33:01 AM
Last edit: September 10, 2017, 02:47:47 AM by bumbacoin
 #104


i kinda fixed this issue ,, the fastes way is to get pre compiled secp256k1  for win32, or do it yourself on winodws, copy secp256k1  to ubuntu , copy and merge libs & include in to mxe  i686-w64-mingw32.static folder, and that is it,

at least it works for me

now that was a great idea !!

i just grabbed bitcoin source and used it to compile the secp256k1 libraries for windows.


anyone wants a copy of secp256k1 for win32 here's a link
https://drive.google.com/open?id=0B5j8d4FSc7drYzlpMVJKbVdISVk

i had a go at win64, this version appears to have succeeded but i havent tested it
https://drive.google.com/open?id=0B5j8d4FSc7drd3RBUnc0R0pyUE0


.

can anyone tell me diff between mingw and mxe ?
is mxe just a collection of handy build instructions for various libraries using mingw ?


💦☔️🐳💚💖💛
go to
cryptobetfair.com
ask for a voucher

████████████████
██████████████
█████████████
██████████████
██████████████
███████████
█████████
███████████
████████████
████████████
███████████
█████████████
██████████████
███████████████
████████████████
████████████████
🐠👻🍗🌳🐵
MNCoin
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
September 13, 2017, 08:33:45 PM
 #105

How do you guys use this to compile coins without .pro file ? but has autogen.sh ..?
MickGhee
Legendary
*
Offline Offline

Activity: 1428
Merit: 1001

Fucker of "the system"


View Profile
September 20, 2017, 03:32:28 AM
 #106

this is no good anymore

you need to follow this guide
http://dillingers.com/blog/2015/04/18/how-to-make-an-altcoin

happy coding

Last night, while you were sleeping. I fucked the system!
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
September 20, 2017, 08:18:19 AM
 #107

this is no good anymore

you need to follow this guide
http://dillingers.com/blog/2015/04/18/how-to-make-an-altcoin

Doesn't cover the “using mxe and mingw” (c.f. thread topic).

Cheers

Graham
jocker1508
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 12, 2017, 01:23:36 PM
 #108

Everything is compiling so far when I execute the script as root, if there is any other issues ill let you know. - It compiled with no issues! I don't have much for BTC if you leave your address ill send you something for the help.


 im facing issue over this command

./compile-m.sh

error is as follows:

bash: ./compile-db.sh: No such file or directory
scryclip
Jr. Member
*
Offline Offline

Activity: 49
Merit: 10


View Profile
October 17, 2017, 04:09:55 PM
 #109


i kinda fixed this issue ,, the fastes way is to get pre compiled secp256k1  for win32, or do it yourself on winodws, copy secp256k1  to ubuntu , copy and merge libs & include in to mxe  i686-w64-mingw32.static folder, and that is it,

at least it works for me

now that was a great idea !!

i just grabbed bitcoin source and used it to compile the secp256k1 libraries for windows.


anyone wants a copy of secp256k1 for win32 here's a link
https://drive.google.com/open?id=0B5j8d4FSc7drYzlpMVJKbVdISVk

i had a go at win64, this version appears to have succeeded but i havent tested it
https://drive.google.com/open?id=0B5j8d4FSc7drd3RBUnc0R0pyUE0





Hey you 2 are the best!!  Smiley

It would have taken me days, (or maybe a week with the arduous task of having learn how and then attempt compile it entirely under windows, which I was reading about and considering ...it did not sound fun), Had I did not see your advice kurdcoin (and been able to quickly check it worked with your Library bumbacoin, that was great)

Actually I did a different wallet 3 months ago (before you guys posted) that had this secp256k1 library however the original dev had coded an #ifdef around all the secp256k1 instances so it was possible to optionally exclude it when compiling. I wonder now if he had coded around it just to get it to compile with mingw if needed....

Anyway Thanks so much!
bumbacoin
Legendary
*
Offline Offline

Activity: 1638
Merit: 1036



View Profile
October 21, 2017, 04:26:44 PM
 #110



Actually I did a different wallet 3 months ago (before you guys posted) that had this secp256k1 library however the original dev had coded an #ifdef around all the secp256k1 instances so it was possible to optionally exclude it when compiling. I wonder now if he had coded around it just to get it to compile with mingw if needed....

Anyway Thanks so much!


some bases have the #ifdef
some dont :p

💦☔️🐳💚💖💛
go to
cryptobetfair.com
ask for a voucher

████████████████
██████████████
█████████████
██████████████
██████████████
███████████
█████████
███████████
████████████
████████████
███████████
█████████████
██████████████
███████████████
████████████████
████████████████
🐠👻🍗🌳🐵
hoop
Legendary
*
Offline Offline

Activity: 1524
Merit: 1001


NOBT - WNOBT your saving bank◕◡◕


View Profile WWW
October 21, 2017, 09:43:56 PM
 #111

I will following this topic regarding the constructive discussions in addition to valuable information.

            ██████████  ██████████▄▄
         █████████████  ██████████████▄▄
   ▄███  █████▄                  ▀▀███████▄
  ██████   ▀█████▄          ████     ▀▀█████
 █████        ▀█████▄       ████        █████
 ████            ▀████      ████         ████
 ████         ██▄   ▀█  ██▄ ████         ████
 ████▌        █████▄    ████████        ▐████
 ▐████        ████████    ▀█████        ████▌
  █████       ████ ▀██  █▄   ▀██       █████
   █████      ████      ████▄         █████
    █████▄    ████       ▀█████▄    ▄█████
     ▀█████▄  ████          ▀█████▄   ██▀
       ▀█████▄                 ▀█████
         ▀██████▄▄          ▄▄██████▀
            ▀▀████████  ████████▀▀
                ▀▀████  ████▀▀
Take care of your financial privacy
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
A blockchain loyalty scheme and more
██
██
██
██
██
██
██
██
██
██
██
██


███████████████
███          ██████████████████
████████████████████████████████
███                          ███
███                          ███
███             ██           ███
███       ██   ██   ██       ███
███      ██    ██    ██      ███
███       ██  ██    ██       ███
███                          ███
███                          ███
████████████████████████████████


           ████    ████
       █████████ ████████
                           
████████████████████████████
█████████████████████████████
██████████████████
██████████████████ ███████████
██████████████████ ██    █████
██████████████████ ███████████
██████████████████
█████████████████████████████
████████████████████████████


        ▄█████▄
      ▄█████████
     ████    ███▌
    ███       ██▌
   ▐██ ███  ████
   ▄███████████
  ███████████▀
 ████  ███ ██▌
▐██       ███
▐███    ████
 █████████▀
  ▀█████▀
██
██
██
██
██
██
██
██
██
██
██
██
ANN         Discord
Twitter    Telegram
Nobt-plataform
owner232
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile WWW
October 25, 2017, 09:36:05 PM
Last edit: October 25, 2017, 10:02:03 PM by owner232
 #112

Ive been working on this for days and Im now getting this error

g[abi:cxx11]() const'
./build/main.o:main.cpp:(.text+0x89ef): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
./build/main.o:main.cpp:(.text+0xd76b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
./build/main.o:main.cpp:(.text+0x128d8): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
./build/main.o:main.cpp:(.text+0x13949): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
./build/main.o:main.cpp:(.text$_ZN5CTxDBD1Ev[__ZN5CTxDBD1Ev]+0xe): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
./build/miner.o:miner.cpp:(.text+0x48c6): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow


FIXED.
For everyone with this error, I went to novacoin and took the leveldb from their project folder and replaced the one in my source folder. It then compiled.

Telegram:@owner232
Discord: Owner 232#1337
AltCreators
Full Member
***
Offline Offline

Activity: 150
Merit: 100


Official AltCreator Account


View Profile
November 20, 2017, 04:59:13 PM
 #113

Nice tutorial, however needs some editing.

It is missing 2 dependencies that are required.

libgtk2.0-dev is missing.

You must apt-get install it.

Code:
sudo apt-get install libgtk2.0-dev

*if anyone needs help compiling or want to make their own coin, PM me
AltCreators
Full Member
***
Offline Offline

Activity: 150
Merit: 100


Official AltCreator Account


View Profile
November 21, 2017, 04:46:45 PM
 #114

Compiling Boost is taking a very long time.

MY Vps has 4gb ram and 2 or 4 cores.

Its taking hours.

Also, is it possible to close my vps, and resume compiling later?
AltCreators
Full Member
***
Offline Offline

Activity: 150
Merit: 100


Official AltCreator Account


View Profile
November 22, 2017, 04:06:32 AM
 #115

Some info to new people following this Tutorial:

Some Requirements:
At Least 10 gb storage is expected. Just the compiling is about 4 gb
*and then you will want some storage for the altcoin

Compiling Boost takes a pretty long time. a few hours on a descent VPS.
When it is compiling boost, dont discourage yourself and quit compiling. Eventually it will compile!

Compiling QT 5 does not take much time. About 1 hour and a half should do.


overall, the entire process should take no more than 6 hours.
rewenton
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
November 22, 2017, 06:12:41 PM
 #116

Code:
:/mnt/mxe# make MXE_TARGETS="i686-w64-mingw32.static" boost
[create settings.mk]
[check requirements]
Missing requirement: libtool
Missing requirement: gdk-pixbuf-csource

Please have a look at "docs/index.html" to ensure
that your system meets all requirements.

Makefile:398: recipe for target '/mnt/mxe/usr/installed/check-requirements' failed
make: *** [/mnt/mxe/usr/installed/check-requirements] Error 1
Here such error at me. What to do?
ubuntu 14 and 16
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
November 22, 2017, 06:20:35 PM
 #117

Code:
:/mnt/mxe# make MXE_TARGETS="i686-w64-mingw32.static" boost
[create settings.mk]
[check requirements]
Missing requirement: libtool
Missing requirement: gdk-pixbuf-csource

Please have a look at "docs/index.html" to ensure
that your system meets all requirements.

Makefile:398: recipe for target '/mnt/mxe/usr/installed/check-requirements' failed
make: *** [/mnt/mxe/usr/installed/check-requirements] Error 1
Here such error at me. What to do?
ubuntu 14 and 16

Code:
sudo apt install libgdk-pixbuf2.0-dev libtool

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
AnorakThaGreat
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
November 23, 2017, 09:12:45 AM
 #118

Code:
:/mnt/mxe# make MXE_TARGETS="i686-w64-mingw32.static" boost
[create settings.mk]
[check requirements]
Missing requirement: libtool
Missing requirement: gdk-pixbuf-csource

Please have a look at "docs/index.html" to ensure
that your system meets all requirements.

Makefile:398: recipe for target '/mnt/mxe/usr/installed/check-requirements' failed
make: *** [/mnt/mxe/usr/installed/check-requirements] Error 1
Here such error at me. What to do?
ubuntu 14 and 16

sudo apt-get install libtool-bin
sudo apt-get install libgtk2.0-dev
AnorakThaGreat
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
November 23, 2017, 09:21:44 AM
 #119

Hello everyone.

I've been compiling wallets for different Linux distros and for the Raspberry Pi and I thought I might give the Windows wallet a shot.

I followed the instructions on the first post exactly and everything worked perfectly until the compile.

I used Blackcoin as the example suggested.

The errors are as follows:

Code:
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$ sudo ./compile-blk.sh
./compile-blk.sh: 1: ./compile-blk.sh: #!/bin/bash: not found
./compile-blk.sh: 4: ./compile-blk.sh: i686-w64-mingw32.static-qmake-qt5: not found
make: Makefile.Release: No such file or directory
make: *** No rule to make target `Makefile.Release'.  Stop.
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$

Think you have to run
Code:
sudo -E ./compile-blk.sh
to pass the environment vars (PATH and whatever else you have defined in sudoers)
rewenton
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
November 25, 2017, 02:21:35 AM
 #120

Code:
:/mnt/mxe# make MXE_TARGETS="i686-w64-mingw32.static" boost
[create settings.mk]
[check requirements]
Missing requirement: libtool
Missing requirement: gdk-pixbuf-csource

Please have a look at "docs/index.html" to ensure
that your system meets all requirements.

Makefile:398: recipe for target '/mnt/mxe/usr/installed/check-requirements' failed
make: *** [/mnt/mxe/usr/installed/check-requirements] Error 1
Here such error at me. What to do?
ubuntu 14 and 16

sudo apt-get install libtool-bin
sudo apt-get install libgtk2.0-dev
Thank you! everything worked
but when I want to compile another altcoyin
I'm trying to compile another altcoyin, but I get an error -
Quote
Project ERROR: Unknown module(s) in QT: webkitwidgets
altcoin - https://github.com/peopleproject/people
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!