113 posts in this topic

NO , this is a start to finish guide on how to make a windows wallet on windows.

 

The linux/unix commands are done in a shell all on windows.

 

To compile a windows wallet on linux is an entirely different process.

I see several linux commands. So is this how to compile the qt for windows, but on linux?


Mine 6 coins at once including my coin Photon NOW !! 6X your hash power http://ny2.blakecoin.com/

Share this post


Link to post
Share on other sites

I see several linux commands. So is this how to compile the qt for windows, but on linux?

No  see this step

 

 

5) Open or access the folder C:\mingw\Msys\1.0 and double click on msys.bat

(go to my computer, drive c, find the mingw folder, open it, find the Msys folder open it,

inside there is the 1.0 folder open it and you will see msys.bat there)

 

This opens up a 'shell' of what is basically a linux prompt you can use in windows.

Don't get nervous I have all the commands here for you to copy and paste.

When it opens up right click on the top by the MINGW32~ select properties and check\

the box that says 'quick edit mode' to make it easier to copy and paste inside.

this shell can use linux commands


I Trade at www.banx.io/ and so should you!

Share this post


Link to post
Share on other sites

When I try to configure libpng-1.6.12 by this command:

 

configure --disable-shared

 

I get this error:

 

checking for zlibVersion in -lz... no
checking for z_zlibVersion in -lz... no
configure: error: zlib not installed
 
Any idea how to solve this problem?
 
Thanks

Share this post


Link to post
Share on other sites

I'm running on windows 7 and I can't get step 10 or 11 to work (installing booster and using windows 7 cmd)

 

Heres the error I'm getting when trying to put on boost_1_55_0 and even 1.56.0 and 1.53.0 won't work all with this error:

 

Building Boost.Build engine
'gcc' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.
Please consult bootstrap.log for furter diagnostics.

You can try to obtain a prebuilt binary from

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941

Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.

 

 

same goes with 11 same error.

 

can someone give me a hand?

Share this post


Link to post
Share on other sites

tried ../dist/configure

same errors

tried  d/l http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz again and redoing steps no luck

 

is a different step done to get  `sprintf_s' or could there be a messed up path statement

not sure why you are having issues here what about ./configure


Mine 6 coins at once including my coin Photon NOW !! 6X your hash power http://ny2.blakecoin.com/

Share this post


Link to post
Share on other sites

zlib is required, present on most peoples machines

 

 

get it here

 

http://www.zlib.net/

 

should be in that directory where you are trying that setp !!

 

 

 

When I try to configure libpng-1.6.12 by this command:

 

configure --disable-shared

 

I get this error:

 

checking for zlibVersion in -lz... no
checking for z_zlibVersion in -lz... no
configure: error: zlib not installed
 
Any idea how to solve this problem?
 
Thanks

 


Mine 6 coins at once including my coin Photon NOW !! 6X your hash power http://ny2.blakecoin.com/

Share this post


Link to post
Share on other sites

I'm running on windows 7 and I can't get step 10 or 11 to work (installing booster and using windows 7 cmd)

 

Heres the error I'm getting when trying to put on boost_1_55_0 and even 1.56.0 and 1.53.0 won't work all with this error:

 

Building Boost.Build engine

'gcc' is not recognized as an internal or external command,

operable program or batch file.

 

Failed to build Boost.Build engine.

Please consult bootstrap.log for furter diagnostics.

 

You can try to obtain a prebuilt binary from

 

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941

 

Also, you can file an issue at http://svn.boost.org

Please attach bootstrap.log in that case.

 

 

same goes with 11 same error.

 

can someone give me a hand?

ok are you sure you are in a windows command prompt not in the shell ?

 

also are you certain you have full privliges on the machine you are using ?

 

i would check your path , on windows 7 from control panel , system , advanced system settings, click on environment variables

 

for

 

mgw

 

path should be something like C:\MinGW\mingw32\bin  in the corresponding box,  that may be the issue,  when you installed msys it may not have got in your path, 

 

let me know how you make out,

 

 

 

also i would not recommend trying boost 1_56_0  i just got it earlier this week and it seems to break a few things on bitcoin and one other thing i tried to compile with it, 


Mine 6 coins at once including my coin Photon NOW !! 6X your hash power http://ny2.blakecoin.com/

Share this post


Link to post
Share on other sites

Well I got infected by a Trojan wiped my c drive and re installed  windows. So after restoring my wallets and some other file I will starting from scratch.

 
step 0 restore point to go back to if needed. :-)
cleardot.gif

 


I Trade at www.banx.io/ and so should you!

Share this post


Link to post
Share on other sites

I am sorry to hear that.

 

One thing I do and recommend to ALL serious developers is to have a laptop or desktop devoted ONLY to building wallets.

 

For your own safety and the safety of users of the wallets you are compiling for others to use having a machine that is not running bitcoin, or any other coin client, normally stays disconected from the web (unless you need to update a package), and is used only for the build not the testing of wallets is ideal.  There are other safety steps I take too which I will keep to myself for now.  

 

This being said, I realize some people only have one computer, not 3,4 or more to work with. 

 

You don't need the latest board with bells and whistles for a good build machine.

 

It may compile a little slower but to those out there who are developers or want to learn to build wallets to distribute to others if you ever have a security breach who knows what could happen.   Not trying to scare anyone.  Just being careful.

 

Careless developers who allow strangers to make their wallets for bounties should really not do this unless the person building the wallet is at least known in the coin community and trusted.  If you plan to make a coin learning to build /compile your coin is pretty important.  If you want to run a coin and not take on this responsibllity or feel you lack the time or skils , I suggest hiring a professional to make your coin and compile your wallets for you. 

 

(NO I DON'T MAKE COINS FOR ANYONE !! NEVER HAVE.... PLEASE DON'T ASK BUT IF YOU WANT ADVICE ON WHO TO HIRE I CAN CERTAINLY POINT YOU IN THE DIRECTION OF A PROFESSIONAL DEVELOPER WHO HAS A SOLID REPUTATION, AND HAS PROBABLY MADE MORE COINS THAN ANYONE. MANY OF THEM SUCCESSFUL.  PM ME IF YOU WANT THIER CONTACT INFORMATION.  THEY OFFER A GOOD VARIETY AND WON'T RIP YOU OFF)

 

 

LET'S ALL LEARN FROM MOGRITH, USE VIRUS SCANNERS, VIRUS TOTAL, FIREWALLS, OTHER TOOLS , While I don't know for sure I know he is tech savy ann probably had good security and precaution in place. So don't ever think you are an expert and can't be owned.

 

YOU NEVER KNOW WHEN SOMEONE IS GOING TO TRY TO OWN YOU , EITHER TARGETED OR AT RANDOM.  BE ON YOUR GUARD.  

 

Well I got infected by a Trojan wiped my c drive and re installed  windows. So after restoring my wallets and some other file I will starting from scratch.

 
step 0 restore point to go back to if needed. :-)
cleardot.gif

 


Mine 6 coins at once including my coin Photon NOW !! 6X your hash power http://ny2.blakecoin.com/

Share this post


Link to post
Share on other sites

first of all thank you for the awesome guide.

 

I got a little problem when I try part II.

 

when I type make -f Makefile.Release it gives me:

 

Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\4.8.5
-- PATH set to C:\Qt\4.8.5\bin
-- Adding C:\MinGW\bin to PATH
-- Adding C:\Windows\System32 to PATH
-- QMAKESPEC set to win32-g++

C:\Qt\4.8.5>cd c:\photon

c:\photon>qmake "USE_UPNP=1" photon-qt.pro
WARNING: c:\photon\photon-qt.pro:26: Unescaped backslashes are deprecated.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\photon\photon-qt.pro:26: Unescaped backslashes are deprecated.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\photon\photon-qt.pro:26: Unescaped backslashes are deprecated.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

c:\photon>make -f Makefile.Release
g++ -c -pipe -D_FORTIFY_SOURCE=2 -O2 -frtti -fexceptions -mthreads -fdiagnostics
-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wst
ack-protector -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAF
E -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DU
SE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_THREAD_SUPPORT -DQT_DLL -D
QT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NEEDS_QMAIN -I"..\Qt\4.
8.5\include\QtCore" -I"..\Qt\4.8.5\include\QtNetwork" -I"..\Qt\4.8.5\include\QtG
ui" -I"..\Qt\4.8.5\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps\miniupnpc
" -I"src\leveldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_55_0" -I"..
\deps\db-4.8.30.NC\build_unix" -I"..\deps\openssl-1.0.1g\include" -I"c:\deps\qre
ncode-3.4.3" -I"..\Qt\4.8.5\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.5
\mkspecs\win32-g++" -o build\net.o src\net.cpp
src\net.cpp:18:32: fatal error: miniupnpc/miniwget.h: No such file or directory
compilation terminated.
mingw32-make: *** [build/net.o] Error 1

 

 

 

then I tried to move miniupnpc to photon/src/     since its saying the file isn't there.

when I tried again I got this error:

 

Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\4.8.5
-- PATH set to C:\Qt\4.8.5\bin
-- Adding C:\MinGW\bin to PATH
-- Adding C:\Windows\System32 to PATH
-- QMAKESPEC set to win32-g++

C:\Qt\4.8.5>cd c:\photon

c:\photon>qmake "USE_UPNP=1" photon-qt.pro
WARNING: c:\photon\photon-qt.pro:26: Unescaped backslashes are deprecated.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\photon\photon-qt.pro:26: Unescaped backslashes are deprecated.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\photon\photon-qt.pro:26: Unescaped backslashes are deprecated.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

c:\photon>make -f Makefile.Release
g++ -c -pipe -D_FORTIFY_SOURCE=2 -O2 -frtti -fexceptions -mthreads -fdiagnostics
-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wst
ack-protector -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAF
E -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DU
SE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_THREAD_SUPPORT -DQT_DLL -D
QT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NEEDS_QMAIN -I"..\Qt\4.
8.5\include\QtCore" -I"..\Qt\4.8.5\include\QtNetwork" -I"..\Qt\4.8.5\include\QtG
ui" -I"..\Qt\4.8.5\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps\miniupnpc
" -I"src\leveldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_55_0" -I"..
\deps\db-4.8.30.NC\build_unix" -I"..\deps\openssl-1.0.1g\include" -I"c:\deps\qre
ncode-3.4.3" -I"..\Qt\4.8.5\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.5
\mkspecs\win32-g++" -o build\net.o src\net.cpp
In file included from ..\deps\db-4.8.30.NC\build_unix/db_cxx.h:64:0,
                 from src\/db.h:14,
                 from src\net.cpp:6:
..\deps\db-4.8.30.NC\build_unix/db.h:113:9: error: 'pthread_t' does not name a t
ype
..\deps\db-4.8.30.NC\build_unix/db.h:846:2: error: 'db_threadid_t' does not name
 a type
..\deps\db-4.8.30.NC\build_unix/db.h:2022:20: error: 'db_threadid_t' has not bee
n declared
..\deps\db-4.8.30.NC\build_unix/db.h:2023:21: error: 'db_threadid_t' has not bee
n declared
..\deps\db-4.8.30.NC\build_unix/db.h:2024:28: error: 'db_threadid_t' has not bee
n declared
..\deps\db-4.8.30.NC\build_unix/db.h:2159:22: error: 'db_threadid_t' has not bee
n declared
..\deps\db-4.8.30.NC\build_unix/db.h:2184:3: error: 'db_threadid_t' has not been
 declared
..\deps\db-4.8.30.NC\build_unix/db.h:2185:34: error: 'db_threadid_t' has not bee
n declared
..\deps\db-4.8.30.NC\build_unix/db.h:2291:22: error: 'db_threadid_t' has not bee
n declared
..\deps\db-4.8.30.NC\build_unix/db.h:2318:3: error: 'db_threadid_t' has not been
 declared
..\deps\db-4.8.30.NC\build_unix/db.h:2319:31: error: 'db_threadid_t' has not bee
n declared
In file included from src\/db.h:14:0,
                 from src\net.cpp:6:
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:483:31: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:485:30: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:673:34: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:674:55: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:676:33: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:678:13: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:747:6: error: 'db_threadid_t' has not b
een declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:755:6: error: 'db_threadid_t' has not b
een declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:757:6: error: 'db_threadid_t' has not b
een declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:779:43: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:787:48: error: 'db_threadid_t' has not
been declared
..\deps\db-4.8.30.NC\build_unix/db_cxx.h:788:54: error: 'db_threadid_t' has not
been declared

 

 

 

 

could someone please help me?

im using a windows 8 virtual machine.

 

 

Share this post


Link to post
Share on other sites

ok the key is in ther error fatal error: miniupnpc/miniwget.h: No such file or directory

 

this indicates you had a problem when you built miniupnpc 

 

a few solutions,

 

first try building without UPnP support

 

so the command would be

 

qmake "USE_UPNP=- photon-qt.pro

 

then

 

make -f Makefile.Release

 

this will ignore miniupnpc in the build, if it works you know exactly the only thing you are missing.

 

also if you like i will upload my miniwget.h  you can put this file in your miniupnpc directory and replace it with the one that is there

 

it will probably fix 'that' problem.

 

NOTE DONT MOVE THE BUILD TOOLS FROM YOUR DEPS DIRECTORY TO YOUR SOURCE DIRECTORY

WHILE IT IS POSSIBLE TO BUILD A COIN LIKE THIS YOU WOULD NEED TO CHANGE A LOT OF OTHER THINGS AROUND AS WELL, IF YOU ARE JUST STARTING OUT, POST YOUR ERRORS HERE AND I AND OTHERS WILL TRY TO HELP YOU


Mine 6 coins at once including my coin Photon NOW !! 6X your hash power http://ny2.blakecoin.com/

Share this post


Link to post
Share on other sites

ok the key is in ther error fatal error: miniupnpc/miniwget.h: No such file or directory

 

this indicates you had a problem when you built miniupnpc 

 

a few solutions,

 

first try building without UPnP support

 

so the command would be

 

qmake "USE_UPNP=- photon-qt.pro

 

then

 

make -f Makefile.Release

 

this will ignore miniupnpc in the build, if it works you know exactly the only thing you are missing.

 

also if you like i will upload my miniwget.h  you can put this file in your miniupnpc directory and replace it with the one that is there

 

it will probably fix 'that' problem.

 

NOTE DONT MOVE THE BUILD TOOLS FROM YOUR DEPS DIRECTORY TO YOUR SOURCE DIRECTORY

WHILE IT IS POSSIBLE TO BUILD A COIN LIKE THIS YOU WOULD NEED TO CHANGE A LOT OF OTHER THINGS AROUND AS WELL, IF YOU ARE JUST STARTING OUT, POST YOUR ERRORS HERE AND I AND OTHERS WILL TRY TO HELP YOU

 

okay so I first reinstalled Miniupnpc. then I tried again but it still didn't work.

then I tried the commands you gave me but it gave me the error I showed second in my previous post.

 

maybe you could upload your miniwget.h like you said.

or do you have a other solution?

 

thanks again

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.