Pages:
Author

Topic: The collective Mastercoin-explorer, Mastercoin-ruby and Mastercoin-wallet topic - page 10. (Read 19556 times)

full member
Activity: 201
Merit: 100
I really had to fight with qtbindings but finally got things going and I finally have a functioning mastercoin-wallet!  great work Tachikoma!...will start doing some testing after work.
hero member
Activity: 938
Merit: 1000
Please uninstall that and use the instructions from the readme. brew install qt
hero member
Activity: 938
Merit: 1000
How did you install QT?
sr. member
Activity: 279
Merit: 250
Installed.

Then ran "gem install mastercoin-wallet"


Building native extensions.  This could take a while...
ERROR:  Error installing mastercoin-wallet:
   ERROR: Failed to build gem native extension.

    /Users/XXXX/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb

make
mkdir ext/build
mkdir bin/1.8
mkdir bin/1.9
mkdir bin/plugins
mkdir bin/plugins/accessible
mkdir bin/plugins/bearer
mkdir bin/plugins/codecs
mkdir bin/plugins/designer
mkdir bin/plugins/graphicssystems
mkdir bin/plugins/iconengines
mkdir bin/plugins/imageformats
mkdir bin/plugins/phonon_backend
mkdir bin/plugins/qmltooling
mkdir bin/plugins/sqldrivers
mkdir lib/1.8
mkdir lib/1.9
cd ext/build; rm -rf CMakeFiles
cd ext/build; rm -rf generator
cd ext/build; rm -rf smoke
cd ext/build; rm -rf ruby
cd ext/build; rm *
rm: *: No such file or directory
make: [clean] Error 1 (ignored)
cd ext/build; \
cmake \
-G "Unix Makefiles" \
-Wno-dev \
-DENABLE_SMOKE=on \
-DENABLE_QTCORE_SMOKE=on \
-DENABLE_QTNETWORK_SMOKE=on \
-DENABLE_QTDBUS_SMOKE=on \
-DENABLE_QTGUI_SMOKE=on \
-DENABLE_QTSVG_SMOKE=on \
-DENABLE_QTSQL_SMOKE=on \
-DENABLE_QTXML_SMOKE=on \
-DENABLE_QTXMLPATTERNS_SMOKE=on \
-DENABLE_QTOPENGL_SMOKE=on \
-DENABLE_QTWEBKIT_SMOKE=on \
-DENABLE_QTSCRIPT_SMOKE=on \
-DENABLE_QTUITOOLS_SMOKE=on \
-DENABLE_QTTEST_SMOKE=on \
-DENABLE_QTMULTIMEDIA_SMOKE=on \
-DENABLE_QTRUBY=on \
-DENABLE_QTWEBKIT_RUBY=on \
-DENABLE_QTUITOOLS_RUBY=on \
-DENABLE_QTSCRIPT=on \
-DENABLE_QTTEST=on \
..
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/local/Cellar/cmake/2.8.12/share/cmake/Modules/FindQt4.cmake:1386 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  generator/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/XXXX/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/ext/build/CMakeFiles/CMakeOutput.log".
make: [build] Error 1 (ignored)
cd ext/build; make
make[1]: *** No targets specified and no makefile found.  Stop.
make: *** [build] Error 2


Gem files will remain installed in /Users/XXXX/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0 for inspection.
Results logged to /Users/XXXX/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/./gem_make.out
sr. member
Activity: 279
Merit: 250
hero member
Activity: 938
Merit: 1000
sr. member
Activity: 279
Merit: 250

Done. But still get errors when I run "gem install mastercoin-wallet"

The I gem install mastercoin-wallet
Fetching: bitcoin-ruby-0.0.2.gem (100%)
Successfully installed bitcoin-ruby-0.0.2
Fetching: sequel-4.1.1.gem (100%)
Successfully installed sequel-4.1.1
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
Fetching: activesupport-3.0.0.gem (100%)
Successfully installed activesupport-3.0.0
Fetching: mastercoin-ruby-0.1.0.gem (100%)
Successfully installed mastercoin-ruby-0.1.0
Fetching: qtbindings-4.8.3.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing mastercoin-wallet:
   ERROR: Failed to build gem native extension.

    /Users/XXXX/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb

make
mkdir ext/build
mkdir bin/1.8
mkdir bin/1.9
mkdir bin/plugins
mkdir bin/plugins/accessible
mkdir bin/plugins/bearer
mkdir bin/plugins/codecs
mkdir bin/plugins/designer
mkdir bin/plugins/graphicssystems
mkdir bin/plugins/iconengines
mkdir bin/plugins/imageformats
mkdir bin/plugins/phonon_backend
mkdir bin/plugins/qmltooling
mkdir bin/plugins/sqldrivers
mkdir lib/1.8
mkdir lib/1.9
cd ext/build; rm -rf CMakeFiles
cd ext/build; rm -rf generator
cd ext/build; rm -rf smoke
cd ext/build; rm -rf ruby
cd ext/build; rm *
rm: *: No such file or directory
make: [clean] Error 1 (ignored)
cd ext/build; \
cmake \
-G "Unix Makefiles" \
-Wno-dev \
-DENABLE_SMOKE=on \
-DENABLE_QTCORE_SMOKE=on \
-DENABLE_QTNETWORK_SMOKE=on \
-DENABLE_QTDBUS_SMOKE=on \
-DENABLE_QTGUI_SMOKE=on \
-DENABLE_QTSVG_SMOKE=on \
-DENABLE_QTSQL_SMOKE=on \
-DENABLE_QTXML_SMOKE=on \
-DENABLE_QTXMLPATTERNS_SMOKE=on \
-DENABLE_QTOPENGL_SMOKE=on \
-DENABLE_QTWEBKIT_SMOKE=on \
-DENABLE_QTSCRIPT_SMOKE=on \
-DENABLE_QTUITOOLS_SMOKE=on \
-DENABLE_QTTEST_SMOKE=on \
-DENABLE_QTMULTIMEDIA_SMOKE=on \
-DENABLE_QTRUBY=on \
-DENABLE_QTWEBKIT_RUBY=on \
-DENABLE_QTUITOOLS_RUBY=on \
-DENABLE_QTSCRIPT=on \
-DENABLE_QTTEST=on \
..
/bin/sh: cmake: command not found
make: [build] Error 127 (ignored)
cd ext/build; make
make[1]: *** No targets specified and no makefile found.  Stop.
make: *** [build] Error 2


Gem files will remain installed in /Users/XXXX/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0 for inspection.
Results logged to /Users/XXXX/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/./gem_make.out

Tried to then run "mastercoin-wallet" but "-bash: mastercoin-wallet: command not found"
legendary
Activity: 1078
Merit: 1001
Bitcoin is new, makes sense to hodl.
I've just release 0.0.5.


* All private key formats should now work, please let me know if it doesn't.
* Fixed Label offset
* Set proper version number

Please let me know if this works for you romerun Smiley

o yea, now it's working, schwing!
hero member
Activity: 938
Merit: 1000
This is a long shot but could you try (re)installing ruby with rvm using 'rvm install 1.9.3 -C --enable-shared', and then try installing qtbindings again.
full member
Activity: 201
Merit: 100
Well - still kinda stuck.  Originally I was running ruby 2.0 with QT5 and later QT4 downloaded and installed via qt-project.org.  Could not install wallet so went back, removed QT and attempted to install via brew after doing brew update (also, I was using MacPorts which I first removed).  qt install was falling using brew so I was able to install it by using:

brew install https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb --HEAD

per https://github.com/mxcl/homebrew/pull/23793

and that was successful.  But still could not install wallet.  Thought maybe related to ruby 2.0 so changed to 1.9.3-p448

Now when I attempt to install wallet, I'm still getting smoke qtbinding errors for example:

Scanning dependencies of target smokeqtdbus
[ 42%] Building CXX object smoke/qtdbus/CMakeFiles/smokeqtdbus.dir/smokedata.o
/Users/xxx/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/qtbindings-4.8.3.0/ext/build/smoke/qtdbus/smokedata.cpp:12:32: error: use of undeclared identifier 'DBusError'
        case 1: return (void*)(DBusError*)xptr;
                               ^
/Users/xxx/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/qtbindings-4.8.3.0/ext/build/smoke/qtdbus/smokedata.cpp:12:42: error: expected expression
        case 1: return (void*)(DBusError*)xptr;

.
.
.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [smoke/qtdbus/CMakeFiles/smokeqtdbus.dir/smokedata.o] Error 1
make[2]: *** [smoke/qtdbus/CMakeFiles/smokeqtdbus.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [build] Error 2

So that's where I'm stuck now...any thoughtst?
Considering setting up on an old macbook but need to free drive space first..
hero member
Activity: 938
Merit: 1000
I've just release 0.0.5.


* All private key formats should now work, please let me know if it doesn't.
* Fixed Label offset
* Set proper version number

Please let me know if this works for you romerun Smiley
hero member
Activity: 938
Merit: 1000
it's saying cannot get bitcoin address from private key which I got from dumpprivkey

Did you check for trailing whitespace? Does your key start with a 5?

No leading or trailing space, it starts with K

You got it from Bitcoind's dumpprivkey? Normally these keys are WIP format as far as I know and I think they should start with a 5.

hm.. that's what Bitcoin-QT 0.85 gave me in console. My wallet is also encrypted, is that the reason why it does not give me standard format? um.. I'm on osx, don't have bitcoind.

According to the spec:

Quote
Wallet import format is the most common way to represent private keys in Bitcoin. For private keys associated with uncompressed public keys, they are 51 characters and always start with the number 5. Private keys associated with compressed public keys are 52 characters and start with a capital L or K. This is the same private key in wallet import format.

I have yet found a way to covert it to the 5 format.

Can you just support the "compressed" format ?

You mean the uncompressed format? That should also work; it's weird it doesn't for you. How many characters is your key? I will try some things Smiley

Edit: Think I can make it work for you, will post an update in a few minutes Smiley
legendary
Activity: 1078
Merit: 1001
Bitcoin is new, makes sense to hodl.
it's saying cannot get bitcoin address from private key which I got from dumpprivkey

Did you check for trailing whitespace? Does your key start with a 5?

No leading or trailing space, it starts with K

You got it from Bitcoind's dumpprivkey? Normally these keys are WIP format as far as I know and I think they should start with a 5.

hm.. that's what Bitcoin-QT 0.85 gave me in console. My wallet is also encrypted, is that the reason why it does not give me standard format? um.. I'm on osx, don't have bitcoind.

According to the spec:

Quote
Wallet import format is the most common way to represent private keys in Bitcoin. For private keys associated with uncompressed public keys, they are 51 characters and always start with the number 5. Private keys associated with compressed public keys are 52 characters and start with a capital L or K. This is the same private key in wallet import format.

I have yet found a way to covert it to the 5 format.

Can you just support the "compressed" format ?
hero member
Activity: 938
Merit: 1000
Just some more notes and suggestions:

- I have 0.0.4 running, yet the Window title still says "Mastercoin wallet v0.0.3"
Woopsy! I will make sure that doesn't happen again Smiley


- The label "My purchase offers" is cutted off on my system: http://i.imgur.com/Je9AoWY.png
Will fix that for the next release

- Will this wallet be able to manage multiple addresses at some point? That would be awesome.

Yeah I've considered doing this, shouldn't be too hard Smiley
hero member
Activity: 700
Merit: 500
Just some more notes and suggestions:

- I have 0.0.4 running, yet the Window title still says "Mastercoin wallet v0.0.3"
- The label "My purchase offers" is cutted off on my system: http://i.imgur.com/Je9AoWY.png
- Will this wallet be able to manage multiple addresses at some point? That would be awesome.
hero member
Activity: 938
Merit: 1000
sr. member
Activity: 279
Merit: 250
Please try this.

Code:
rvm install ruby-1.9.3
rvm use 1.9.3
gem install mastercoin-wallet

And let me know what that does Smiley

rvm install ruby-1.9.3
Already installed ruby-1.9.3-p448.
To reinstall use:

    rvm reinstall ruby-1.9.3
 rvm use 1.9.3
Using /Users/computerName/.rvm/gems/ruby-1.9.3-p448

gem install mastercoin-wallet
ERROR:  Could not find a valid gem 'mastercoin-wallet' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/mastercoin-wallet-0.0.4.gemspec.rz)
ERROR:  Possible alternatives: mastercoin-wallet

hero member
Activity: 938
Merit: 1000
Please try this.

Code:
rvm install ruby-1.9.3
rvm use 1.9.3
gem install mastercoin-wallet

And let me know what that does Smiley
Pages:
Jump to: