Post
Topic
Board Altcoin Discussion
Re: [HOWTO] compile altcoin for windows on linux using mxe and mingw
by
talonpower
on 25/02/2018, 08:11:50 UTC

in your link they think that person dont generated libleveldb.a and libmemenv.a files, but I have the files...

/mnt/coinm# ls src/leveldb | grep lib
libleveldb.a
libmemenv.a

You might need to summon a little more persistence, then you might progress a little faster.

For people arriving later with the same problem ... from the list of search results I gave:

If you haven't got the RANLIB binding as described here:

https://bitcointalk.org/index.php?topic=912667.msg10037005#msg10037005

then try with that.

Otherwise:

https://bitcointalk.org/index.php?topic=912667.msg10037005#msg10037005

Other than that, you're on your own.

Cheers

Graham



that is only one link... and they do not give any solution

i am still having issues with this build and no matter what i do i get

Code:
make[1]: Entering directory '/mnt/*****/src/leveldb'
make[1]: 'libleveldb.a' is up to date.
make[1]: 'libmemenv.a' is up to date.
make[1]: Leaving directory '/mnt/coinm/src/leveldb'
/bin/sh: 1: i686-w64-mingw32.static-ranlib: not found
Makefile.Release:478: recipe for target '/mnt/****/src/leveldb/libleveldb.a' failed
make: *** [/mnt/*****/src/leveldb/libleveldb.a] Error 127

I see the "i686-w64-mingw32.static-ranlib"   located in its correct spot

I have also done

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


and gave this a shot too

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++ RANLIB=/mnt/mxe/usr/bin/i686-w64-mingw32.static-ranlib

I followed the links  but there was only one and it gave no actual solution

been stuck on this over 24+ hours  and there is just so little documentation for help.