Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Guide] Compile Feathercoin 0.8.5 on Windows 7 x64 - Guide to Compileing FAQ.

    Technical Development
    7
    10
    4776
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lizhi
      lizhi last edited by wrapper

      This is a quick guide to compiling the latest Feathercoin code. I download Feathercoin-0.8.5-master-0.8 from github , I compily it success with MinGW 4.6.2 inside windows 7 SP1 32bit .

      Step One:Pre-installation and Compile
      Because MinGW 4.6.2 lack of support library in win7,I need install them.
      1、pkg-config-0.28.tar.gz
      2、zlib-1.2.3.tar.gz
      3、libpng-1.2.26.tar.gz

      1)install pkg-config
      I download pkg-config-0.28.tar.gz from [url=http://pkgconfig.freedesktop.org/releases/]http://pkgconfig.freedesktop.org/releases/[/url]
      His dir is “C:\pkg-config-0.28”
      cd /c/pkg-config-0.28
      cd glib
      mkdir bld
      cd bld
      export CFLAGS=" -march=i486 "
      export LIBS=
      …/configure --prefix=/mingw
      make
      make install

      cd /c/pkg-config-0.28
      ./configure --with-internal-glib
      make
      make install
      pkg-config.exe in C:\MinGW462\msys\1.0\local\bin

      edit C:\MinGW462\msys\1.0\etc\profile
      if [ -z “$PKG_CONFIG” ]; then
      export PKG_CONFIG=“/c/MinGW462/msys/1.0/home/lizhi/bin/pkg-config.exe”
      fi

      if [ -z “$PKG_CONFIG_PATH” ]; then
      export PKG_CONFIG_PATH=“/mingw/lib:/usr/local/lib”
      fi

      2)libpng
      I download zlib-1.2.3.tar.gz, so his dir is “C:\zlib-1.2.3”
      cd /c/zlib-1.2.3
      ./configure
      make
      make install

      #export LDFLAGS=“-L/usr/local/zlib/lib”
      #export CPPFLAGS=“-I/usr/local/zlib/include”

      I download libpng-1.2.26.tar.gz, so his dir is “C:\libpng-1.2.26”
      cd /c/libpng-1.2.26
      cp scripts/makefile.linux ./makefile
      ./configure --prefix=/usr/local/libpng
      make
      make install
      Lib file is in “C:\MinGW462\msys\1.0\local\libpng\lib”

      #export png_CFLAGS=“-I/usr/local/libpng/include”
      #export png_LIBS=“-L/usr/local/libpng/lib”

      3)qrencode-3.4.3
      I download qrencode-3.4.3.tar.gz from [url=http://fukuchi.org/works/qrencode/]http://fukuchi.org/works/qrencode/[/url]
      so his dir is “C:\qrencode-3.4.3”
      C:\MinGW462\msys\1.0\msys.bat
      cd /c/qrencode-3.4.3
      CFLAGS=“-lpthread”
      ./configure --prefix=/mingw
      Copy libpng*.a to C:\qrencode-3.4.3\.libs
      edit Makefile,add list:
      LIBS = ./.libs/libpng12.a ./.libs/libpng12.dll.a ./.libs/libpng.a ./.libs/libpng.dll.a ./.libs/libz.a
      CFLAGS = -Wall -g -O2 -lpthread
      make
      make install

      Step Twe: Compile 0.8.5 on windows

      1. Compile leveldb
        C:\MinGW\msys\1.0\msys.bat
        cd /d/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb
        TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a

      2)Compile Feathercoin-0.8.5-master-0.8
      edit some code in addressbookpage.cpp , code:
      #ifndef USE_QRCODE
      ui->showQRCode->setVisible(false);
      #else
      ui->showQRCode->setVisible(true);
      #endif
      save it.

      cd D:\FTC\FeatherCoin-master\Feathercoin-0.8.5-master-0.8
      qmake “USE_QRCODE=1” “USE_UPNP=-” feathercoin-qt.pro

      then I edit Makefile.Release file, add “-lpthread” to LIBS var.
      LIBS = -L’c:/Qt/4.8.5/lib’ -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode D:/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb/libleveldb.a D:/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb/libmemenv.a -lshlwapi -LC:\boost_1_53_0\stage\lib -LC:\db-4.8.30.NC\build_unix -LC:\openssl-1.0.1e -lssl -lcrypto -ldb_cxx -lws2_32 -lmswsock -lole32 -loleaut32 -luuid -lgdi32 -lboost_system-mgw46-mt-s-1_53 -lboost_filesystem-mgw46-mt-s-1_53 -lboost_program_options-mgw46-mt-s-1_53 -lboost_thread-mgw46-mt-s-1_53 -lboost_chrono-mgw46-mt-s-1_53 -lQtGui4 -lQtNetwork4 -lQtCore4 -lpthread

      mingw32-make -f Makefile.Release
      Get feathercoin-qt.exe(8084K) in release dir.

      Success.it work perfect. Qrencode :Correct.

      About “Quit” menu ,when I quit client , it is not crashes. Glad to solve this problem ;) ,Otherwise it will stab me in my sleep.

      [attachment deleted by admin]

      1 Reply Last reply Reply Quote 0
      • lizhi
        lizhi last edited by

        Can We publish 0.8.5 client before Christmas ? I think that it had completed.

        1 Reply Last reply Reply Quote 0
        • Bushstar
          Bushstar last edited by

          The translation have not been done yet. I would expect your client to say Litecoin in a few places. If you go to the help menu it may well say ‘About Litecoin’. Can you check?

          In the following directory…

          Feathercoin-0.8.5/src/qt/locale

          …there are the locale files. There are the plain text .ts files and corresponding .qm binaries. There has been quite a bit of fine tuning to the translations over time and we do not want to generate them from scratch. Just edit the existing .ts files and generate new .qm files.

          Donate: 6hf9DF8H67ZEoW9KmPJez6BHh4XPNQSCZz

          1 Reply Last reply Reply Quote 0
          • wrapper
            wrapper Moderators last edited by

            Great work Lizhi, well done.

            Your guide should really help people compile the new client for windows themselves, or compiling and testing new versions.

            1 Reply Last reply Reply Quote 0
            • E
              Ernesto last edited by

              good explain ;D

              1 Reply Last reply Reply Quote 0
              • E
                etag last edited by

                the dependancies will not build for me…is this outdated?

                1 Reply Last reply Reply Quote 0
                • wrapper
                  wrapper Moderators last edited by

                  Can you give more details of the problem? It should still be valid.

                  It is for the new Feathercoin-Qt 0.8.5 client, remember though…

                  1 Reply Last reply Reply Quote 0
                  • E
                    Electro last edited by

                    hi

                    I have errors here (bold)

                    [code] 3)qrencode-3.4.3
                    I download qrencode-3.4.3.tar.gz from http://fukuchi.org/works/qrencode/
                    so his dir is “C:\qrencode-3.4.3”
                    C:\MinGW462\msys\1.0\msys.bat
                    cd /c/qrencode-3.4.3
                    CFLAGS=“-lpthread”
                    [b] ./configure --prefix=/mingw[/b]
                    [b] Copy libpng*.a to C:\qrencode-3.4.3\.libs[/b]
                    edit Makefile,add list:
                    LIBS = ./.libs/libpng12.a ./.libs/libpng12.dll.a ./.libs/libpng.a ./.libs/libpng.dll.a ./.libs/libz.a
                    CFLAGS = -Wall -g -O2 -lpthread
                    make
                    make install[/code]

                    ./configure; Gives me PKG config error
                    libpng*.a; Cannot copy to qrencode-3.4.3\.libs as folder .libs doesn’t exist.

                    Could you help?

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • lizhi
                      lizhi last edited by

                      about C:\libpng-1.2.26\.libs\libpng.a and libpng12.a, After successful libpng-1.2.26 compilation ,It is generated.
                      Copy them to C:\qrencode-3.4.3\.libs

                      1 Reply Last reply Reply Quote 0
                      • K
                        Kevlar Spammer last edited by

                        [quote name=“lizhi” post=“49640” timestamp=“1388817074”]
                        about C:\libpng-1.2.26\.libs\libpng.a and libpng12.a, After successful libpng-1.2.26 compilation ,It is generated.
                        Copy them to C:\qrencode-3.4.3\.libs
                        [/quote]

                        I’ve gotten REALLY far following this guide, despite a few snags along the way.

                        But now I’m stuck on compiling levelDB. It seems I’m missing some basic windows DLLs? Can anyone help?

                        [quote]
                        g++ -I. -I./include -fno-builtin-memcmp -D_REENTRANT -DOS_WINDOWS -DLEVELDB_PLATFORM_WINDOWS -DWINVER=0x0500 -D__USE_MINGW_ANSI_STDIO=1 -O2 -DNDEBUG -c util/env_win.cc -o util/env_win.o
                        util/env_win.cc: In member function ‘virtual void leveldb::Win32::Win32Env::StartThread(void (*)(void*), void*)’:
                        util/env_win.cc:887:5: error: ‘::_beginthread’ has not been declared
                        ::_beginthread(function,0,arg);
                        ^
                        Makefile:202: recipe for target ‘util/env_win.o’ failed
                        make: *** [util/env_win.o] Error 1
                        [/quote]

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post