Bitcoin Forum
June 18, 2024, 07:54:32 AM *
News: Latest Bitcoin Core release: 27.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 49060 times)
qjusam
Jr. Member
*
Offline Offline

Activity: 46
Merit: 10


View Profile
June 04, 2020, 10:33:23 AM
 #281

All went ok with some trial and errors but i am stuck on last step with following error

/src/leveldb/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
Makefile.Release:453: recipe for target 'release/coin-qt.exe' failed

I have already made db by using following command

Code:
#!/bin/bash
MXE_PATH=/mnt/mxe
sed -i "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h
mkdir build_mxe
cd build_mxe

RANLIB=$MXE_PATH/usr/bin/i686-w64-mingw32.static-ranlib \
CC=$MXE_PATH/usr/bin/i686-w64-mingw32.static-gcc \
CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
../dist/configure \
        --disable-replication \
        --enable-mingw \
        --enable-cxx \
        --host x86 \
        --prefix=$MXE_PATH/usr/i686-w64-mingw32.static
make
make install



Still awaiting a solution. if anyone know??
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
July 05, 2020, 05:51:16 PM
 #282

Hello everyone,

I decided to revisit this and ended up discovering the build script for BerkeleyDB initially posted in this thread by the OP is quite incorrect.

Here is the correct syntax!

Code:
#!/bin/bash

## Path to MXE source
 MXE_PATH=/home/demon/dev/mxe
## Path for mingw headers
 MXE_INCLUDE=$MXE_PATH/usr/i686-w64-mingw32.static/include

## Path to db source
 db=db-6.1.26


## Make a clean working tree / Create working DIR
## You can also use `make distclean` within build_mxe to start fresh
 rm -rf ./$db/build_mxe
 mkdir -p ./$db/build_mxe

 cd ./$db/build_mxe

## Correct naming of header file
 sed -i "s/WinIoCtl.h/winioctl.h/g" ../src/dbinc/win_db.h


## Define CC and C++ compiler & user level commands
export CC=$MXE_PATH/usr/bin/i686-w64-mingw32.static-gcc
export CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++
export AR=$MXE_PATH/usr/bin/i686-w64-mingw32.static-ar
export STRIP=$MXE_PATH/usr/bin/i686-w64-mingw32.static-strip
export RANLIB=$MXE_PATH/usr/bin/i686-w64-mingw32.static-ranlib

### Find mingw headers in non-standard directory
export CPPFLAGS=-I$MXE_INCLUDE


## Configure the build
 ../dist/configure \
     --build=x86_64-pc-linux-gnu \
     --host=x86 \
     --disable-replication \
     --enable-cxx \
     --enable-mingw \
     --program-transform-name='s,.exe,,;s,\(.*\),\1.exe,' \
     --prefix=/home/demon/dev/mxe_db \
     --exec-prefix=/home/demon/dev/mxe_db

## Build DB and install it
 make -j(nproc); make -j(nproc) install

Also discussed here (with build log):
https://stackoverflow.com/questions/50639135/how-to-compile-berkeley-db-5-3-28-for-mxe-cross-compile

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







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
ShllFT
Jr. Member
*
Offline Offline

Activity: 117
Merit: 1


View Profile
October 20, 2020, 09:46:44 PM
 #283



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 i know it's been a while, but do you still have those? The links are broken since  Sad

Thank you  Smiley
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
October 20, 2020, 10:04:12 PM
 #284



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 i know it's been a while, but do you still have those? The links are broken since  Sad

Thank you  Smiley

Being it's not clear exactly what you are trying to do. But compiling with MXE on linux will produce the platform versions you need. Also ofc secp has had recent updates on their repo, and you should work with whatever code may already exist with the project you're working on.

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







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
ShllFT
Jr. Member
*
Offline Offline

Activity: 117
Merit: 1


View Profile
November 05, 2020, 09:47:14 PM
 #285



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 i know it's been a while, but do you still have those? The links are broken since  Sad

Thank you  Smiley

Being it's not clear exactly what you are trying to do. But compiling with MXE on linux will produce the platform versions you need. Also ofc secp has had recent updates on their repo, and you should work with whatever code may already exist with the project you're working on.

No that didnt work, tried already.

I've compiled my own libraries on windows for seckpt im ok now
coinclixofficial
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
January 21, 2021, 01:49:28 AM
 #286

Please help me with my error encountered
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
January 21, 2021, 03:05:25 AM
 #287

Please help me with my error encountered

Please provide more details Huh

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







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
FreakCoder
Full Member
***
Offline Offline

Activity: 750
Merit: 100


View Profile
February 23, 2021, 02:14:59 PM
 #288

Please help me with my error encountered

Please provide more details Huh

He got an error. What more do you want?  Roll Eyes
jessica.roy
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
September 07, 2023, 06:27:30 AM
 #289

If you have levelDB issue (libleveldb.a / libmemenv.a), plz follow below instruction.

Code:
cd %coin_folder%/src/leveldb
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a CC=/mnt/mxe/usr/bin/i686-w64-mingw32.static-gcc CXX=/mnt/mxe/usr/bin/i686-w64-mingw32.static-g++

It's really works, thanks a lot.
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!