Bitcoin Forum
November 11, 2024, 01:48:26 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Which libmemenv.a is used when using the gitian builder? on: March 29, 2014, 08:02:09 PM
I'm trying to build the Windows binaries for an altcoin using the gitian building process as described here:

https://github.com/litecoin-project/litecoin/blob/v0.8.6.2/contrib/gitian-descriptors/README

I'm running:

Code:
    ./bin/gbuild --commit altcoin=HEAD ./gitian-win32.yml

But get this error:

Code:
/home/ubuntu/build/altcoin/src/leveldb/libmemenv.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[1]: Leaving directory `/home/ubuntu/build/nationscoin'
make[1]: *** [release/nationscoin-qt.exe] Error 1
make: *** [release] Error 2
I've been trying a variety of solutions (trying to rebuild/reindex libmemenv.a), but they did not seem to work. This made me wonder if my changes had any impact at all because the output was always exactly the same. So I removed the libmemenv.a file:

Code:
rm /home/gitian-builder/inputs/altcoin/src/leveldb/libmemenv.a

Turns out, the error remains the same (so no complaint about the missing file!). This leads me to think that I am not working with the right libmemenv.a file. A 'locate libmemenv.a' returns only one file though so I am utterly confused exactly WHICH libmemenv.a is causing this problem. Any ideas?
2  Bitcoin / Wallet software / Configuring local mirror in gitian on: March 27, 2014, 11:55:18 AM
I have a very very slow internet connection but a very very fast local network which mirrors Ubuntu repositories. I'm trying to run gitian for building, but it takes forever for the make-base-vm command to run. As far as I understand, Ubuntu is being downloaded at this stage. If that is the case, is there a way I can use my local mirror instead of the regular Ubuntu server?

I have been trying to fiddle with the actual file and with setting MIRROR_HOST as an environment variable, but it does not work. The local mirror is something like: http://mirror.my-local-lan.com/ubuntu. This mirror is accessible from both source and guest of the VM.

FYI here is the code of make-base-vm:

https://github.com/devrandom/gitian-builder/blob/master/bin/make-base-vm
3  Alternate cryptocurrencies / Altcoin Discussion / Re: Problem cross compiling altcoin using MXE on: March 26, 2014, 02:01:11 PM
I see very few people who use MXE for crosscompiling bitcoin/litecoin/altcoins. Is there a reason for that? Has someone pulled this off? I think the method can prove very practical given the issues with compiling on Windows, but wonder why there is so few people reporting on this...
4  Alternate cryptocurrencies / Altcoin Discussion / Problem cross compiling altcoin using MXE on: March 26, 2014, 09:14:53 AM
I am trying to compile an altcoin based on Litecoin. I've successfully compiled it for Linux but struggle with Windows compiling. I'm most comfortable compiling on Linux and have tried to create the Windows executable using Ubuntu and other Linux flavors, but so far to no avail.

My latest attempts make use of the M Cross Environment. I have installed this and follow this approach, but when it runs this is the output:

Code:
$ ~/mxe/usr/i686-pc-mingw32.static/qt/bin/qmake && make
Project MESSAGE: Building with UPNP support
sh: ~/mxe/usr/i686-pc-mingw32.static/qt/binlrelease.exe: No such file or directory
Project MESSAGE: Building with UPNP support
sh: ~/mxe/usr/i686-pc-mingw32.static/qt/binlrelease.exe: No such file or directory
Project MESSAGE: Building with UPNP support
sh: ~/mxe/usr/i686-pc-mingw32.static/qt/binlrelease.exe: No such file or directory
make -f Makefile.Release
make[1]: Entering directory '~/my_altcoin/source'
cd ~/my_altcoin/source/src/leveldb && CC=i686-pc-mingw32.static-gcc CXX=i686-pc-mingw32.static-g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && i686-pc-mingw32.static-ranlib ~/my_altcoin/source/src/leveldb/libleveldb.a && i686-pc-mingw32.static-ranlib ~/my_altcoin/source/src/leveldb/libmemenv.a
make[2]: Entering directory '~/my_altcoin/source/src/leveldb'
make[2]: 'libleveldb.a' is up to date.
make[2]: 'libmemenv.a' is up to date.
make[2]: Leaving directory '~/my_altcoin/source/src/leveldb'
i686-pc-mingw32.static-g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -Wl,-s -mthreads -Wl,-subsystem,windows -o release/my_altcoin-qt.exe object_script.my_altcoin-qt.Release  -L'~/mxe/usr/i686-pc-mingw32.static/qt/lib' -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lminiupnpc -liphlpapi ~/my_altcoin/source/src/leveldb/libleveldb.a ~/my_altcoin/source/src/leveldb/libmemenv.a -lshlwapi -ldb_cxx -lshlwapi -lmswsock -lboost_system-mgw44-mt-s-1_50 -lboost_filesystem-mgw44-mt-s-1_50 -lboost_program_options-mgw44-mt-s-1_50 -lboost_thread-mgw44-mt-s-1_50 -lboost_chrono-mgw44-mt-s-1_50 -lQtGui -lQtNetwork -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lmng -llcms2 -lm -ltiff -llzma -ljpeg -lpng -lQtCore -lssl -lcrypto -lgdi32 -lcrypt32 -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz
./build/bitcoin.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile.Release:280: recipe for target 'release/my_altcoin-qt.exe' failed
make[1]: *** [release/my_altcoin-qt.exe] Error 1
make[1]: Leaving directory '~/my_altcoin/source'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2

Has anybody achieved compiling litecoin-qt on Linux using MXE? Is another approach recommended? So far it's a real pain. I am just not sure where this error comes from or where to search for solutions.

Thanks for any advice.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!