Pages:
Author

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

legendary
Activity: 2254
Merit: 1278
Have an idea how to fix this?
thank you!

./build/main.o:main.cpp:(.text+0x18cee): undefined reference to `leveldb::WriteBatch::WriteBatch()'

FFS, RTFM

https://duckduckgo.com/?q=undefined+reference+to+%60leveldb
legendary
Activity: 2254
Merit: 1278
How I can fix this problem. Help me please.
command: 'ranlib src/leveldb/libmemenv.a' not helped
https://duckduckgo.com/?q=%22Archive+has+no+index%3B+run+ranlib+to+add+one%22+site%3Abitcointalk.org&atb=v81-6__&ia=web

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://bitcointalksearch.org/topic/m.10037005

then try with that.

Otherwise:

https://bitcointalksearch.org/topic/m.10037005

Other than that, you're on your own.

Cheers

Graham
legendary
Activity: 2254
Merit: 1278
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_thread-mgw49-mt-s-1_60 ...
make: *** [release/numus-qt.exe] Error 1

------------------------------------------------------------------------------------------
Could you tell me how to solve this problem?

Not specifically, I'm afraid --- because the problem is local to your setup. Fairly obviously, it's a problem with the path to the MXE boost libs. Try reinstalling/recompiling the MXE suite - I have no idea whether that will help but it's a starting poiint.

Cheers

Graham
legendary
Activity: 2254
Merit: 1278
How I can fix this problem. Help me please.
command: 'ranlib src/leveldb/libmemenv.a' not helped

https://duckduckgo.com/?q=%22Archive+has+no+index%3B+run+ranlib+to+add+one%22+site%3Abitcointalk.org&atb=v81-6__&ia=web

Cheers

Graham
legendary
Activity: 2254
Merit: 1278
make[1]: Entering directory '/mnt/coinm/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:454: recipe for target '/mnt/coinm/src/leveldb/libleveldb.a' failed
make: *** [/mnt/coinm/src/leveldb/libleveldb.a] Error 127

legendary
Activity: 2254
Merit: 1278
can you help me with this?


/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw62-mt-s-1_57
collect2: error: ld returned 1 exit status
Makefile.Release:452: fallo en las instrucciones para el objetivo 'release/Cheesecoin-qt.exe'
make: *** [release/Cheesecoin-qt.exe] Error 1



Yeah, read upthread post : https://bitcointalksearch.org/topic/m.21247843 and, given that the basic nature of the question testifies to your innocence of the content of this thread, I strongly recommend you read all 7(!) pages.

Cheers

Graham
newbie
Activity: 8
Merit: 0
can you help me with this?

Code:
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw62-mt-s-1_57
collect2: error: ld returned 1 exit status
Makefile.Release:452: fallo en las instrucciones para el objetivo 'release/Cheesecoin-qt.exe'
make: *** [release/Cheesecoin-qt.exe] Error 1
legendary
Activity: 2254
Merit: 1278
make[1]: Nothing to be done for 'libleveldb.a'.
make[1]: *** No rule to make target 'libmemenv.a'.  Stop.

I'v experienced this on more than one occasion. Sometimes it can be trivially solved by running make libmemenv.a in src/leveldb and sometimes not. If not then the only recourse is to try and deduce a fix by cross-referencing against the contents of leveldb and the top-level (qmake/autotools) build file of a close clonecousin.

Cheers

Graham
legendary
Activity: 2254
Merit: 1278
FWIW: I won't be responding to any more “Can you help me?” PMs.

This exercise is public for a reason, so that knowledge is distributed - and from my perspective, so that others besides me can take turns in passing it on.

Cheers

Graham
legendary
Activity: 2254
Merit: 1278
Can you help me with this error, thanks.

cd /mnt/coinm-source/src/leveldb && CC=i686-w64-mingw32.static-gcc CXX=i686-w64-                                                                             mingw32.static-g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE make OPT="-fno-keep-inline-                                                                             dllexport -pipe -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && i686-w64-mi                                                                             ngw32.static-ranlib /mnt/coinm-source/src/leveldb/libleveldb.a && i686-w64-mingw                                                                             32.static-ranlib /mnt/coinm-source/src/leveldb/libmemenv.a
make[1]: Entering directory `/mnt/coinm-source/src/leveldb'
make[1]: *** No rule to make target `libleveldb.a'.  Stop.
make[1]: Leaving directory `/mnt/coinm-source/src/leveldb'
make: *** [/mnt/coinm-source/src/leveldb/libleveldb.a] Error 2

There are two shell script files that need to be executable in order for the compilation process to succeed. If the dev has omitted to make them executable, the above error is seen:

share/genbuild.sh and src/leveldb/build_detect_platform

Make them both executable and try again.

Cheers

Graham
member
Activity: 85
Merit: 10
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
newbie
Activity: 10
Merit: 0
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)
newbie
Activity: 10
Merit: 0
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
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
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
member
Activity: 85
Merit: 10
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
full member
Activity: 150
Merit: 100
Official AltCreator Account
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.
full member
Activity: 150
Merit: 100
Official AltCreator Account
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?
full member
Activity: 150
Merit: 100
Official AltCreator Account
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
member
Activity: 114
Merit: 10
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.
legendary
Activity: 1523
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
I will following this topic regarding the constructive discussions in addition to valuable information.
Pages:
Jump to: