Bitcoin Forum
June 24, 2024, 09:06:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling wallet issue  (Read 556 times)
BanzaiBTC (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Chipcoin Developer


View Profile WWW
April 13, 2015, 10:59:14 PM
 #1

(since there is no technical subforum for altcoins, I post it here. Feel free to move the topic moderator Wink )



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  Cheesy

In short:

I followed this guide
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/


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.Cool

However, after freaking out for the 99th time why it isnt working Tongue 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 Embarrassed Embarrassed


If someone knows these issues. Please respond here   Grin



Cheers,

Banzai


EDIT:

I can pm you the makefile/pro if you need it  Wink And no I didnt forget to put the deps folders in there  Cheesy
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
April 13, 2015, 11:06:29 PM
 #2

The .pro probably isn't customized to your deps :/

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
BanzaiBTC (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Chipcoin Developer


View Profile WWW
April 13, 2015, 11:17:43 PM
 #3

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

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 Tongue
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
April 13, 2015, 11:42:19 PM
 #4

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

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
BanzaiBTC (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Chipcoin Developer


View Profile WWW
April 13, 2015, 11:44:32 PM
 #5

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  Lips sealed

Thank you for replying btw  Smiley
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
April 13, 2015, 11:49:05 PM
 #6

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  Lips sealed

Thank you for replying btw  Smiley

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.

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
BanzaiBTC (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Chipcoin Developer


View Profile WWW
April 13, 2015, 11:57:33 PM
 #7

The part I modified within the .pro

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


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

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
April 14, 2015, 12:07:00 AM
 #8

if you get into the build_unix directory do you see libdb_cxx.a

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
BanzaiBTC (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Chipcoin Developer


View Profile WWW
April 14, 2015, 12:18:40 AM
 #9

Yes Tongue 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 Undecided
BanzaiBTC (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Chipcoin Developer


View Profile WWW
April 14, 2015, 02:27:16 AM
 #10

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. Smiley

Thanks presstab for your help  Smiley

Cheers
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!