Pages:
Author

Topic: Building headless Bitcoin and Bitcoin-qt on Windows - page 20. (Read 419389 times)

hero member
Activity: 629
Merit: 500
adding that line didnt change the error  Undecided

the dogecoindark-qt.pro compiled the linux qt with no problem..

but yes of course ill send a tip for the "missing link"
sr. member
Activity: 260
Merit: 251
i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..
Hello ?,

Whose (which *coin) makefile.mingw did you modify!?

Looking at a Bitcoin 0.8.6 makefile.mingw, I see something like:
Code:
...
OBJS= \
    leveldb/libleveldb.a \
    obj/alert.o \
    obj/version.o \
   ...
So the questions one might ask are:
Does your *coind.exe use an alert.cpp?  If not then remove that line Smiley  Is there an .../obj directory in place to receive the coming .o files?  Did you remove the leveldb... line above if you don't need it in your *coin?  Did you change anything else in the makefile that might stop it from compiling any .cpp sources, since this is the first one in the list?

Stuff like that.  It would be easier if we knew which *coin and what the makefile looked like.

Ron

https://github.com/doged/dogedsource/

yes, it has an alert.cpp, yes i removed leveldb from ming makefile..
Hello ?,

Looking at the dogecoindark makefile.mingw, it seems to be missing a compiler directive first line!!  See any other makefile.mingw for any other coin or even bitcoin!  Something simple like, tada:
CXX ?= g++

Did you edit that out? I quote my first message above:
Quote
Did you change anything else in the makefile that might stop it from compiling any .cpp sources

BTW, since you or whoever changed the decimal power of your coin from bitcoin's, you have to fix the code in two places!  Only one was changed.  This is because the original Bitcoin source suffered from and still suffers from poor coding practices.  Especially with respect to undocumented/undefined/uncommented numbers in the sources that are related to other undocumented/... numbers.  And numbers that may be arbitrary or historic.  No one can tell, without studying the whole source, and even then sometimes, it's a WAG Grin

Tips accepted Grin

Ron
hero member
Activity: 629
Merit: 500
i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..
Hello ?,

Whose (which *coin) makefile.mingw did you modify!?

Looking at a Bitcoin 0.8.6 makefile.mingw, I see something like:
Code:
...
OBJS= \
    leveldb/libleveldb.a \
    obj/alert.o \
    obj/version.o \
   ...
So the questions one might ask are:
Does your *coind.exe use an alert.cpp?  If not then remove that line Smiley  Is there an .../obj directory in place to receive the coming .o files?  Did you remove the leveldb... line above if you don't need it in your *coin?  Did you change anything else in the makefile that might stop it from compiling any .cpp sources, since this is the first one in the list?

Stuff like that.  It would be easier if we knew which *coin and what the makefile looked like.

Ron

https://github.com/doged/dogedsource/

yes, it has an alert.cpp, yes i removed leveldb from ming makefile..
sr. member
Activity: 260
Merit: 251
i have everything installed up to step 3, just not sure how to compile the windows qt when you using a coin that doesnt have an autogen.sh, but does have a -qt.pro file.

See "Additional notes for older Bitcoin 0.8.6".

i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..

the thing is, my coin doesnt use a leveldb folder.. so im unsure as to what the next step is..
ive got all the deps installed, and modified the mingw
i had 0 issues compiling the linux version lol
(will tip anyone who can help.)
i have everything installed up to step 3, just not sure how to compile the windows qt when you using a coin that doesnt have an autogen.sh, but does have a -qt.pro file.

See "Additional notes for older Bitcoin 0.8.6".

i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..
Hello ?,

Whose (which *coin) makefile.mingw did you modify!?

Looking at a Bitcoin 0.8.6 makefile.mingw, I see something like:
Code:
...
OBJS= \
    leveldb/libleveldb.a \
    obj/alert.o \
    obj/version.o \
   ...
So the questions one might ask are:
Does your *coind.exe use an alert.cpp?  If not then remove that line Smiley  Is there an .../obj directory in place to receive the coming .o files?  Did you remove the leveldb... line above if you don't need it in your *coin?  Did you change anything else in the makefile that might stop it from compiling any .cpp sources, since this is the first one in the list?

Stuff like that.  It would be easier if we knew which *coin and what the makefile looked like.

Ron
hero member
Activity: 629
Merit: 500
any ideas are welcome..
hero member
Activity: 629
Merit: 500
i have everything installed up to step 3, just not sure how to compile the windows qt when you using a coin that doesnt have an autogen.sh, but does have a -qt.pro file.

See "Additional notes for older Bitcoin 0.8.6".

i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..

the thing is, my coin doesnt use a leveldb folder.. so im unsure as to what the next step is..
ive got all the deps installed, and modified the mingw
i had 0 issues compiling the linux version lol
(will tip anyone who can help.)
hero member
Activity: 868
Merit: 1000
I just fixed all the problems as awais3344_1 tips:
-Copy a leveldb folder over mine. And it works!  Cheesy

Basically i have forked a coin,compiled and modify all on linux,then when i try to build windows wallet i got stuck with several error.
I have copied leveldb directory from original coin over my forked coin. And it works.

