Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: BanzaiBTC on April 13, 2015, 10:59:14 PM



Title: Compiling wallet issue
Post by: BanzaiBTC on April 13, 2015, 10:59:14 PM
(since there is no technical subforum for altcoins, I post it here. Feel free to move the topic moderator ;) )



Hi,


I have been trying to compile a wallet on windows 7 64bit, But im having a lot of issues with it. Just when I think I fixed it, something else pops up  :D

In short:

I followed this guide
https://bitcointalk.org/index.php?topic=149479.0 (https://bitcointalk.org/index.php?topic=149479.0)

And this one
https://cryptocointalk.com/topic/13204-how-to-build-a-windows-qt-wallet-for-any-coin-yourself-from-source-code-step-by-step-instructions/ (https://cryptocointalk.com/topic/13204-how-to-build-a-windows-qt-wallet-for-any-coin-yourself-from-source-code-step-by-step-instructions/)


Im trying to build the Photon-QT (practice purposes), posted in the cryptocointalk link

The issue I have atm is this error:

ldb_cxx not found

I looked into the DB folder. and it is there! (4.8)

However, after freaking out for the 99th time why it isnt working :P I found this

Quote
Okay I figured it out.
 
After configuration I edit the file db.h
 
I changed line 113 from
typedef pthread_t db_threadid_t;

to:

typedef u_int32_t db_threadid_t;
And it finished compiling.

Of course I tried this myself. And with succes. The wallet is fully compiling. BUT when I open the wallet, it says it cant grab a hold of the Appdata folder.. I again checked if the appdata/roaming folder of Photon existed. And it did.

I deleted the whole photon folder in roaming, but I still get the same error message. sighs...


After that I recompiled DB 4.8 the normal way, But then it is again this error after 2-3 min of compiling : ldb_cxx not found

I tried almost eveything (this isnt the first issue I am running into)

I never had any trouble compiling wallets on ubuntu. I even tried a crosscompile. But I am a bit lost on that part as well :-[ :-[


If someone knows these issues. Please respond here   ;D



Cheers,

Banzai


EDIT:

I can pm you the makefile/pro if you need it  ;) And no I didnt forget to put the deps folders in there  :D


Title: Re: Compiling wallet issue
Post by: presstab on April 13, 2015, 11:06:29 PM
The .pro probably isn't customized to your deps :/


Title: Re: Compiling wallet issue
Post by: BanzaiBTC on April 13, 2015, 11:17:43 PM
The .pro probably isn't customized to your deps :/

I think it is, Since the guy who made this coin also made that tutorial. I just changed the paths in the .pro to my own

https://github.com/photonproject/photon/blob/master/Photon-qt.pro (https://github.com/photonproject/photon/blob/master/Photon-qt.pro)

Note: Im using boost 1_53_0, Since 1_55_0 and 1_57_0 arent compiling all the needed files to the boost/stage folder on my pc.. And I changed that in my .pro of course. I replaced the 1_55 with 1_53.. Thats it.. Nothing more is changed except the deps paths. Which I checked about 20x already :P


Title: Re: Compiling wallet issue
Post by: presstab on April 13, 2015, 11:42:19 PM
Did you change the bdb path to point to the correct spot? I don't think either of those tutorials tell you to put it in /deps/db but instead something like /deps/db-4.8.30.NC


Title: Re: Compiling wallet issue
Post by: BanzaiBTC on April 13, 2015, 11:44:32 PM
Did you change the bdb path to point to the correct spot? I don't think either of those tutorials tell you to put it in /deps/db but instead something like /deps/db-4.8.30.NC

Yes. I changed everything to the right location.

On the first page of the cryptocointalk link in my OP post, there is a guy with the same issue. But after that he went silent  :-X

Thank you for replying btw  :)


Title: Re: Compiling wallet issue
Post by: presstab on April 13, 2015, 11:49:05 PM
Did you change the bdb path to point to the correct spot? I don't think either of those tutorials tell you to put it in /deps/db but instead something like /deps/db-4.8.30.NC

Yes. I changed everything to the right location.

On the first page of the cryptocointalk link in my OP post, there is a guy with the same issue. But after that he went silent  :-X

Thank you for replying btw  :)

Just pastebin your .pro and maybe take a screenshot of what your deps folder looks like. It is impossible for someone to guess what you did wrong without knowing any information about what you are doing. Your error means that your linker is not finding bdb.


Title: Re: Compiling wallet issue
Post by: BanzaiBTC on April 13, 2015, 11:57:33 PM
The part I modified within the .pro

http://puu.sh/hd47l/0f73ed31d1.png (http://puu.sh/hd47l/0f73ed31d1.png)


As you can see I have several deps folders written in there ;) Because ive been trying with multiple deps builds. But they all point back to the right folder  ;)


Title: Re: Compiling wallet issue
Post by: presstab on April 14, 2015, 12:07:00 AM
if you get into the build_unix directory do you see libdb_cxx.a


Title: Re: Compiling wallet issue
Post by: BanzaiBTC on April 14, 2015, 12:18:40 AM
Yes :P That is my problem.

I removed and recompiled it over and over... Even with the "fix" quoted in the OP. With that the wallet did compile... But it didnt came far. It stopped at the opening splashscreen giving me a warning like : error initializing database environment. Can not obtain appdata/roaming folder PHOTON! - something like that :-\


Title: Re: Compiling wallet issue
Post by: BanzaiBTC on April 14, 2015, 02:27:16 AM
Alright! Somehow I managed to fix this...

In a really strange way though..

After not being able to compile myself, I tried the "easywinbuilder" posted in another topic on bitcointalk. It had a tool to compile the dependencies in it. I configured them to today standards, and used the Db 4.8 folder from there in my .pro file. Made a build through qt prompt and it worked all of a sudden... Very strange... But im a happy man. :)

Thanks presstab for your help  :)

Cheers