Pages:
Author

Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw - page 10. (Read 49127 times)

legendary
Activity: 1638
Merit: 1036


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
jr. member
Activity: 49
Merit: 10

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!
newbie
Activity: 1
Merit: 0
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
legendary
Activity: 2254
Merit: 1290
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
legendary
Activity: 1428
Merit: 1001
Fucker of "the system"
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
newbie
Activity: 11
Merit: 0
How do you guys use this to compile coins without .pro file ? but has autogen.sh ..?
legendary
Activity: 1638
Merit: 1036

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 ?

newbie
Activity: 14
Merit: 0
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
member
Activity: 70
Merit: 10
http://eddiecoin.com

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
sr. member
Activity: 468
Merit: 250
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
legendary
Activity: 2254
Merit: 1290
i'm trying a different source, and using latest version of secp256k1 but still getting

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

or is there something else i could try ?

It's a long shot but I've been caught out before with self-edited Makefiles fumbling the removal of binaries from the build directory, being skipped by make and, if I'm wrestling with cross-compilation, ultimately causing the linker to complain about unrecognised format. I also used to see that after the laptop crashed, leaving truncated .o files in the build directory. What you're describing suggests that the secp256k1 code is being natively compiled when it should be cross-compiled. I've also encountered crypto files that need to be compiled with plain C, requiring ${CC} to be properly bound to the corresponding MXE binary.

Cheers

Graham
legendary
Activity: 1638
Merit: 1036
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'm trying a different source, and using latest version of secp256k1 but still getting

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

could it be to do with version of ubuntu or mxe i'm using ?
not sure about mxe (will need to check later) but am on ubuntu 14.

or is there something else i could try ?
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
what's the coin you are building?

i try create altcoin, with x11 algo

what's the coin, source?
newbie
Activity: 27
Merit: 0
what's the coin you are building?

i try create altcoin, with x11 algo
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
what's the coin you are building?
newbie
Activity: 27
Merit: 0
also make a file m32test.c with the code:

Code:
// Minimal C example
#include
int main()
{
   printf("This works\n");
   return 0;
}

then test your compiler on the file:

Code:
mxe/usr/bin/i686-w64-mingw32.static-g++ m32test.c

use the path that your compiler is in ofc

this will create an executable a.exe if your compiler is working

i type free -m then output return like that .
if i type free -h this return
Swap:          19G         0B        19G

i try to test compile and its worked
this is the screenshoot http://prntscr.com/ge44fc
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
also make a file m32test.c with the code:

Code:
// Minimal C example
#include
int main()
{
   printf("This works\n");
   return 0;
}

then test your compiler on the file:

Code:
mxe/usr/bin/i686-w64-mingw32.static-g++ m32test.c

use the path that your compiler is in ofc

this will create an executable a.exe if your compiler is working
Pages:
Jump to: