Bitcoin Forum
June 24, 2024, 07:58:36 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Archival / Re: Mining pools list on: March 13, 2015, 04:39:21 PM
Bitcoin and Altcoin pool. (I'll post altcoin information in the proper thread. This is for the Bitcoin pool.)

Pool:      Tux's Coinpool
Website:   www.altcoinaltpool.net
Proxy:      No
Gen addr:   16Zec538DisiM24XFvfAty8n5MEqpaeJen
Payout:      Proportional
Fee:      2%
Pay Tx:      No
Vardiff:   20SPM
Local Work:   Stratum
Orphans:   No
Min Wthdrl:   .01
Merge Mine:   No, TBA

A quick question before I update the list - are you sure you want to reward your miner's proportionally, given the problems that can cause? http://bitcoin.stackexchange.com/questions/5072/what-is-pool-hopping



Thank you for the links, I read up on all of that.
I'm actually looking into converting my pool over to PPLNS or DGM, but for now I'm running coiniumserv and learning all of the ins and outs.

For example, a miner joined one of my altcoin pools today (ACOIN) and one of the DB columns for the currency was too small. (It was VARCHAR(4) instead of at least VARCHAR(5))

So the payment didn't go out when it was supposed to, but it has been corrected and the miner was manually reimbursed more than what they mined since I didn't have it setup correctly.


Anyway, any pointers, tips, ways to convert to PPLNS or DGM... it's all appreciated and I will read it and do my best to apply it.



Anyone who needs to contact me about the pool can do so at jt4590@gmail.com. I always read all of my emails and will do my best to respond to requests and inquiries in a timely manner.
2  Alternate cryptocurrencies / Pools (Altcoins) / Re: Alternate Mining Pools List on: March 12, 2015, 10:06:00 PM
Pool:      Tux's Coinpool
Website: www.altcoinaltpool.net
Admin Email: jt4590@gmail.com

Coins:    Acoin, Digitalcoin, eMark, Fireflycoin, Peercoin, Zetacoin
Algo:                     Sha-256
PayTX:                  No
VarDiff:                 Yes
Local work:           Stratum
Pay orphans:         No
Min withdrawal:    .01             (It's on auto-payout every hour you can see my stats verify any math)
Payment:             Proportional
Pool Fee:             2%
Proxy:                 No

(I can add other coins quickly upon request)
(I can add other algos quickly upon request)
(I can setup special ports for different difficulties upon request or donation addresses, etc.)

This is my first coinpool and I'm flexible on everything listed here. Right now I'm mining on it myself on Acoin, Digitalcoin, and Fireflycoin. I use the 2% fee to pay for the pool's hardware, which I will be upgrading, and to help support the Fireflycoin developer, Jude. I can set up a multipool as well if anyone would like that.

Bitcoin is also available on the pool, but this information is posted in the Bitcoin thread.


Miner AXMbKjGM4VcoCMTd2wnzxyP8VJvdDfhX3e had trouble with ACOIN today. (DB Column too short)
This has been corrected and I added a full ACOIN to the amount you had already mined in a manual payment.
3  Other / Archival / Re: Mining pools list on: March 12, 2015, 09:16:40 PM
Bitcoin and Altcoin pool. (I'll post altcoin information in the proper thread. This is for the Bitcoin pool.)

Pool:      Tux's Coinpool
Website:   www.altcoinaltpool.net
Proxy:      No
Gen addr:   16Zec538DisiM24XFvfAty8n5MEqpaeJen
Payout:      Proportional
Fee:      2%
Pay Tx:      No
Vardiff:   20SPM
Local Work:   Stratum
Orphans:   No
Min Wthdrl:   .01
Merge Mine:   No, TBA
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: FireFlyCoin Launched! on: March 11, 2015, 02:18:21 PM

well thats not good for the coin at all......... Undecided


I got that corrected. Now the website is here:
http://www.fireflycoin.net


And there's a new coinpool for it at:
http://www.altcoinaltpool.net

You can add altcoinaltpool.net as a node if you need another node!

addnode=www.altcoinaltpool.net
5  Alternate cryptocurrencies / Announcements (Altcoins) / Re: FireFlyCoin Launched! on: February 27, 2015, 10:16:39 AM
Find someone to add KGW to FFC and have them contact me.

I'm going to look into this if it isn't added already because we've already seen attacks occur on FFC.
I believe it can be done here: https://forum.megacoin.co.nz/index.php?topic=2791.0

And then it needs the following fix if it isn't being added already: https://bitcointalk.org/index.php?topic=552895.0

Ah, you are the original dev. Email me at jt4590@gmail.com.


I've registered Fireflycoin.net so we can get a homepage for the coin back online and I'm implementing a new pool. Right now it's just on my test system but all testing has gone well. Took me this whole week to research everything and figure it out.

I'll try to compile a block explorer for FFC later if possible from Bitcoin-abe's Github source files. I'll help out on development for free, I just want to see this coin succeed and be on the FFC team.

Read my earlier forum post to you when you get the chance: https://bitcointalk.org/index.php?topic=318589.msg10595030#msg10595030
6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: FireFlyCoin Launched! on: February 27, 2015, 10:00:43 AM
Quote
* This domain name (fireflycoin.com) without content is available for sale by its owner through Sedo's Domain Marketplace. Please note that all offer/counteroffer prices are inclusive of VAT (if applicable). No additional taxes and/or VAT will be added to the final price on completion of negotiation.

so ummmmmm yeah no wonder cryptsy is dragging their feet


I've registered Fireflycoin.net so we can get a homepage for the coin back online and I'm implementing a new pool.
Right now is just on my test system but all testing has gone well. Took me this whole week to research everything and figure it out.

Nothing is up on Fireflycoin.net yet either, but I'm going to mirror the old homepage and attempt to improve it.
I'd like to get some community help on getting Fireflycoin accepted at some vendors and retailers, especially online ones and try to use it to help the sci-fi community.

Anyway, please open up discussion. I'd love to see this thread more lively.
7  Alternate cryptocurrencies / Announcements (Altcoins) / Re: FireFlyCoin Launched! on: February 27, 2015, 09:54:27 AM
How many this coin already mined? Where i can find it

Can't answer your first question right now, but I'll try to compile a block explorer for FFC later if possible from Bitcoin-abe's Github source files. Going to pick up development on this coin as I'm able to help out the original Dev. Hopefully he sees this at some point and gets in touch.

I've also registered Fireflycoin.net so we can get a homepage for the coin back online and I'm implementing a new pool. Right now it's just on my test system but all testing has gone well. Took me this whole week to research everything and figure it out.


THERE'S A FFC WALLET FILE IN THIS POST FOR YOU AND A PROCESS TO COMPILE SOURCE CODE FOR PRACTICALLY ANY WALLET IF YOU WANT TO DO IT YOURSELF!

If you would like to donate coins for this edited process, wallet file, and dependencies I will also use these funds with the developer.
BTC 1Fh4tV2FLWndRVZsRTDK1LRpPrz5rUbA5o
FFC FiEPAfU5XCGqARYVccCfkahXXFP3eUshHc


To the forum users looking to compile the Fireflycoin wallet, the source files are on GitHub and I've included a compile process below:
https://github.com/FireFlyCoin/FireFlyCoin

I've also included a link to the Firefly Wallet on dropbox for those who would rather download it without compiling:
https://dl.dropboxusercontent.com/u/69963747/Fireflycoin.7z

Heres a link to all of the completed dependency files in case you want to download them to speed up the process a bit:
You'll still have to install programs listed in Section I, you just won't need the "Download|Extract|Build" steps.
https://dl.dropboxusercontent.com/u/69963747/deps.7z
NOTES: This needs to be extracted on the C:\ drive. Copy it there, right-click the file, and select "Extract Here" in the 7-zip menu.
       (You might need to install 7-zip from Section I first.)


You can likely use this process (I didn't write the original but I've edited it to be clear/concise/concrete) to compile the wallet:
[Credit to: cinnamon-carter (developer of cinnamoncoin) & Shak3zulas (original coin making guide) & Nitrogenetics.]
[Original post: https://cryptocointalk.com/topic/13204-how-to-build-a-windows-qt-wallet-for-any-coin-yourself-from-source-code-step-by-step-instructions/]

Original Author's Donation Links:
Bitcoin 17pwTLgVhFsozanJDwDShnc4DJEP8yTMrW
Litecoin LNPhM5ggB1nxU2yFaN4rM57go14DLWLZxm
PPC PTQMj25TnycmwbiNNv5h21RCCBAA9U2Y3u
NameCoin NBNVjEYbuftJZWkgz52vhnfYfe8VKwEiEQ
i0 Coin jYwjs5b9nK4ZzNGJSeSjKnmMpYU1ijtPGK
iX coin xnmyQQbveWtk3xnQzchSjKVyG78jL1zePn
RieCoin RAfSoDfA8ERc47yJiaz6bVRokU2ziPdcu7


THE PROCESS:

How to build a Qt Wallet on Windows (and for Windows) From GitHub Source Code
NOTICE: Be careful! Source code can have payloads or viruses and you should never install a compiled QT Wallet on any of your main machines.
USE A TEST MACHINE that you can easily clean install if necessary. Better yet, keep an image of it in a working state so it can be easily reimaged.


Section I - Preparing Your Build System

TOOLS (Download these and install them first)
Notes: a) If you have a 64 bit system install 64 bit versions (You can install 32-bit as well,
          but you NEED the 64 bit ones if you have 64-bit!) Otherwise install 32-bit versions.
       b) Use the most current version unless stated differently.
       c) When installing some programs it will ask if you want to 'add to path' always answer yes.

1) Install 7z for Windows: http://www.7-zip.org/download.html

2) Install Perl for Windows: http://www.activestate.com/activeperl/downloads

3) Install Python 2 & 3: https://www.python.org/downloads/

4) Install Notepad++: http://notepad-plus-plus.org/download

5) Install MinGW 4.6.2: https://drive.google.com/file/d/0B-eDDHZG3n6dMV9mVU9FLTRLbmM/edit?usp=sharing
  a) Check the option to use preloaded repository catalogs.
  b) On the components page select all and next,then click install.
  NOTES: You might have better luck with the newest version of MinGW instead of this older version now that coin
         wallets have newer code:
    http://sourceforge.net/projects/mingw/files/latest/download?source=files
    If you choose this route: It takes forever, but make sure to select all the packages.

6)Install Mingw gcc: https://drive.google.com/file/d/0B-eDDHZG3n6dZ2szUHJrd2VlSDg/edit?usp=sharing
  a) Unzip this file using 7-zip.
  b) Rename the folder from mingw to mingw32.
  c) Copy the foler to the mingw folder which was installed in Step 4. (If you didn't change it the path will be C:\MinGW)

7) Start the msys.bat linux shell: (This opens up a 'shell' of what is basically a linux prompt you can use in windows.)
  a) Open or access the folder C:\mingw\Msys\1.0.
  b) Double click on msys.bat
  c) When it opens up right click on the top by the MINGW32~ select properties and check 'quick edit mode'.
     (Enables copying text outside of the command prompt and then pasting it into the linux shell with a right-click.)
     [WHICH WE WILL BE DOING A LOT IN A BIT...]

Cool Create a dependencies directory: (This will hold all of the required programs and libraries for compiling QT source code.)
  a) Browse to C:\
  b) Create a new folder called 'deps'. (without the quotes all lower case)

9) Download OpenSSL: http://ftp://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz
  a) Copy this file to the C:\deps folder.
     NOTES: You may want a newer version of OpenSSL as the one referenced from the older version of this article is retired.
  b) If you want a newer version: http://ftp://ftp.openssl.org/source/openssl-1.0.2.tar.gz

10) Extract|Build OpenSSL: Only do EITHER a) OR b). (I'm giving the commands for whichever version of OpenSSL you end up choosing.)
  a) FOR OLDER OpenSSL: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
     enter and wait until completion after each.
cd /c/deps/
tar xvfz openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
Configure no-shared no-dso mingw
make

  b) FOR NEWER OpenSSL: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
     enter and wait until completion after each.
cd /c/deps/
tar xvfz openssl-1.0.2.tar.gz
cd openssl-1.0.2
Configure no-shared no-dso mingw
make

11) Download|Extract|Build Berkeley DB: (You likely want the newer version from substep b)
    http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

  a) Copy this file to the C:\deps folder
     NOTES: You may want a newer version of Berkeley DB as the one referenced in the older version of this article caused some
            newer QTs not to start once compiled.
  b) If you want the newer version (You probably do...): http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz
 
  a2) FOR OLDER Berkeley DB: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
      enter and wait until completion after each.
cd /c/deps/
tar xvfz db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication

STOP HERE AND DO THE FOLLOWING BEFORE ENTERING THE LAST COMMAND.
    i. Open Notepad++.
    ii. Open the following file C:\Deps\db-4.8.30.NC\build_unix\db.h
    iii. Use CTRL+F to open the Find feature.
    iv. Type in the following in the Find window and search for it: typedef pthread_t db_threadid_t;
    v. Change that line (Line 113 in 32-bit, Line 116 in 64-bit) to: typedef u_int32_t db_threadid_t;
    vi. OK, NOW YOU CAN CLICK BACK TO THE Linux Shell from step 5 and enter the following, then press Enter and wait:
make

  b2) FOR NEWER Berkeley DB: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
      enter and wait until completion after each.
cd /c/deps/
tar xvfz db-5.1.29.NC.tar.gz
cd db-5.1.29.NC/build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication

STOP HERE AND DO THE FOLLOWING BEFORE ENTERING THE LAST COMMAND.
    i. Open Notepad++.
    ii. Open the following file C:\Deps\db-5.1.29.NC\build_unix\db.h.
    iii. Use CTRL+F to open the Find feature.
    iv. Type in the following in the Find window and search for it: typedef pthread_t db_threadid_t;
    v. Change that line (Line 113 in 32-bit, Line 116 in 64-bit) to: typedef u_int32_t db_threadid_t;
    vi. OK, NOW YOU CAN CLICK BACK TO THE Linux Shell from step 5 and enter the following, then press Enter and wait:
make

12) Download|Extract|Build boost: http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.7z/download
  a) Create the folder C:\deps\boost_1_55_0
  b) Unzip the contents of boost_1_55_0 and copy all of those files to C:\deps\boost_1_55_0.
     NOTES: The newest version of boost is currently boost_1_57_0 and by editing these steps slightly
            (like in Steps 10&11) you can use that version instead: http://sourceforge.net/projects/boost/files/boost/1.57.0/
  d) Open a Windows command line.
    i. For windows 7 click on the start button, type cmd into Search, then right-click the cmd.exe entry at the top of
       the Start Menu and left-click "Run as Administrator".
    ii. In windows 8: hold x and the windows key, then left-click on command prompt.
  e) Copy and paste the following commands one at a time and hit enter and wait until completion after each.
cd C:\deps\boost_1_55_0\
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stage

    NOTES: Windows 7 users may experience some issues in this step.
           For boost versions 1.55 and earlier the following alternative build method can be used:
           http://petrkout.com/windows-2/compile-c-boost-libraries-in-windows-7-using-mingw32-and-masm32/
           IF YOU ARE STILL EXPERIENCING ISSUES AFTER TRYING ALTERNATIVE METHOD, see Section iv of this article.

13) Download|Extract|Build Miniupnpc: http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.tar.gz
  a) Copy this file to C:\deps\
  b) In the shell you opened in step 5 above copy and paste the following commands one at a time and hit enter
     and wait until completion after each:
cd /c/deps/
tar xvfz miniupnpc-1.9.tar.gz

  c) Rename the extracted folder from miniupnpc-1.9 to miniupnpc
  d) Click back to the Windows command prompt opened in Step 12.
  e) Copy and paste the following commands one at a time and hit enter and wait until completion after each:
cd C:\deps\miniupnpc..mingw32-make -f Makefile.mingw init upnpc-static

14) Install Qt-MinGW32 4.8.5: http://download.qt-project.org/archive/qt/4.8/4.8.5/ (Third one down called qt-win-opensource-4.8.5-mingw.exe)
  a) Download and run it.
  b) When it asks where your mingw folder is tell it c:\mingw
  c) After this is installed open the Qt Command Prompt: Start>All Programs>Qt by Digia v4.8.5 (MinGW OpenSource)>Qt 4.8.5 Command Prompt
     NOTES BEFORE STEP 15: Some older versions of coins or clones may not have leveldb and you can skip this step.
                           If there is a file inside your [coinSourceFilesFromGitHub]/src folder called 'leveldb' you cannot skip the step.
                           If leveldb directory/file is not there skip it.

15) Compile leveldb
  a) Go back to our msys linux shell (opened in Step 5...) and copy and paste the following:
cd /C/photon/src/leveldb
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a

(Now the fun begins your build system is ready! See section IV if you had problems.
Everything above only has to be done once (normally) NOT every time you build a wallet! [Unless the dependencies are different])



Secion II - Basic Compile
ABOUT THIS SECTION: If you chose to download the newer version of MinGW earlier in this guide or if you chose to download a newer
version of boost, the boost library file names will need to be properly defined in the [coinSourceFiles]/[examplecoinname]-qt.pro
file before a compile will complete properly.

1) Download your desired coin's wallet source code from GitHub by clicking 'download zip' on its GitHub page

2) Place the file on the C:\ drive and extract the 7-zip archive.

3) Use Notepad++ to open the .pro file.

4) Copy the following into the appropriate area of the .pro file. (Near the top, it will look very similar.)

windows:LIBS += -lshlwapi
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
windows:LIBS += -lws2_32 -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system-mgw46-mt-d-1_55 -lboost_filesystem-mgw46-mt-d-1_55 -lboost_program_options-mgw46-mt-d-1_55 -lboost_thread-mgw46-mt-d-1_55
BOOST_LIB_SUFFIX=-mgw46-mt-d-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-5.1.29.NC/build_unix
BDB_LIB_PATH=C:/deps/db-5.1.29.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1j/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1j
MINIUPNPC_LIB_SUFFIX=-miniupnpc
MINIUPNPC_INCLUDE_PATH=C:/deps/miniupnpc
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc
QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.4
QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.4/.libs
LIBPNG_INCLUDE_PATH=C:/deps/libpng-1.6.14
#QRENCODE_LIB_PATH=C:/deps/qr/.libs

5) In the qt command line prompt you opened in step 12 copy and past the following commands:
cd c:\photon
qmake "USE_UPNP=1" photon-qt.pro
make -f Makefile.Release

6) After it is finished (which can take several minutes) the wallet will be in the Release folder inside the source code.

7) Copy this file to...
  a) 32-bit system: C:\Program Files\[Coinnamehere]\
  b) 64-bit system: C:\Program Files (x86)\[Coinnamehere]\

Cool You will need several dynamic link library (.dll) files:
  https://drive.google.com/file/d/0B-eDDHZG3n6dNnlVeXNZdXkxUEE/edit?usp=sharing
 
  a) Extract these files in the same folder that you copied the wallet file to.    i. 32-bit system: C:\Program Files\[Coinnamehere]\
    ii. 64-bit system: C:\Program Files (x86)\[Coinnamehere]\

9) Doubleclick the coinname-qt.exe to start it.


Congratulations on compiling your first coin wallet. If you had problems or got stuck see section IV.



Section III: Extras- Static Wallet|QR Code Support
(You can skip this part of the guide but here I will cover a few ways to do a little bit more.)
NOTES: Additional Download|Extract|Build steps in this section are not yet included in the deps folder I provided.

Static Wallet (Does not need those dll files in it's folder to run)

1) Open your coinname-qt.pro file in Notepad++.

2) On line 10 add this: CONFIG += static

3) Search for this line: win32:QMAKE_LFLAGS *= -Wl,--large-address-aware (Use CRTL+F)

4) Change it to: win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static

5) Save your .pro file.

6) Download|Extract|Build: qt-everywhere-opensource-src-4.8.5.zip
  a) Download: http://download.qt-p...ve/qt/4.8/4.8.5
  b) Extract to C:\Qt\485 (Create the folder if it doesn't exist)
  c) Open a Windows command prompt and type:
cd C:\Qt\485

configure -release -opensource -confirm-license -static -no-sql-sqlite -no-qt3support -no-opengl -qt-zlib -no-gif -qt-libpng -qt-libmng -no-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -nomake demos -nomake examples

mingw32-make

7) Wait until this completes...

Cool Delete everything in C:\[coinsourcefiles]\build

9) Delete the following 5 files if they exist in your [coinsourcefiles] folder:
Makefile
Makefile.Debug
Makefile.Release
object_script.[coinname-qt].Debug
object_script.[coinname].qt.Release

10) From a Windows command prompt type the following (EDIT THIS WITH THE PROPER COIN INFO):
set PATH=%PATH%;C:\Qt\485\bin
cd C:\[coinsourcefiles]\
qmake "USE_UPNP=1" [coinname]-qt.pro
mingw32-make -f Makefile.Release

11) Your newly compiled "Static" wallet will be in the Release folder.



QR Code Support: (qrencode & libpng)
Note: Most coins based on the 8.x codebase have qr support built into them.
      Not many coins built on 'earlier' codebased have it built in.

1) Download|Extract|Build: qrencode & libpng
  a) Download libpng: http://prdownloads.sourceforge.net/libpng/libpng-1.6.12.tar.gz?download
  a2) Download qrencode: http://fukuchi.org/works/qrencode/qrencode-3.4.3.tar.gz
  b) Place both in your C:\deps folder.

  c) Open an msys shell copy and paste these commands:
tar xvfz libpng-1.6.12.tar.gz
tar xvfz qrencode-3.4.3.tar.gz
cd /c/deps/libpng-1.6.12
configure --disable-shared
make

cp .libs/libpng16.a .libs/libpng.a
cd /c/deps/qrencode-3.4.3
LIBS="../libpng-1.6.12/.libs/libpng.a ../../mingw32/i686-w64-mingw32/lib/libz.a" \
png_CFLAGS="-I../libpng-1.6.12" \
png_LIBS="-L../libpng-1.6.12/.libs" \
configure --enable-static --disable-shared --without-tools
make

NOTES: If you get an error here try adding: PKG_CONFIG_PATH=/c/deps/libpng-1.6.12 before the make command.


2) To build the wallet with QR Code Support:
  a) Delete everything in C:\[coinsourcefiles]\build
  b) Delete the following 5 files if they exist in your [coinsourcefiles] folder:
Makefile
Makefile.Debug
Makefile.Release
object_script.[coinname-qt].Debug
object_script.[coinname].qt.Release

3) From the qt command prompt type the following (EDIT THIS WITH THE PROPER COIN INFO):
qmake "USE_QRCODE=1" "USE_UPNP=1" [coinname]-qt.pro
make -f Makefile.Release

4) Your newly compiled wallet with QR Code Support will be in the Release folder.



Section IV: Troubleshooting - Errors|Problems|Issues

THE REST BELOW THIS LINE HASN'T BEEN COMPLETELY EDITED BY ME YET, AND I'M TIRED. I'll get to it soon...

If you tried to build a wallet before and used a different version of
msys /mingw you may need to build boost to match the version of mingw.

I am working here with version 4.6 so in your boost file is a file called
stage and inside that lib look here and make sure you see
files that look like libboost_chrono-mgw46-d-1_55.dll

if they have a different number just follow the directions in section i #10
to rebuild boost with the proper version of mingw.

If you have problems getting boost to compile in section 10 part i
you may want to try boost_1_53_1

Download it here http://sourceforge.net/projects/boost/files/boost/1.53.0/

and put it in the deps file name it boost_1_53_0

build it, change everything in your Photo[Suspicious link removed]o file that says boost_1_55_0
to boost_1_53_0


If you got errors at any point and did not install things in the folders like
I named them make sure no folders have a space. For example in windows if you
install these programs into a folder like Program Files it can cause issues.
Mingw does not like empty spaces one of the reasons you have folders with the underscore.


If you got errors that say MUTEX in them when you try to compile your wallet try changing
line 7 of the Photon-qt.pro file to this

DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN __NO_SYSTEM_INCLUDES

The extra commands may help.

If you are building a different coin other than Photon as this guide can help
you build almost any coins wallet remember you need to change the names of folders to fit that coin !!

If you get errors that files are not found check your paths
go to my computer, right click properties, advanced system settings, look under environment variables

You should see things like this

C:\MinGW\mingw32\bin;

in this case for mingw , if it is not there add it, same for perl and python.

I have built over 100 different coin wallets so the directions are good but cannot make up for trying to
compile source code of a coin that is missing files.

i.e. you go to compile the wallet and it says yourcoin\src\qt\res\icons bitcoin.ico does not exist

You may be trying to compile source code that is missing things - many coins are.

This is often seen when a new coin is launched. If it is something simple like an icon use an icon from another coin and
place it where the missing icon or splash screen file is supossed to be.

On windows 7 I often have problems building static wallets and wallets with qr code support.
You may have better results on win 8.1

If you have previously tried to compile a coin and had problems or got stuck I recommend not using
qt 5.2 or 5.3 , stick with 4.8.4 , 4.8.5 or 4.8.3

Note: A few coins like the latest 9.2 version of bitcoin cannot be built with these directions and
require qt 5.3. In the future I may expand this guide to cover how to compile those coins.
As of now very few (I know of 2) coins other than bitcoin use the 9.x codebase.


A few coins like maxcoin need additional items installed.
(thanks to Tranz and Bluedragon747 for this tip)

If you see -crypto in the .pro file install it http://www.cryptopp.com/#download
and using 7z extract it to your deps folder.

Add these lines to the top of the .pro file where you see similar commands:
CRYPTO_LIB_PATH=C:/deps/cryptopp562
$$join(CRYPTO_LIB_PATH,,-L,)


Only a few coins use this but they are out there.

Most coins that use this will have at least the $$join (CRYPTO_LIB_PATH,,-L)
and you may just need to add the path of where your files are in your deps folder.


In most coins .pro file you have to 'uncomment' some commands for them to compile on windows
by removing the # in front of the line.

Search for a line like this in your .pro file (Use CTRL+F to search for genleveldb):
#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


Note, i have this line commented out with the #

You need it uncommented to build on linux & osx so almost every coin source you download before you compile the windows wallet
as I described above you have to comment this out or you will get a 'cross compile error' real fast.

Another thing to remember is while I included these lines in my own .pro file to make it easy to build:

BOOST_LIB_SUFFIX=-mgw46-mt-sd-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.1j\include
OPENSSL_LIB_PATH=C:\deps\openssl-1.0.1j
MINIUPNPC_LIB_SUFFIX=-miniupnpc
MINIUPNPC_INCLUDE_PATH=C:\deps\miniupnpc
MINIUPNPC_LIB_PATH=C:\deps\miniupnpc

most coin source codes do not have them and you may need to insert them.

Finally some developers launch a coin and don't want it to compile for people easily.
If you get runtime errors it is usually related to problems with qt.

Please master building regular (non static) wallets before you try to compile a static wallet.
8  Alternate cryptocurrencies / Announcements (Altcoins) / Appeal to Fireflycoin Dev & Firefly Coin Wallet File (Re: FireFlyCoin Launched!) on: February 27, 2015, 01:12:41 AM
Dear FFC developer,

NOTE TO OTHER READERS, THERE'S A FFC WALLET FILE IN THIS POST FOR YOU AND A PROCESS TO COMPILE SOURCE CODE IF YOU WANT TO DO IT YOURSELF!

I've recently been gathering all of the information for Fireflycoin together and researching it because I'd like to help get this coin moving in the right direction again. Fireflycoin already has a place on the exchanges and a lot of volume, and has a great name and icon. I'd like to know what the target idea of this coin was at inception. (support for sci-fi?)

I'd like to get some fresh ideas on broadening the target audience and getting support behind this coin in the marketplace. I'm willing to work with the developer of this coin to drive it toward being valuable to its original idea. As it stands Fireflycoin is highly unlikely to reach an approximate value more than 1/50 of 1 BTC. (It's 50 times easier to mine 1 FFC even if it's at the same difficulty hash level as Bitcoin)

So I recommend the following: Change the reward for solving 1 block of FFC slightly and increase the estimated solve time so difficulty increases more quickly. If it's so easy to mine it will always stay at a low value.

Proposed new block reward: 125 (5 times the amount of Bitcoin)
Proposed new solve time:   5 minutes (Half the time of Bitcoin)

This will allow FFC to achieve an approximate maximum value of 1/10 of BTC, currently this would be about $24 per FFC if it reached top at current rates, and this is much more manageable than 1 coin for $240.

Retailers/Vendors also need to be brought on board to allow FFC to be spent for real goods.
I recommend attempting to bring Newegg, Tigerdirect, Amazon, Google, and other major retailers, and also renew attempts to help the Sci-Fi community. Requesting donations to finish Firefly and other prematurely ended Sci-Fi series/movies as well as support new ones is key.

Propose the honored value of FFC to them between .5*FFC Value (half) on the Exchanges & .75*FFC Value on the Exchanges (three fourths) to give them an incentive toward initial and full acceptance of the coin. Once the coin is accepted demand to have it be closer to the full value will follow.

If you would like to donate coins to helping push FFC forward I will use these funds to work with the developer.
BTC 16Zec538DisiM24XFvfAty8n5MEqpaeJen
FFC FnavWDZav3vn9FP5tQipNNZGmc1kYQMUsT



BELOW HERE IS THE LINK AND THE PROCESS:

If you would like to donate coins for this edited process, wallet file, and dependencies I will also use these funds with the developer.
BTC 1Fh4tV2FLWndRVZsRTDK1LRpPrz5rUbA5o
FFC FiEPAfU5XCGqARYVccCfkahXXFP3eUshHc


To the forum users looking to compile the Fireflycoin wallet, the source files are on GitHub and I've included a compile process below:
https://github.com/FireFlyCoin/FireFlyCoin

I've also included a link to the Firefly Wallet on dropbox for those who would rather download it without compiling:
https://dl.dropboxusercontent.com/u/69963747/Fireflycoin.7z

Heres a link to all of the completed dependency files in case you want to download them to speed up the process a bit:
You'll still have to install programs listed in Section I, you just won't need the "Download|Extract|Build" steps.

https://dl.dropboxusercontent.com/u/69963747/deps.7z
NOTES: This needs to be extracted on the C:\ drive. Copy it there, right-click the file, and select "Extract Here" in the 7-zip menu.
       (You might need to install 7-zip from Section I first.)


You can likely use this process (I didn't write the original but I've edited it to be clear/concise/concrete) to compile the wallet:
[Credit to: cinnamon-carter (developer of cinnamoncoin) & Shak3zulas (original coin making guide) & Nitrogenetics.]
[Original post: https://cryptocointalk.com/topic/13204-how-to-build-a-windows-qt-wallet-for-any-coin-yourself-from-source-code-step-by-step-instructions/]

Original Author's Donation Links:
Bitcoin 17pwTLgVhFsozanJDwDShnc4DJEP8yTMrW
Litecoin LNPhM5ggB1nxU2yFaN4rM57go14DLWLZxm
PPC PTQMj25TnycmwbiNNv5h21RCCBAA9U2Y3u
NameCoin NBNVjEYbuftJZWkgz52vhnfYfe8VKwEiEQ
i0 Coin jYwjs5b9nK4ZzNGJSeSjKnmMpYU1ijtPGK
iX coin xnmyQQbveWtk3xnQzchSjKVyG78jL1zePn
RieCoin RAfSoDfA8ERc47yJiaz6bVRokU2ziPdcu7


THE PROCESS:

How to build a Qt Wallet on Windows (and for Windows) From GitHub Source Code
NOTICE: Be careful! Source code can have payloads or viruses and you should never install a compiled QT Wallet on any of your main machines.
USE A TEST MACHINE that you can easily clean install if necessary. Better yet, keep an image of it in a working state so it can be easily reimaged.


Section I - Preparing Your Build System

TOOLS (Download these and install them first)
Notes: a) If you have a 64 bit system install 64 bit versions (You can install 32-bit as well,
          but you NEED the 64 bit ones if you have 64-bit!) Otherwise install 32-bit versions.
       b) Use the most current version unless stated differently.
       c) When installing some programs it will ask if you want to 'add to path' always answer yes.

1) Install 7z for Windows: http://www.7-zip.org/download.html

2) Install Perl for Windows: http://www.activestate.com/activeperl/downloads

3) Install Python 2 & 3: https://www.python.org/downloads/

4) Install Notepad++: http://notepad-plus-plus.org/download

5) Install MinGW 4.6.2: https://drive.google.com/file/d/0B-eDDHZG3n6dMV9mVU9FLTRLbmM/edit?usp=sharing
  a) Check the option to use preloaded repository catalogs.
  b) On the components page select all and next,then click install.
  NOTES: You might have better luck with the newest version of MinGW instead of this older version now that coin
         wallets have newer code:
    http://sourceforge.net/projects/mingw/files/latest/download?source=files
    If you choose this route: It takes forever, but make sure to select all the packages.

6)Install Mingw gcc: https://drive.google.com/file/d/0B-eDDHZG3n6dZ2szUHJrd2VlSDg/edit?usp=sharing
  a) Unzip this file using 7-zip.
  b) Rename the folder from mingw to mingw32.
  c) Copy the foler to the mingw folder which was installed in Step 4. (If you didn't change it the path will be C:\MinGW)

7) Start the msys.bat linux shell: (This opens up a 'shell' of what is basically a linux prompt you can use in windows.)
  a) Open or access the folder C:\mingw\Msys\1.0.
  b) Double click on msys.bat
  c) When it opens up right click on the top by the MINGW32~ select properties and check 'quick edit mode'.
     (Enables copying text outside of the command prompt and then pasting it into the linux shell with a right-click.)
     [WHICH WE WILL BE DOING A LOT IN A BIT...]

8) Create a dependencies directory: (This will hold all of the required programs and libraries for compiling QT source code.)
  a) Browse to C:\
  b) Create a new folder called 'deps'. (without the quotes all lower case)

9) Download OpenSSL: ftp://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz
  a) Copy this file to the C:\deps folder.
     NOTES: You may want a newer version of OpenSSL as the one referenced from the older version of this article is retired.
  b) If you want a newer version: http://ftp://ftp.openssl.org/source/openssl-1.0.2.tar.gz

10) Extract|Build OpenSSL: Only do EITHER a) OR b). (I'm giving the commands for whichever version of OpenSSL you end up choosing.)
  a) FOR OLDER OpenSSL: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
     enter and wait until completion after each.
cd /c/deps/
tar xvfz openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
Configure no-shared no-dso mingw
make

  b) FOR NEWER OpenSSL: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
     enter and wait until completion after each.
cd /c/deps/
tar xvfz openssl-1.0.2.tar.gz
cd openssl-1.0.2
Configure no-shared no-dso mingw
make

11) Download|Extract|Build Berkeley DB: (You likely want the newer version from substep b)
    http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

  a) Copy this file to the C:\deps folder
     NOTES: You may want a newer version of Berkeley DB as the one referenced in the older version of this article caused some
            newer QTs not to start once compiled.
  b) If you want the newer version (You probably do...): http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz
  
  a2) FOR OLDER Berkeley DB: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
      enter and wait until completion after each.
cd /c/deps/
tar xvfz db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication

STOP HERE AND DO THE FOLLOWING BEFORE ENTERING THE LAST COMMAND.
    i. Open Notepad++.
    ii. Open the following file C:\Deps\db-4.8.30.NC\build_unix\db.h
    iii. Use CTRL+F to open the Find feature.
    iv. Type in the following in the Find window and search for it: typedef pthread_t db_threadid_t;
    v. Change that line (Line 113 in 32-bit, Line 116 in 64-bit) to: typedef u_int32_t db_threadid_t;
    vi. OK, NOW YOU CAN CLICK BACK TO THE Linux Shell from step 5 and enter the following, then press Enter and wait:
make

  b2) FOR NEWER Berkeley DB: In the shell you opened in step 5 above copy and paste the following commands one at a time and hit
      enter and wait until completion after each.
cd /c/deps/
tar xvfz db-5.1.29.NC.tar.gz
cd db-5.1.29.NC/build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication

STOP HERE AND DO THE FOLLOWING BEFORE ENTERING THE LAST COMMAND.
    i. Open Notepad++.
    ii. Open the following file C:\Deps\db-5.1.29.NC\build_unix\db.h.
    iii. Use CTRL+F to open the Find feature.
    iv. Type in the following in the Find window and search for it: typedef pthread_t db_threadid_t;
    v. Change that line (Line 113 in 32-bit, Line 116 in 64-bit) to: typedef u_int32_t db_threadid_t;
    vi. OK, NOW YOU CAN CLICK BACK TO THE Linux Shell from step 5 and enter the following, then press Enter and wait:
make

12) Download|Extract|Build boost: http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.7z/download
  a) Create the folder C:\deps\boost_1_55_0
  b) Unzip the contents of boost_1_55_0 and copy all of those files to C:\deps\boost_1_55_0.
     NOTES: The newest version of boost is currently boost_1_57_0 and by editing these steps slightly
            (like in Steps 10&11) you can use that version instead: http://sourceforge.net/projects/boost/files/boost/1.57.0/
  d) Open a Windows command line.
    i. For windows 7 click on the start button, type cmd into Search, then right-click the cmd.exe entry at the top of
       the Start Menu and left-click "Run as Administrator".
    ii. In windows 8: hold x and the windows key, then left-click on command prompt.
  e) Copy and paste the following commands one at a time and hit enter and wait until completion after each.