I don't know why,but it worked. Maybe leveldb compiled in linux get stuck on windows.
Aniway, i can build even with or without USE_UPNP.

My question as newbie is: What is UPNP? Which is the difference to compile a wallet having it enabled or disabled?


THANKS
hero member
Activity: 868
Merit: 1000
I think having win the battle versus windows wallet.  Wink
Let me check a second time and i will post my mistakes.
sr. member
Activity: 350
Merit: 250
are you sure that after you use wmake use_upnp=-

it does show "building WithOUT upnp support"?

if it foesnt. and there is no way to disable upnp in wmake. then modify your bitcoin qt.pro file and make a rule to disable upnp
hero member
Activity: 868
Merit: 1000
Ok, i think i will stop to compile and enjoy life.
Too many problems and no way to get out of this stuck.

Thanks anyway for your time.

My last try was to format all,install win 7,reinstall and recompile all to check if i get the same problem, and now the problem is different!!!!!

If someone's could help me; SKYPE: nacnaus


Code:
./build\net.o:net.cpp:(.text+0x593f): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x5976): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x599c): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x5a47): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x5b8e): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x5ba9): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x5cb3): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x5d30): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x5d4f): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x5d5e): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x5d9c): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.text.unlikely'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:304: recipe for target 'release\test-qt.exe' failed




use qmake USE_UPNP=- to disable upnp.
see if it helps

No. Doesn't help
hero member
Activity: 629
Merit: 500
i have everything installed up to step 3, just not sure how to compile the windows qt when you using a coin that doesnt have an autogen.sh, but does have a -qt.pro file.

See "Additional notes for older Bitcoin 0.8.6".

i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..
sr. member
Activity: 350
Merit: 250
Ok, i think i will stop to compile and enjoy life.
Too many problems and no way to get out of this stuck.

Thanks anyway for your time.

My last try was to format all,install win 7,reinstall and recompile all to check if i get the same problem, and now the problem is different!!!!!

If someone's could help me; SKYPE: nacnaus


Code:
./build\net.o:net.cpp:(.text+0x593f): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x5976): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x599c): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x5a47): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x5b8e): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x5ba9): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x5cb3): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x5d30): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x5d4f): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x5d5e): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x5d9c): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.text.unlikely'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:304: recipe for target 'release\test-qt.exe' failed




use qmake USE_UPNP=- to disable upnp.
see if it helps
hero member
Activity: 868
Merit: 1000
Ok, i think i will stop to compile and enjoy life.
Too many problems and no way to get out of this stuck.

Thanks anyway for your time.

My last try was to format all,install win 7,reinstall and recompile all to check if i get the same problem, and now the problem is different!!!!!

If someone's could help me; SKYPE: nacnaus


Code:
./build\net.o:net.cpp:(.text+0x593f): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x5976): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x599c): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x5a47): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x5b8e): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x5ba9): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x5cb3): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x5d30): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x5d4f): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x5d5e): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x5d9c): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.text.unlikely'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:304: recipe for target 'release\test-qt.exe' failed

full member
Activity: 131
Merit: 108
from mysys?

Command:
ar tv libmemenv.a && ar tv libleveldb.a
Output:
It say: c:\mingw32\bin\ar.exe: libmemenv.a: no such file or directory

Msys shell or cmd, just change into src\leveldb folder.

I found a post sayng also that if the output is right, probably windows find.exe is overruling file.exe.
"fix this by expliciting putting your MSYS find.exe directory before the windows find.exe directory (which should be like c:\windows\System32\find.exe"

But i don't understand how?
It means to copy the entire BIN folder(where find.exe is in) before c:\windows\System32\find.exe ? So in this path: c:\windows\?

It means your msys shell PATH environment variable should look like
Code:
PATH=.:/usr/local/bin:/mingw/bin:/bin:/c/mingw32/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
and not
Code:
PATH=.:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/local/bin:/mingw/bin:/bin:/c/mingw32/bin
(which already should by default).
sr. member
Activity: 350
Merit: 250
Thanks for you help so far. I will try to replace a leveldb from another coin.

But i want to know if the command:
ar tv libmemenv.a && ar tv libleveldb.a  have to be exec. from mysys or windows command prompt.

I found a post sayng also that if the output is right, probably windows find.exe is overruling file.exe.
"fix this by expliciting putting your MSYS find.exe directory before the windows find.exe directory (which should be like c:\windows\System32\find.exe"

But i don't understand how?
It means to copy the entire BIN folder(where find.exe is in) before c:\windows\System32\find.exe ? So in this path: c:\windows\?

Really stressed outthere.  Wink

you have to run from msys and within leveldb directory. so first do cd /c/coin/leveldb
i also tried that fix. I think what the author meant to say was remove system32 find.exe by removing system32 from PATH environment variable. But it did not change anything for me. I installed msys again.

After trying the same thing for a day, i just copied leveldb folder from another coin and it worked fine.
hero member
Activity: 868
Merit: 1000
Thanks for you help so far. I will try to replace a leveldb from another coin.

But i want to know if the command:
ar tv libmemenv.a && ar tv libleveldb.a  have to be exec. from mysys or windows command prompt.

I found a post sayng also that if the output is right, probably windows find.exe is overruling file.exe.
"fix this by expliciting putting your MSYS find.exe directory before the windows find.exe directory (which should be like c:\windows\System32\find.exe"

But i don't understand how?
It means to copy the entire BIN folder(where find.exe is in) before c:\windows\System32\find.exe ? So in this path: c:\windows\?

Really stressed outthere.  Wink
sr. member
Activity: 350
Merit: 250
hello alroseb,

I had these kind of errors and I was able to solve them by using leveldb of another coin. Find another coin with leveldb folder, then compile it and replace it with the folder in your bitcoin dir. Then try again.

Make sure you back up first. This is the easiest thing that worked for me.
hero member
Activity: 868
Merit: 1000
already compiled first libleveld.a and libmemenv.a with "TARGET_OS NATIVE_WINDOWS make libleveldb.a liblevedmn.a".

Someone had a similar issue a while ago, make sure leveldb compiled correctly by running
Code:
ar tv libmemenv.a && ar tv libleveldb.a

Your output should look like
Code:
rw-rw-rw- 0/0 445904 Nov 18 19:13 2014 memenv.o
rw-rw-rw- 0/0  40339 Nov 18 19:13 2014 builder.o
rw-rw-rw- 0/0 142005 Nov 18 19:13 2014 c.o
rw-rw-rw- 0/0 963271 Nov 18 19:13 2014 db_impl.o
rw-rw-rw- 0/0 131501 Nov 18 19:13 2014 db_iter.o
rw-rw-rw- 0/0  72014 Nov 18 19:13 2014 dbformat.o
rw-rw-rw- 0/0  67824 Nov 18 19:13 2014 filename.o
rw-rw-rw- 0/0  43939 Nov 18 19:13 2014 log_reader.o
rw-rw-rw- 0/0  33580 Nov 18 19:13 2014 log_writer.o
rw-rw-rw- 0/0 105858 Nov 18 19:13 2014 memtable.o
rw-rw-rw- 0/0 577717 Nov 18 19:14 2014 repair.o
rw-rw-rw- 0/0  43460 Nov 18 19:14 2014 table_cache.o
rw-rw-rw- 0/0 249154 Nov 18 19:14 2014 version_edit.o
rw-rw-rw- 0/0 974257 Nov 18 19:14 2014 version_set.o
rw-rw-rw- 0/0  64360 Nov 18 19:14 2014 write_batch.o
rw-rw-rw- 0/0 118371 Nov 18 19:14 2014 block.o
rw-rw-rw- 0/0  69977 Nov 18 19:14 2014 block_builder.o
rw-rw-rw- 0/0 109704 Nov 18 19:14 2014 filter_block.o
rw-rw-rw- 0/0  40204 Nov 18 19:14 2014 format.o
rw-rw-rw- 0/0  36526 Nov 18 19:14 2014 iterator.o
rw-rw-rw- 0/0 241740 Nov 18 19:14 2014 merger.o
rw-rw-rw- 0/0  60468 Nov 18 19:14 2014 table.o
rw-rw-rw- 0/0 123558 Nov 18 19:14 2014 table_builder.o
rw-rw-rw- 0/0 101216 Nov 18 19:14 2014 two_level_iterator.o
rw-rw-rw- 0/0  37700 Nov 18 19:14 2014 arena.o
rw-rw-rw- 0/0  31347 Nov 18 19:14 2014 bloom.o
rw-rw-rw- 0/0  52787 Nov 18 19:14 2014 cache.o
rw-rw-rw- 0/0  33934 Nov 18 19:14 2014 coding.o
rw-rw-rw- 0/0  41398 Nov 18 19:14 2014 comparator.o
rw-rw-rw- 0/0  18170 Nov 18 19:14 2014 crc32c.o
rw-rw-rw- 0/0 126978 Nov 18 19:14 2014 env.o
rw-rw-rw- 0/0    553 Nov 18 19:14 2014 env_posix.o
rw-rw-rw- 0/0 339470 Nov 18 19:14 2014 env_win.o
rw-rw-rw- 0/0  22594 Nov 18 19:14 2014 filter_policy.o
rw-rw-rw- 0/0   7743 Nov 18 19:14 2014 hash.o
rw-rw-rw- 0/0  39699 Nov 18 19:14 2014 histogram.o
rw-rw-rw- 0/0  36131 Nov 18 19:14 2014 logging.o
rw-rw-rw- 0/0   7945 Nov 18 19:14 2014 options.o
rw-rw-rw- 0/0  32284 Nov 18 19:14 2014 status.o
rw-rw-rw- 0/0  21346 Nov 18 19:14 2014 port_win.o

from mysys?

Command:
ar tv libmemenv.a && ar tv libleveldb.a
Output:
It say: c:\mingw32\bin\ar.exe: libmemenv.a: no such file or directory
full member
Activity: 131
Merit: 108
already compiled first libleveld.a and libmemenv.a with "TARGET_OS NATIVE_WINDOWS make libleveldb.a liblevedmn.a".

Someone had a similar issue a while ago, make sure leveldb compiled correctly by running
Code:
ar tv libmemenv.a && ar tv libleveldb.a

Your output should look like
Code:
rw-rw-rw- 0/0 445904 Nov 18 19:13 2014 memenv.o
rw-rw-rw- 0/0  40339 Nov 18 19:13 2014 builder.o
rw-rw-rw- 0/0 142005 Nov 18 19:13 2014 c.o
rw-rw-rw- 0/0 963271 Nov 18 19:13 2014 db_impl.o
rw-rw-rw- 0/0 131501 Nov 18 19:13 2014 db_iter.o
rw-rw-rw- 0/0  72014 Nov 18 19:13 2014 dbformat.o
rw-rw-rw- 0/0  67824 Nov 18 19:13 2014 filename.o
rw-rw-rw- 0/0  43939 Nov 18 19:13 2014 log_reader.o
rw-rw-rw- 0/0  33580 Nov 18 19:13 2014 log_writer.o
rw-rw-rw- 0/0 105858 Nov 18 19:13 2014 memtable.o
rw-rw-rw- 0/0 577717 Nov 18 19:14 2014 repair.o
rw-rw-rw- 0/0  43460 Nov 18 19:14 2014 table_cache.o
rw-rw-rw- 0/0 249154 Nov 18 19:14 2014 version_edit.o
rw-rw-rw- 0/0 974257 Nov 18 19:14 2014 version_set.o
rw-rw-rw- 0/0  64360 Nov 18 19:14 2014 write_batch.o
rw-rw-rw- 0/0 118371 Nov 18 19:14 2014 block.o
rw-rw-rw- 0/0  69977 Nov 18 19:14 2014 block_builder.o
rw-rw-rw- 0/0 109704 Nov 18 19:14 2014 filter_block.o
rw-rw-rw- 0/0  40204 Nov 18 19:14 2014 format.o
rw-rw-rw- 0/0  36526 Nov 18 19:14 2014 iterator.o
rw-rw-rw- 0/0 241740 Nov 18 19:14 2014 merger.o
rw-rw-rw- 0/0  60468 Nov 18 19:14 2014 table.o
rw-rw-rw- 0/0 123558 Nov 18 19:14 2014 table_builder.o
rw-rw-rw- 0/0 101216 Nov 18 19:14 2014 two_level_iterator.o
rw-rw-rw- 0/0  37700 Nov 18 19:14 2014 arena.o
rw-rw-rw- 0/0  31347 Nov 18 19:14 2014 bloom.o
rw-rw-rw- 0/0  52787 Nov 18 19:14 2014 cache.o
rw-rw-rw- 0/0  33934 Nov 18 19:14 2014 coding.o
rw-rw-rw- 0/0  41398 Nov 18 19:14 2014 comparator.o
rw-rw-rw- 0/0  18170 Nov 18 19:14 2014 crc32c.o
rw-rw-rw- 0/0 126978 Nov 18 19:14 2014 env.o
rw-rw-rw- 0/0    553 Nov 18 19:14 2014 env_posix.o
rw-rw-rw- 0/0 339470 Nov 18 19:14 2014 env_win.o
rw-rw-rw- 0/0  22594 Nov 18 19:14 2014 filter_policy.o
rw-rw-rw- 0/0   7743 Nov 18 19:14 2014 hash.o
rw-rw-rw- 0/0  39699 Nov 18 19:14 2014 histogram.o
rw-rw-rw- 0/0  36131 Nov 18 19:14 2014 logging.o
rw-rw-rw- 0/0   7945 Nov 18 19:14 2014 options.o
rw-rw-rw- 0/0  32284 Nov 18 19:14 2014 status.o
rw-rw-rw- 0/0  21346 Nov 18 19:14 2014 port_win.o
hero member
Activity: 868
Merit: 1000
My last question!
I was dreaming of finally after days of reading variuos tutorial,to compile my first wallet, and at the final stage i stuck here:


