Create a Windows Installer
We'd like to make the software as accessible as possible. I see there are instructions for other OSes, but none for Windows.
I think it's a top priority to create a point-and-click installer, specifically for Windows, that doesn't assume any dependencies.
For starters, before there really is a nice packaged installer, I'd start with adding Windows installation instructions ... but we should follow that up with creating the actual installer.
I'm already working on this. The problem is that windows and ruby don't go that well together. A lot of the requirements need to build compiled from source. I am happy to report I got a initial build working on windows though. Next up I will try to package this build in a setup-able installation.
Please check out Zathras's client though, it's build on windows tools and should be exactly what you are looking for.
Just tried following the instructions for Windows and I'm getting an error on the install of mastercoin-wallet:
C:/Ruby200-x64/bin/ruby.exe extconf.rb ERROR! QT SDK doesn't exist at C:\Qt\4.8.3
Can I assume this means the QT framework is missing and this is also a pre-req?
Hmm that's weird. I didn't have QT installed on my VM as far as I know. I was under the impression the gem would install a native qtbinding version. However I also use this VM for Electrum building and perhaps I already installed it before hand.
I got a similar error for "gem install mastercoin-wallet", just with 32 bit Ruby and a different Qt version:
C:/Ruby200/bin/ruby.exe extconf.rb
ERROR! QT SDK doesn't exist at C:\Qt\4.8.5
I installed Qt 4.8.5 Windows binaries from http://qt-project.org/downloads at the location shown and tried again. It failed again, this time it ended up with:
/bin/sh: line 0: cd: extbuild: No such file or directory
make: [build] Error 1 (ignored)
cd ext\build && mingw32-make
/bin/sh: line 0: cd: extbuild: No such file or directory
make: *** [build] Error 1
I tried to install qtbindings with "gem install qtbindings" but that failed with exactly the same error, so I assume that's where it originally comes from. Therefore I opened https://github.com/ryanmelt/qtbindings/issues/70. Also I noticed from the console that it wants to execute "cmake" but there is no cmake included in the Ruby DevKit. I checked the README included in the qtbindings package and it says that cmake 2.8.x is needed so I installed that too. Unfortunately the error message stays the same so I am stuck at this point.
On some chinese website I found that an older version can be installed by using:
gem install qtbindings -v4.6.3.4
This worked and finally I could run "gem install mastercoin-wallet" without error. Installing bitcoin-ruby-0.0.2.gem worked too. But now when I try to run "mastercoin-wallet" it says it can't find qtruby4.so (LoadError). Searching for this error I found http://stackoverflow.com/questions/7577248/how-can-i-get-qt4-running-with-ruby-1-9-2-on-windows-7 where the OP concludes that qtruby shouldn't be used. Oh well... I think I give up for now. Maybe I will try to install it in some virtual Linux environment, that should be easier. From what I have read while investigating on these issues there are often many problems with making Ruby run correctly on Windows which makes me wonder whether it was a good choice for a cross-platform application :(
On kubuntu it's not working either, see my comment for https://github.com/maran/mastercoin-wallet/issues/9 I start to doubt that this was built for normal users, it seems to be only for ruby professionals.
I think I have installed this now on Windows 7 32-bit. I have documented the whole process but it is pretty verbose and some steps maybe unnecessary, something to work on as I'm a noobie to Ruby. I'd like to sign-off but I'm not sure how to get a Mastercoin address??
So this is what I did:
- Download and install Visual C++ 2008 Redistributables - http://www.microsoft.com/en-us/download/details.aspx?id=29
- Download the main OpenSSL installation "Win32_OpenSSL_v1.0.1e" this is the whole package and not Light version - http://slproweb.com/download/Win32OpenSSL-1_0_1e.exe
- Download the main Ruby install, don't install the latest version 2.0.0 but install the previous version "Ruby 1.9.3-pX" - http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p448.exe?direct
- Download the DevKit for the version of Ruby, this should be "DevKit-tdm-32-4.5.2-20111229-1559-sfx" - https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
- Download & install a copy of Cmake 2.8.5, again this is not the current revision of Cmake so you should look through the archives, however the direct file download is available from http://www.cmake.org/files/v2.8/cmake-2.8.5-win32-x86.exe
- Download MinGW a specific version of GCC is required so you are looking for the compressed file MinGW-gcc440_1.zip I found it on Google - http://code.google.com/p/piece-of-c/downloads/detail?name=MinGW-gcc440_1.zip
- Download & install a specific version of QT as it would appear that the MasterCoin-Wallet was built against version 4.8.3 (the current version is QT 5.x so you need to browse the archive library). The direct url is http://download.qt-project.org/archive/qt/4.8/4.8.3/qt-win-opensource-4.8.3-mingw.exe
- Install QTBindings from the Ruby Gem repository using the following command in a command prompt window - "gem install qtbindings -v 4.8.3.0"
- Finally install the Mastercoin-Wallet again from the Ruby gem repository using the following command in a command prompt window "gem install mastercoin-wallet"
That's it; when I typed "mastercoin-wallet" the application started and I was prompted for a pass-phrase and Mastercoin-Wallet address
HTH
Paul
Wow Paul you really went the extra mile on this! :+1:
I hope you realise that there already is a Windows wallet out there, it's called the My Mastercoin Wallet. It's being maintained by Bitoy and you can find it here.
As to your questions on how to get a Mastercoin address. It's really simple! You probably already have one. Every Bitcoin address can function as Mastercoin address. You just export a private key for a address you want to use as Mastercoin address and that's it :)
Now that sounds like a comprehensive guide on how to get it working, will try that. Thanks @OldCole
@maran: The MyMastercoinWallet you linked is only a binary download and while I can find source code for another similar wallet (the non "thin" wallet) I can't find it for this one that was updated just a day ago. If anything I'd start looking into zathras implementation, as I have been programming C# .NET a lot myself. But it seems nothing happened with it since the initial commit 3 months ago :-( Right now I'd rather stick with the guy that was just announced as full time mastercoin dev, congrats :-) Also I don't care so much about whether it's Windows or Linux, I will try to get this working on ubuntu too (with the script you have linked there).
Zathras is always a bit behind with pushing, I'm sure he will push once it's stable enough for the public. You are welcome to try my wallet it's just such a PITA to get working on Windows. Good luck!
On Tue, Dec 31, 2013 at 9:52 PM, xOR [email protected] wrote:
Now that sounds like a comprehensive guide on how to get it working, will try that. Thanks @OldCole https://github.com/OldCole
@maran https://github.com/maran: The MyMastercoinWallet you linked is only a binary download and while I can find source code for another similar wallet (the non "thin" wallet) I can't find it for this one that was updated just a day ago. If anything I'd start looking into zathras implementation, as I have been programming C# .NET a lot myself. But it seems nothing happened with it since the initial commit 3 months ago :-( Right now I'd rather stick with the guy that was just announced as full time mastercoin dev, congrats :-)
— Reply to this email directly or view it on GitHubhttps://github.com/maran/mastercoin-wallet/issues/1#issuecomment-31410891 .