cd C:\deps\boost_1_55_0\
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stage

    NOTES: Windows 7 users may experience some issues in this step.
           For boost versions 1.55 and earlier the following alternative build method can be used:
           http://petrkout.com/windows-2/compile-c-boost-libraries-in-windows-7-using-mingw32-and-masm32/
           IF YOU ARE STILL EXPERIENCING ISSUES AFTER TRYING ALTERNATIVE METHOD, see Section iv of this article.

13) Download|Extract|Build Miniupnpc: http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.tar.gz
  a) Copy this file to C:\deps\
  b) In the shell you opened in step 5 above copy and paste the following commands one at a time and hit enter
     and wait until completion after each:
cd /c/deps/
tar xvfz miniupnpc-1.9.tar.gz

  c) Rename the extracted folder from miniupnpc-1.9 to miniupnpc
  d) Click back to the Windows command prompt opened in Step 12.
  e) Copy and paste the following commands one at a time and hit enter and wait until completion after each:
cd C:\deps\miniupnpc..mingw32-make -f Makefile.mingw init upnpc-static

14) Install Qt-MinGW32 4.8.5: http://download.qt-project.org/archive/qt/4.8/4.8.5/ (Third one down called qt-win-opensource-4.8.5-mingw.exe)
  a) Download and run it.
  b) When it asks where your mingw folder is tell it c:\mingw
  c) After this is installed open the Qt Command Prompt: Start>All Programs>Qt by Digia v4.8.5 (MinGW OpenSource)>Qt 4.8.5 Command Prompt
     NOTES BEFORE STEP 15: Some older versions of coins or clones may not have leveldb and you can skip this step.
                           If there is a file inside your [coinSourceFilesFromGitHub]/src folder called 'leveldb' you cannot skip the step.
                           If leveldb directory/file is not there skip it.

15) Compile leveldb
  a) Go back to our msys linux shell (opened in Step 5...) and copy and paste the following:
cd /C/photon/src/leveldb
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a

(Now the fun begins your build system is ready! See section IV if you had problems.
Everything above only has to be done once (normally) NOT every time you build a wallet! [Unless the dependencies are different])




Secion II - Basic Compile
ABOUT THIS SECTION: If you chose to download the newer version of MinGW earlier in this guide or if you chose to download a newer
version of boost, the boost library file names will need to be properly defined in the [coinSourceFiles]/[examplecoinname]-qt.pro
file before a compile will complete properly.

1) Download your desired coin's wallet source code from GitHub by clicking 'download zip' on its GitHub page

2) Place the file on the C:\ drive and extract the 7-zip archive.

3) Use Notepad++ to open the .pro file.

4) Copy the following into the appropriate area of the .pro file. (Near the top, it will look very similar.)

windows:LIBS += -lshlwapi
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
windows:LIBS += -lws2_32 -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system-mgw46-mt-d-1_55 -lboost_filesystem-mgw46-mt-d-1_55 -lboost_program_options-mgw46-mt-d-1_55 -lboost_thread-mgw46-mt-d-1_55
BOOST_LIB_SUFFIX=-mgw46-mt-d-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-5.1.29.NC/build_unix
BDB_LIB_PATH=C:/deps/db-5.1.29.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1j/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1j
MINIUPNPC_LIB_SUFFIX=-miniupnpc
MINIUPNPC_INCLUDE_PATH=C:/deps/miniupnpc
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc
QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.4
QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.4/.libs
LIBPNG_INCLUDE_PATH=C:/deps/libpng-1.6.14
#QRENCODE_LIB_PATH=C:/deps/qr/.libs

5) In the qt command line prompt you opened in step 12 copy and past the following commands:
cd c:\photon
qmake "USE_UPNP=1" photon-qt.pro
make -f Makefile.Release

6) After it is finished (which can take several minutes) the wallet will be in the Release folder inside the source code.

7) Copy this file to...
  a) 32-bit system: C:\Program Files\[Coinnamehere]\
  b) 64-bit system: C:\Program Files (x86)\[Coinnamehere]\

8) You will need several dynamic link library (.dll) files:
  https://drive.google.com/file/d/0B-eDDHZG3n6dNnlVeXNZdXkxUEE/edit?usp=sharing
  
  a) Extract these files in the same folder that you copied the wallet file to.    i. 32-bit system: C:\Program Files\[Coinnamehere]\
    ii. 64-bit system: C:\Program Files (x86)\[Coinnamehere]\

9) Doubleclick the coinname-qt.exe to start it.


Congratulations on compiling your first coin wallet. If you had problems or got stuck see section IV.



Section III: Extras- Static Wallet|QR Code Support
(You can skip this part of the guide but here I will cover a few ways to do a little bit more.)
NOTES: Additional Download|Extract|Build steps in this section are not yet included in the deps folder I provided.

Static Wallet (Does not need those dll files in it's folder to run)

1) Open your coinname-qt.pro file in Notepad++.

2) On line 10 add this: CONFIG += static

3) Search for this line: win32:QMAKE_LFLAGS *= -Wl,--large-address-aware (Use CRTL+F)

4) Change it to: win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static

5) Save your .pro file.

6) Download|Extract|Build: qt-everywhere-opensource-src-4.8.5.zip
  a) Download: http://download.qt-p...ve/qt/4.8/4.8.5
  b) Extract to C:\Qt\485 (Create the folder if it doesn't exist)
  c) Open a Windows command prompt and type:
cd C:\Qt\485

configure -release -opensource -confirm-license -static -no-sql-sqlite -no-qt3support -no-opengl -qt-zlib -no-gif -qt-libpng -qt-libmng -no-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -nomake demos -nomake examples

mingw32-make

7) Wait until this completes...

8) Delete everything in C:\[coinsourcefiles]\build

9) Delete the following 5 files if they exist in your [coinsourcefiles] folder:
Makefile
Makefile.Debug
Makefile.Release
object_script.[coinname-qt].Debug
object_script.[coinname].qt.Release

10) From a Windows command prompt type the following (EDIT THIS WITH THE PROPER COIN INFO):
set PATH=%PATH%;C:\Qt\485\bin
cd C:\[coinsourcefiles]\
qmake "USE_UPNP=1" [coinname]-qt.pro
mingw32-make -f Makefile.Release

11) Your newly compiled "Static" wallet will be in the Release folder.



QR Code Support: (qrencode & libpng)
Note: Most coins based on the 8.x codebase have qr support built into them.
      Not many coins built on 'earlier' codebased have it built in.

1) Download|Extract|Build: qrencode & libpng
  a) Download libpng: http://prdownloads.sourceforge.net/libpng/libpng-1.6.12.tar.gz?download
  a2) Download qrencode: http://fukuchi.org/works/qrencode/qrencode-3.4.3.tar.gz
  b) Place both in your C:\deps folder.

  c) Open an msys shell copy and paste these commands:
tar xvfz libpng-1.6.12.tar.gz
tar xvfz qrencode-3.4.3.tar.gz
cd /c/deps/libpng-1.6.12
configure --disable-shared
make

cp .libs/libpng16.a .libs/libpng.a
cd /c/deps/qrencode-3.4.3
LIBS="../libpng-1.6.12/.libs/libpng.a ../../mingw32/i686-w64-mingw32/lib/libz.a" \
png_CFLAGS="-I../libpng-1.6.12" \
png_LIBS="-L../libpng-1.6.12/.libs" \
configure --enable-static --disable-shared --without-tools
make

NOTES: If you get an error here try adding: PKG_CONFIG_PATH=/c/deps/libpng-1.6.12 before the make command.


2) To build the wallet with QR Code Support:
  a) Delete everything in C:\[coinsourcefiles]\build
  b) Delete the following 5 files if they exist in your [coinsourcefiles] folder:
Makefile
Makefile.Debug
Makefile.Release
object_script.[coinname-qt].Debug
object_script.[coinname].qt.Release

3) From the qt command prompt type the following (EDIT THIS WITH THE PROPER COIN INFO):
qmake "USE_QRCODE=1" "USE_UPNP=1" [coinname]-qt.pro
make -f Makefile.Release

4) Your newly compiled wallet with QR Code Support will be in the Release folder.



Section IV: Troubleshooting - Errors|Problems|Issues

THE REST BELOW THIS LINE HASN'T BEEN COMPLETELY EDITED BY ME YET, AND I'M TIRED. I'll get to it soon...

If you tried to build a wallet before and used a different version of
msys /mingw you may need to build boost to match the version of mingw.

I am working here with version 4.6 so in your boost file is a file called
stage and inside that lib look here and make sure you see
files that look like libboost_chrono-mgw46-d-1_55.dll

if they have a different number just follow the directions in section i #10
to rebuild boost with the proper version of mingw.

If you have problems getting boost to compile in section 10 part i
you may want to try boost_1_53_1

Download it here http://sourceforge.net/projects/boost/files/boost/1.53.0/

and put it in the deps file name it boost_1_53_0

build it, change everything in your Photo[Suspicious link removed]o file that says boost_1_55_0
to boost_1_53_0


If you got errors at any point and did not install things in the folders like
I named them make sure no folders have a space. For example in windows if you
install these programs into a folder like Program Files it can cause issues.
Mingw does not like empty spaces one of the reasons you have folders with the underscore.


If you got errors that say MUTEX in them when you try to compile your wallet try changing
line 7 of the Photon-qt.pro file to this

DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN __NO_SYSTEM_INCLUDES

The extra commands may help.

If you are building a different coin other than Photon as this guide can help
you build almost any coins wallet remember you need to change the names of folders to fit that coin !!

If you get errors that files are not found check your paths
go to my computer, right click properties, advanced system settings, look under environment variables

You should see things like this

C:\MinGW\mingw32\bin;

in this case for mingw , if it is not there add it, same for perl and python.

I have built over 100 different coin wallets so the directions are good but cannot make up for trying to
compile source code of a coin that is missing files.

i.e. you go to compile the wallet and it says yourcoin\src\qt\res\icons bitcoin.ico does not exist

You may be trying to compile source code that is missing things - many coins are.

This is often seen when a new coin is launched. If it is something simple like an icon use an icon from another coin and
place it where the missing icon or splash screen file is supossed to be.

On windows 7 I often have problems building static wallets and wallets with qr code support.
You may have better results on win 8.1

If you have previously tried to compile a coin and had problems or got stuck I recommend not using
qt 5.2 or 5.3 , stick with 4.8.4 , 4.8.5 or 4.8.3

Note: A few coins like the latest 9.2 version of bitcoin cannot be built with these directions and
require qt 5.3. In the future I may expand this guide to cover how to compile those coins.
As of now very few (I know of 2) coins other than bitcoin use the 9.x codebase.


A few coins like maxcoin need additional items installed.
(thanks to Tranz and Bluedragon747 for this tip)

If you see -crypto in the .pro file install it http://www.cryptopp.com/#download
and using 7z extract it to your deps folder.

Add these lines to the top of the .pro file where you see similar commands:
CRYPTO_LIB_PATH=C:/deps/cryptopp562
$$join(CRYPTO_LIB_PATH,,-L,)


Only a few coins use this but they are out there.

Most coins that use this will have at least the $$join (CRYPTO_LIB_PATH,,-L)
and you may just need to add the path of where your files are in your deps folder.


In most coins .pro file you have to 'uncomment' some commands for them to compile on windows
by removing the # in front of the line.

Search for a line like this in your .pro file (Use CTRL+F to search for genleveldb):
#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


Note, i have this line commented out with the #

You need it uncommented to build on linux & osx so almost every coin source you download before you compile the windows wallet
as I described above you have to comment this out or you will get a 'cross compile error' real fast.

Another thing to remember is while I included these lines in my own .pro file to make it easy to build:

BOOST_LIB_SUFFIX=-mgw46-mt-sd-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.1j\include
OPENSSL_LIB_PATH=C:\deps\openssl-1.0.1j
MINIUPNPC_LIB_SUFFIX=-miniupnpc
MINIUPNPC_INCLUDE_PATH=C:\deps\miniupnpc
MINIUPNPC_LIB_PATH=C:\deps\miniupnpc

most coin source codes do not have them and you may need to insert them.

Finally some developers launch a coin and don't want it to compile for people easily.
If you get runtime errors it is usually related to problems with qt.

Please master building regular (non static) wallets before you try to compile a static wallet.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!