./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x569): undefined reference to `l
eveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x6af): undefined reference to `l
eveldb::Status::ToString() const'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x8a6): undefined reference to `l
eveldb::WriteBatch::~WriteBatch()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x8fb): undefined reference to `l
eveldb::WriteBatch::WriteBatch()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x961): undefined reference to `l
eveldb::WriteBatch::~WriteBatch()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x984): undefined reference to `l
eveldb::Status::ToString() const'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0xb45): undefined reference to `l
eveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) const'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0xb72): undefined reference to `l
eveldb::WriteBatch::Handler::~Handler()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0xba9): undefined reference to `l
eveldb::WriteBatch::Handler::~Handler()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0xbca): undefined reference to `l
eveldb::Status::ToString() const'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x154e): undefined reference to `
leveldb::Status::ToString() const'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x16e7): undefined reference to `
leveldb::Options::Options()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x1771): undefined reference to `
leveldb::Options::Options()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x17cc): undefined reference to `
leveldb::NewLRUCache(unsigned int)'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x17db): undefined reference to `
leveldb::NewBloomFilterPolicy(int)'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x1833): undefined reference to `
leveldb::NewBloomFilterPolicy(int)'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x1acd): undefined reference to `
leveldb::WriteBatch::~WriteBatch()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x3135): undefined reference to `
leveldb::WriteBatch::Delete(leveldb::Slice const&)'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x5f16): undefined reference to `
leveldb::WriteBatch::~WriteBatch()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x5f46): undefined reference to `
leveldb::WriteBatch::~WriteBatch()'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\txdb-leveldb.o: bad reloc address 0x7 in section `.text$_ZN5bo
ost6detail17sp_counted_impl_pINS_16exception_detail10clone_implINS2_14bad_excep t
ion_EEEED0Ev[__ZN5boost6detail17sp_counted_impl_pINS_16exception_detail10clone_i
mplINS2_14bad_exception_EEEED0Ev]'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:304: recipe for target 'release\test-qt.exe' failed
mingw32-make[1]: *** [release\test-qt.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/test'
Makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2

which coin are you compiling?
have you already compiled leveldb like stated in this tutorial?

Yes of course. I will try to be more clear,but all night long spent on this error makes my tired.

-My altcoin fork is based on bitcoin 0.9.1.1-beta
-I HAVE ALREADY BUILT LINUX WALLET of the same altcoin WITHOUT PROBLEMS,and make all test on testnet and main net and it works just fine.
-So i decide to build als windows wallet for a release of the coin.
-Have installed all required deps required from that coin in .pro files and compiled without error, apart OPENSLL, when installing OPENSLL
make
First he ask me to do: make depend before install
I do. Then i do: make
Then error:
Nothing to be done for `all (after 10 minutes of compiling):

But i think i can go ahead.

This is my header of  qt.pro file:

Code:
windows {
BOOST_LIB_SUFFIX=-mgw49-mt-s-1_55
BOOST_INCLUDE_PATH=C:/deps/boost_1_55_0
BOOST_LIB_PATH=C:/deps/boost_1_55_0/stage/lib
BDB_INCLUDE_PATH=C:/deps/db-4.8.30.NC/build_unix
BDB_LIB_PATH=C:/deps/db-4.8.30.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1h/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1h
MINIUPNPC_INCLUDE_PATH=C:/deps
LIBPNG_INCLUDE_PATH=C:/deps/libpng-1.6.9
LIBPNG_LIB_PATH=C:/deps/libpng-1.6.9/.libs
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc
QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.3
QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.3/.libs
}

-Then start compile with QT 5.3.2 after already compiled first libleveld.a and libmemenv.a with "TARGET_OS NATIVE_WINDOWS make libleveldb.a liblevedmn.a".
At the end i got the errors written before:
Code:
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x3135): undefined reference to `
leveldb::WriteBatch::Delete(leveldb::Slice const&)'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x5f16): undefined reference to `
leveldb::WriteBatch::~WriteBatch()'
./build\txdb-leveldb.o:txdb-leveldb.cpp:(.text+0x5f46): undefined reference to `
leveldb::WriteBatch::~WriteBatch()'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\txdb-leveldb.o: bad reloc address 0x7 in section `.text$_ZN5bo
ost6detail17sp_counted_impl_pINS_16exception_detail10clone_implINS2_14bad_except
ion_EEEED0Ev[__ZN5boost6detail17sp_counted_impl_pINS_16exception_detail10clone_i
mplINS2_14bad_exception_EEEED0Ev]'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:304: recipe for target 'release\test-qt.exe' failed
mingw32-make[1]: *** [release\test-qt.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/test'
Makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2


This really makes me hungry!  Wink
I have spent all saturday night in front on pc,with my wife screaming for go out all the time here in italy.
-I'm on windows xp sp3 32 bit

And this is my entire qt.pro files:
Code:
INCLUDEPATH += src src/json src/qt
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
CONFIG += no_include_pwd
CONFIG += thread
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
lessThan(QT_MAJOR_VERSION, 5): CONFIG += static
QMAKE_CXXFLAGS = -fpermissive
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
}
windows {
BOOST_LIB_SUFFIX=-mgw49-mt-s-1_55
BOOST_INCLUDE_PATH=C:/deps/boost_1_55_0
BOOST_LIB_PATH=C:/deps/boost_1_55_0/stage/lib
BDB_INCLUDE_PATH=C:/deps/db-4.8.30.NC/build_unix
BDB_LIB_PATH=C:/deps/db-4.8.30.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1h/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1h
MINIUPNPC_INCLUDE_PATH=C:/deps
LIBPNG_INCLUDE_PATH=C:/deps/libpng-1.6.9
LIBPNG_LIB_PATH=C:/deps/libpng-1.6.9/.libs
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc
QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.3
QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.3/.libs
}
# for boost 1.37, add -mt to the boost libraries
# use: qmake BOOST_LIB_SUFFIX=-mt
# for boost thread win32 with _win32 sufix
# use: BOOST_THREAD_LIB_SUFFIX=_win32-...
# or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
# Dependency library locations can be customized with:
# BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH,
# BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
# use: qmake "RELEASE=1"
contains(RELEASE, 1) {
# Mac: compile for maximum compatibility (10.5, 32-bit)
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk
!windows:!macx {
# Linux: static link
LIBS += -Wl,-Bstatic
}
}
!win32 {
# for extra security against potential buffer overflows: enable GCCs Stack Smashing Protection
QMAKE_CXXFLAGS *= -fstack-protector-all --param ssp-buffer-size=1
QMAKE_LFLAGS *= -fstack-protector-all --param ssp-buffer-size=1
# We need to exclude this for Windows cross compile with MinGW 4.2.x, as it will result in a non-working executable!
# This can be enabled for Windows, when we switch to MinGW >= 4.4.x.
}
# for extra security on Windows: enable ASLR and DEP via GCC linker flags
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static
win32:QMAKE_LFLAGS += -static-libgcc -static-libstdc++
lessThan(QT_MAJOR_VERSION, 5): win32: QMAKE_LFLAGS *= -static
# use: qmake "USE_QRCODE=1"
# libqrencode (http://fukuchi.org/works/qrencode/index.en.html) must be installed for support
contains(USE_QRCODE, 1) {
message(Building with QRCode support)
DEFINES += USE_QRCODE
LIBS += -lqrencode
}
# use: qmake "USE_UPNP=1" ( enabled by default; default)
# or: qmake "USE_UPNP=0" (disabled by default)
# or: qmake "USE_UPNP=-" (not supported)
# miniupnpc (http://miniupnp.free.fr/files/) must be installed for support
contains(USE_UPNP, -) {
message(Building without UPNP support)
} else {
message(Building with UPNP support)
count(USE_UPNP, 0) {
USE_UPNP=1
}
DEFINES += USE_UPNP=$$USE_UPNP STATICLIB
INCLUDEPATH += $$MINIUPNPC_INCLUDE_PATH
LIBS += $$join(MINIUPNPC_LIB_PATH,,-L,) -lminiupnpc
win32:LIBS += -liphlpapi
}
# use: qmake "USE_DBUS=1"
contains(USE_DBUS, 1) {
message(Building with DBUS (Freedesktop notifications) support)
DEFINES += USE_DBUS
QT += dbus
}
# use: qmake "USE_IPV6=1" ( enabled by default; default)
# or: qmake "USE_IPV6=0" (disabled by default)
# or: qmake "USE_IPV6=-" (not supported)
contains(USE_IPV6, -) {
message(Building without IPv6 support)
} else {
count(USE_IPV6, 0) {
USE_IPV6=1
}
DEFINES += USE_IPV6=$$USE_IPV6
}
contains(BITCOIN_NEED_QT_PLUGINS, 1) {
DEFINES += BITCOIN_NEED_QT_PLUGINS
QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets
}
INCLUDEPATH += src/leveldb/include src/leveldb/helpers
LIBS += $$PWD/src/leveldb/libleveldb.a $$PWD/src/leveldb/libmemenv.a
SOURCES += src/txdb-leveldb.cpp \
src/bloom.cpp \
src/hash.cpp \
src/aes_helper.c \
src/blake.c \
src/bmw.c \
src/cubehash.c \
src/echo.c \
src/groestl.c \
src/jh.c \
src/keccak.c \
src/luffa.c \
src/shavite.c \
src/simd.c \
src/skein.c
!win32 {
# we use QMAKE_CXXFLAGS_RELEASE even without RELEASE=1 because we use RELEASE to indicate linking preferences not -O preferences
genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a
} else {
# make an educated guess about what the ranlib command is called
isEmpty(QMAKE_RANLIB) {
QMAKE_RANLIB = $$replace(QMAKE_STRIP, strip, ranlib)
}
LIBS += -lshlwapi
#genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX TARGET_OS=OS_WINDOWS_CROSSCOMPILE $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libleveldb.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libmemenv.a
}
genleveldb.target = $$PWD/src/leveldb/libleveldb.a
genleveldb.depends = FORCE
PRE_TARGETDEPS += $$PWD/src/leveldb/libleveldb.a
QMAKE_EXTRA_TARGETS += genleveldb
# Gross ugly hack that depends on qmake internals, unfortunately there is no other way to do it.
QMAKE_CLEAN += $$PWD/src/leveldb/libleveldb.a; cd $$PWD/src/leveldb ; $(MAKE) clean
# regenerate src/build.h
!windows|contains(USE_BUILD_INFO, 1) {
genbuild.depends = FORCE
genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
genbuild.target = $$OUT_PWD/build/build.h
PRE_TARGETDEPS += $$OUT_PWD/build/build.h
QMAKE_EXTRA_TARGETS += genbuild
DEFINES += HAVE_BUILD_INFO
}
contains(USE_O3, 1) {
message(Building O3 optimization flag)
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS += -O3
QMAKE_CFLAGS += -O3
}
*-g++-32 {
message("32 platform, adding -msse2 flag")
QMAKE_CXXFLAGS += -msse2
QMAKE_CFLAGS += -msse2
}
QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
# Input
DEPENDPATH += src src/json src/qt
HEADERS += src/qt/bitcoingui.h \
src/qt/transactiontablemodel.h \
src/qt/addresstablemodel.h \
src/qt/optionsdialog.h \
src/qt/coincontroldialog.h \
src/qt/coincontroltreewidget.h \
src/qt/sendcoinsdialog.h \
src/qt/addressbookpage.h \
src/qt/signverifymessagedialog.h \
src/qt/aboutdialog.h \
src/qt/editaddressdialog.h \
src/qt/bitcoinaddressvalidator.h \
src/alert.h \
src/addrman.h \
src/base58.h \
src/bignum.h \
src/checkpoints.h \
src/compat.h \
src/coincontrol.h \
src/sync.h \
src/util.h \
src/uint256.h \
src/kernel.h \
src/scrypt.h \
src/pbkdf2.h \
src/serialize.h \
src/strlcpy.h \
src/main.h \
src/miner.h \
src/net.h \
src/key.h \
src/db.h \
src/txdb.h \
src/walletdb.h \
src/script.h \
src/init.h \
src/irc.h \
src/mruset.h \
src/json/json_spirit_writer_template.h \
src/json/json_spirit_writer.h \
src/json/json_spirit_value.h \
src/json/json_spirit_utils.h \
src/json/json_spirit_stream_reader.h \
src/json/json_spirit_reader_template.h \
src/json/json_spirit_reader.h \
src/json/json_spirit_error_position.h \
src/json/json_spirit.h \
src/qt/clientmodel.h \
src/qt/guiutil.h \
src/qt/transactionrecord.h \
src/qt/guiconstants.h \
src/qt/optionsmodel.h \
src/qt/monitoreddatamapper.h \
src/qt/transactiondesc.h \
src/qt/transactiondescdialog.h \
src/qt/bitcoinamountfield.h \
src/wallet.h \
src/keystore.h \
src/qt/transactionfilterproxy.h \
src/qt/transactionview.h \
src/qt/walletmodel.h \
src/bitcoinrpc.h \
src/qt/overviewpage.h \
src/qt/csvmodelwriter.h \
src/crypter.h \
src/qt/sendcoinsentry.h \
src/qt/qvalidatedlineedit.h \
src/qt/bitcoinunits.h \
src/qt/qvaluecombobox.h \
src/qt/askpassphrasedialog.h \
src/protocol.h \
src/qt/notificator.h \
src/qt/qtipcserver.h \
src/allocators.h \
src/ui_interface.h \
src/qt/rpcconsole.h \
src/version.h \
src/netbase.h \
src/clientversion.h \
src/bloom.h \
src/checkqueue.h \
src/hash.h \
src/hashblock.h \
src/limitedmap.h \
src/sph_blake.h \
src/sph_bmw.h \
src/sph_cubehash.h \
src/sph_echo.h \
src/sph_groestl.h \
src/sph_jh.h \
src/sph_keccak.h \
src/sph_luffa.h \
src/sph_shavite.h \
src/sph_simd.h \
src/sph_skein.h \
src/sph_types.h \
src/threadsafety.h \
src/txdb-leveldb.h
SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/qt/transactiontablemodel.cpp \
src/qt/addresstablemodel.cpp \
src/qt/optionsdialog.cpp \
src/qt/sendcoinsdialog.cpp \
src/qt/coincontroldialog.cpp \
src/qt/coincontroltreewidget.cpp \
src/qt/addressbookpage.cpp \
src/qt/signverifymessagedialog.cpp \
src/qt/aboutdialog.cpp \
src/qt/editaddressdialog.cpp \
src/qt/bitcoinaddressvalidator.cpp \
src/alert.cpp \
src/version.cpp \
src/sync.cpp \
src/util.cpp \
src/netbase.cpp \
src/key.cpp \
src/script.cpp \
src/main.cpp \
src/miner.cpp \
src/init.cpp \
src/net.cpp \
src/irc.cpp \
src/checkpoints.cpp \
src/addrman.cpp \
src/db.cpp \
src/walletdb.cpp \
src/qt/clientmodel.cpp \
src/qt/guiutil.cpp \
src/qt/transactionrecord.cpp \
src/qt/optionsmodel.cpp \
src/qt/monitoreddatamapper.cpp \
src/qt/transactiondesc.cpp \
src/qt/transactiondescdialog.cpp \
src/qt/bitcoinstrings.cpp \
src/qt/bitcoinamountfield.cpp \
src/wallet.cpp \
src/keystore.cpp \
src/qt/transactionfilterproxy.cpp \
src/qt/transactionview.cpp \
src/qt/walletmodel.cpp \
src/bitcoinrpc.cpp \
src/rpcdump.cpp \
src/rpcnet.cpp \
src/rpcmining.cpp \
src/rpcwallet.cpp \
src/rpcblockchain.cpp \
src/rpcrawtransaction.cpp \
src/qt/overviewpage.cpp \
src/qt/csvmodelwriter.cpp \
src/crypter.cpp \
src/qt/sendcoinsentry.cpp \
src/qt/qvalidatedlineedit.cpp \
src/qt/bitcoinunits.cpp \
src/qt/qvaluecombobox.cpp \
src/qt/askpassphrasedialog.cpp \
src/protocol.cpp \
src/qt/notificator.cpp \
src/qt/qtipcserver.cpp \
src/qt/rpcconsole.cpp \
src/noui.cpp \
src/kernel.cpp \
src/scrypt-arm.S \
src/scrypt-x86.S \
src/scrypt-x86_64.S \
src/scrypt.cpp \
src/pbkdf2.cpp
RESOURCES += \
src/qt/bitcoin.qrc
FORMS += \
src/qt/forms/coincontroldialog.ui \
src/qt/forms/sendcoinsdialog.ui \
src/qt/forms/addressbookpage.ui \
src/qt/forms/signverifymessagedialog.ui \
src/qt/forms/aboutdialog.ui \
src/qt/forms/editaddressdialog.ui \
src/qt/forms/transactiondescdialog.ui \
src/qt/forms/overviewpage.ui \
src/qt/forms/sendcoinsentry.ui \
src/qt/forms/askpassphrasedialog.ui \
src/qt/forms/rpcconsole.ui \
src/qt/forms/optionsdialog.ui
contains(USE_QRCODE, 1) {
HEADERS += src/qt/qrcodedialog.h
SOURCES += src/qt/qrcodedialog.cpp
FORMS += src/qt/forms/qrcodedialog.ui
}
CODECFORTR = UTF-8
# for lrelease/lupdate
# also add new translations to src/qt/bitcoin.qrc under translations/
TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.ts)
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
isEmpty(QM_DIR):QM_DIR = $$PWD/src/qt/locale
# automatically build translations, so they can be included in resource file
TSQM.name = lrelease ${QMAKE_FILE_IN}
TSQM.input = TRANSLATIONS
TSQM.output = $$QM_DIR/${QMAKE_FILE_BASE}.qm
TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
TSQM.CONFIG = no_link
QMAKE_EXTRA_COMPILERS += TSQM
# "Other files" to show in Qt Creator
OTHER_FILES += \
doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc
# platform specific defaults, if not overridden on command line
isEmpty(BOOST_LIB_SUFFIX) {
macx:BOOST_LIB_SUFFIX = -mt
windows:BOOST_LIB_SUFFIX = -mgw48-mt-s-1_550
}
isEmpty(BOOST_THREAD_LIB_SUFFIX) {
BOOST_THREAD_LIB_SUFFIX = $$BOOST_LIB_SUFFIX
}
isEmpty(BDB_LIB_PATH) {
macx:BDB_LIB_PATH = /opt/local/lib/db48
}
isEmpty(BDB_LIB_SUFFIX) {
macx:BDB_LIB_SUFFIX = -4.8
}
isEmpty(BDB_INCLUDE_PATH) {
macx:BDB_INCLUDE_PATH = /opt/local/include/db48
}
isEmpty(BOOST_LIB_PATH) {
macx:BOOST_LIB_PATH = /opt/local/lib
}
isEmpty(BOOST_INCLUDE_PATH) {
macx:BOOST_INCLUDE_PATH = /opt/local/include
}
windows:DEFINES += WIN32
windows:RC_FILE = src/qt/res/bitcoin-qt.rc
windows:!contains(MINGW_THREAD_BUGFIX, 0) {
# At least qmake's win32-g++-cross profile is missing the -lmingwthrd
# thread-safety flag. GCC has -mthreads to enable this, but it doesn't
# work with static linking. -lmingwthrd must come BEFORE -lmingw, so
# it is prepended to QMAKE_LIBS_QT_ENTRY.
# It can be turned off with MINGW_THREAD_BUGFIX=0, just in case it causes
# any problems on some untested qmake profile now or in the future.
DEFINES += _MT BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN
QMAKE_LIBS_QT_ENTRY = -lmingwthrd $$QMAKE_LIBS_QT_ENTRY
}
!windows:!macx {
DEFINES += LINUX
LIBS += -lrt
}
macx:HEADERS += src/qt/macdockiconhandler.h
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm
macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0
macx:ICON = src/qt/res/icons/bitcoin.icns
macx:TARGET = "ohmygod-Qt"
macx:QMAKE_CFLAGS_THREAD += -pthread
macx:QMAKE_LFLAGS_THREAD += -pthread
macx:QMAKE_CXXFLAGS_THREAD += -pthread
# Set libraries and includes at end, to use platform-defined defaults if not overridden
INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
# -lgdi32 has to happen after -lcrypto (see #681)
windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
windows:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
contains(RELEASE, 1) {
!windows:!macx {
# Linux: turn dynamic linking back on for c/c++ runtime libraries
LIBS += -Wl,-Bdynamic
}
}
system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)

Have only use command: QMAKE xxx-qt.pro and the MAKE, since it takes right parameters directly from .pro files(upnp=1,IPV6=1 etc etc)

EDIT:
Have also compiled QT4.8.6 and force compiling with qt4.8.6 instead qt5, but i got the same error at the end.

Is someone's is so gently to help me i really appreciate. This is also my skype id: nacnaus (i don't speak very well english since i'm from italy, but we could try).
Pages:
Jump to: