Bitcoin Forum
November 11, 2024, 04:01:22 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Help Compiling Litecoin for Windows  (Read 9692 times)
AlexMerced (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile WWW
May 09, 2013, 01:11:33 AM
 #21

compile with USE_UPNP= at the end of compiling statement

will give that a shot when I get home today so basically your saying I should type into the command line the following

Quote
mingw32-make -f makefile.mingw USE_PNP=

correct

I got the same error, if I went into the source and commented out miniupnp.h would that be adviseable?

Petr1fied
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
May 09, 2013, 01:18:04 AM
 #22

I found commenting out this line worked:
Code:
USE_UPNP:=0

At least when it came to compiling the daemon anyway.
Petr1fied
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
May 09, 2013, 06:31:48 PM
Last edit: May 16, 2013, 12:39:42 PM by Petr1fied
 #23

OK figured out the correct way to resolve this issue by actually reading doc/build-msw.txt

Download this and extract to C:\deps

In a command prompt:
Code:
cd C:\deps\miniupnpc-1.8.20130503
mingw32-make -f Makefile.mingw
mkdir miniupnpc
copy *.h miniupnpc

In your alt coins src folder open makefile.mingw and change the miniupnpc part to this:
Code:
ifdef USE_UPNP
 INCLUDEPATHS += -I"C:\deps\miniupnpc-1.8.20130503"
 LIBPATHS += -L"C:\deps\miniupnpc-1.8.20130503"
 LIBS += -l miniupnpc -l iphlpapi
 DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
endif

The daemon should compile without problems after that regardless of whether or not you add USE_PNP= to the build parameters. You can even remove the comment on the line I mentioned in my previous post (if you added it).

Still trying to figure out why I can't get the wallet to compile though.  Cry
JohnDorien
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
May 09, 2013, 06:34:37 PM
 #24

Sorry i made a mistake it has to be USE_UPNP=

Sorry for the forgotten "u" Smiley
Petr1fied
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
May 09, 2013, 06:38:06 PM
 #25

damn, can't believe I didn't notice the lack of a U. That's copy and paste for you. I wondered why it didn't make a difference. Cheesy

Still with the method I mentioned above you can compile with UPNP support if you want it.
wiggi
Sr. Member
****
Offline Offline

Activity: 403
Merit: 251


View Profile
May 10, 2013, 07:06:39 PM
 #26

Another daemon compile error, "Building headless Bitcoin and Bitcoin-qt on Windows" says
 3.3 From a Windows command prompt run:
 cd C:\bitcoin\bitcoin-master\src
 mingw32-make -f makefile.mingw


That's ok for bitcoin-master, litecoin0.6.3c gives me this error:
make (e=5): Access is denied

But it works from MinGw/MSYS shell.
AlexMerced (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile WWW
May 11, 2013, 09:24:34 PM
 #27

Ok I successfully compiled the daemon, when I try to compile litecoin.exe here is what I get


AlexMerced (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile WWW
May 13, 2013, 12:05:56 AM
 #28

bump

nocoin
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
May 13, 2013, 12:16:00 AM
 #29

Obviously, you need db_cxx.h somewhere in include dir. It's from berkeley db, as I remember.
defaced
Legendary
*
Offline Offline

Activity: 2198
Merit: 1014


Franko is Freedom


View Profile WWW
May 13, 2013, 12:21:08 AM
 #30

May i suggest using gitian and gitian-win32 on linux and crosscompile, you will thank me later.


There is updated files here

 https://github.com/franko-org/franko/tree/master/contrib/gitian-descriptors

Fortune Favors the Brave
Borderless CharityEXPANSEEXRAllergy FinderFranko Is Freedom
js2082
Member
**
Offline Offline

Activity: 70
Merit: 10



View Profile
May 13, 2013, 12:44:28 AM
 #31

this is the berkeley DB include file, put it in your -I path.
AlexMerced (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile WWW
May 13, 2013, 12:53:10 PM
 #32

May i suggest using gitian and gitian-win32 on linux and crosscompile, you will thank me later.


There is updated files here

 https://github.com/franko-org/franko/tree/master/contrib/gitian-descriptors


I appreciate that and I'll try that later on, I just know a lot of people have trouble doing this so I figured if I try to figure this out and document my efforts in this thread it'll help a lot of people down the road.

Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
May 13, 2013, 12:56:57 PM
 #33

I've compiled Bitcoind and Bitcoin-Qt AND PPCoind directly under Windows and MinGW.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
AlexMerced (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile WWW
May 13, 2013, 02:16:56 PM
 #34

I've compiled Bitcoind and Bitcoin-Qt AND PPCoind directly under Windows and MinGW.

How about litecoin?

worldspace
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
September 20, 2013, 08:43:05 PM
 #35

i was able to compile bitcoin and litecoin but litecoin crashes at start Cry
Pages: « 1 [2]  All
  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!