Pages:
Author

Topic: Bytecoin-Qt for Mac OS X (Read 6435 times)

hero member
Activity: 617
Merit: 531
April 21, 2013, 04:38:26 AM
#22

After a mountain of hurdles, and learning curves today, ( its been fun ! ), I've built Bytecoin-Qt for Mac OS X

You can grab it here for now http://ge.tt/43pGKId/v/0?c

It was built on Mac OS Lion, x86_64. I wouldn't be surprised if it has problems on other versions, let me know if so, and apologies in advance if that is the case.

This does not work outside of your development computer, as you need to ship it with the libs and update the location in the app and dylibs inside your bytcoin-qt.app using install_name_tool. The instructions below show you how to do this from the part Linking the Application to Qt as Frameworks when it talks about the otool.

http://harmattan-dev.nokia.com/docs/library/html/qt4/deployment-mac.html

If you look at the output of otool -L Bytecoin-Qt.app/Contents/MacOS/Bitcoin-Qt. Those /opt/local/lib are on your computer only. Using cp -R you transfer the files to the Framework folder created in Bytecoin-Qt.app/Contents/ then use otool to change the location of the libs relative to the @executable_path.

Quote
   /opt/local/lib/libminiupnpc.8.dylib (compatibility version 0.0.0, current version 0.0.0)
   /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 833.25.0)
   /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0)
   /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1138.51.0)
   /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
   /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
   /opt/local/lib/db48/libdb_cxx-4.8.dylib (compatibility version 0.0.0, current version 0.0.0)
   /opt/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   /opt/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   /opt/local/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   /opt/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.4)
   QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4)
   /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
   /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1094.0.0)
   /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
   /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 53.0.0)
   /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)

If you check the output of otool -L Feathercoin-Qt.app/Contents/MacOS/Feathercoin-Qt you can see all the locations have been updated. The info is all in the link above. If anyone knows a better way of doing this than using the install_name_tool please let me know.

Quote
   @executable_path/../Frameworks/libminiupnpc.8.dylib (compatibility version 0.0.0, current version 0.0.0)
   /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 945.16.0)
   /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 45.0.0)
   /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1187.37.0)
   @executable_path/../Frameworks/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
   @executable_path/../Frameworks/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
   @executable_path/../Frameworks/libdb_cxx-4.8.dylib (compatibility version 0.0.0, current version 0.0.0)
   @executable_path/../Frameworks/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   @executable_path/../Frameworks/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   @executable_path/../Frameworks/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   @executable_path/../Frameworks/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
   @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.1)
   @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.1)
   /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
   /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 57.0.0)
   /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.18.0)
   /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
full member
Activity: 126
Merit: 100
sr. member
Activity: 308
Merit: 250
April 20, 2013, 11:16:25 PM
#20
Thanks!!
full member
Activity: 126
Merit: 100
April 11, 2013, 04:20:29 AM
#19
Any chance for pre-compiled binaries?

I'm having a hell of a time.

Everything I have is in the links above, links to the source code, link to the -qt I created on my Mac running Lion, and the bytecoind binary that I compiled from the source. Not sure there is anything else, if someone wants to give me the cost of Mountain Lion ( is it mountain Lion you having the trouble on ? ) in bitcoins, I'll go buy it, install it and try and compile one that works on that version ( no guarantees I can get it working though ) Smiley

Other than that, what problems are you having, share the info, might be able to help...

Quite a few errors. 
Any ideas:  http://pastebin.com/Cj50BVbb

Just from all those references to 'boost' I'd say perhaps you're missing that, or have a different version than required, probably the former, or if boost is all present and correct the code isn't seeing it, not sure why that would be though.

Have you tried following the instructions here ?

https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md

Note, in the macports or homebrew sections it mentions installing these,

boost
db48@+no_java
openssl
miniupnpc
sr. member
Activity: 275
Merit: 250
April 10, 2013, 05:28:24 PM
#18
Any chance for pre-compiled binaries?

I'm having a hell of a time.

Everything I have is in the links above, links to the source code, link to the -qt I created on my Mac running Lion, and the bytecoind binary that I compiled from the source. Not sure there is anything else, if someone wants to give me the cost of Mountain Lion ( is it mountain Lion you having the trouble on ? ) in bitcoins, I'll go buy it, install it and try and compile one that works on that version ( no guarantees I can get it working though ) Smiley

Other than that, what problems are you having, share the info, might be able to help...

Quite a few errors. 
Any ideas:  http://pastebin.com/Cj50BVbb
full member
Activity: 126
Merit: 100
April 10, 2013, 04:32:14 PM
#17
Any chance for pre-compiled binaries?

I'm having a hell of a time.

Everything I have is in the links above, links to the source code, link to the -qt I created on my Mac running Lion, and the bytecoind binary that I compiled from the source. Not sure there is anything else, if someone wants to give me the cost of Mountain Lion ( is it mountain Lion you having the trouble on ? ) in bitcoins, I'll go buy it, install it and try and compile one that works on that version ( no guarantees I can get it working though ) Smiley

Other than that, what problems are you having, share the info, might be able to help...
sr. member
Activity: 275
Merit: 250
April 10, 2013, 12:42:10 PM
#16
Any chance for pre-compiled binaries?

I'm having a hell of a time.
lbr
sr. member
Activity: 423
Merit: 254
April 09, 2013, 05:03:51 PM
#15
btw,
you can change dylib paths after compilations, f.e.-

install_name_tool -change  /usr/local/Cellar/gcc48/4.8.0/gcc/lib/libgcc_s.1.dylib ./libgcc_s.1.dylib  cgminer

makes cgminer too look for libgcc_s.1dylib in current folder ./

I've created portable cgminer that way.

There is only one issue, though.
If you then run your executable from finder, it will use system installed libraries if they are available.
And some libraries provided with Mac OS X are old.

So, in order to use libraries in your 'portable package'( at "./"path) you need to create .sh which first cd's to current executable folder and then launches it.
full member
Activity: 126
Merit: 100
April 08, 2013, 07:12:16 AM
#14
Code:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /opt/local/lib/libminiupnpc.8.dylib
  Referenced from: /Volumes/VOLUME/Bytecoin-Qt.app/Contents/MacOS/Bitcoin-Qt
  Reason: image not found


run
Code:
ls -la /opt/local/lib/libminiupnpc.8.dylib
  is it there ?
newbie
Activity: 54
Merit: 0
April 08, 2013, 07:06:14 AM
#13
Code:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /opt/local/lib/libminiupnpc.8.dylib
  Referenced from: /Volumes/VOLUME/Bytecoin-Qt.app/Contents/MacOS/Bitcoin-Qt
  Reason: image not found
full member
Activity: 126
Merit: 100
April 08, 2013, 05:22:27 AM
#12
I'll upload the binary later, ( can't do it right now ), and will paste link here, if you run that on command line it may output a meaningful error to give a clue

Other than that, in the meantime /var/log/system.log may show something useful

This should show what bytecoin linked against when I compiled it, note db48 is mentioned, if you dont have this, maybe a later version only, like db53, this could be the problem, just a hunch.

Code:
$ otool -L bytecoind
bytecoind:
/opt/local/lib/db48/libdb_cxx-4.8.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7)
/opt/local/lib/libminiupnpc.8.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
$

I've uploaded bytecoind here :

http://ge.tt/28qBETd/v/0?c

Try running this on command line, maybe start with ./bytecoind -?  to see the options etc.. e.g, -debug

Hope that helps!, let me know what you find..

full member
Activity: 126
Merit: 100
April 07, 2013, 05:01:18 PM
#11
I'll upload the binary later, ( can't do it right now ), and will paste link here, if you run that on command line it may output a meaningful error to give a clue

Other than that, in the meantime /var/log/system.log may show something useful
hero member
Activity: 700
Merit: 500
April 07, 2013, 04:55:51 PM
#10
Thanks for uploading, but unfortunately it does not work for me, I'm on 10.8.3 (crashes immediately after openeing).

It was compiled on Lion, 10.7. Probably something it's linked against is different in 10.8. Could be 10.8 uses a different 'db' version, seems the bitcoin/bytecoin code requires db48. Try running something like 'locate lib | grep db48', see if its there ?


Running "locate lib | grep db48" gives no output all at, so it might be missing. Is there a debug log somewhere where I can look up the errors?
full member
Activity: 126
Merit: 100
April 07, 2013, 04:53:34 PM
#9
Thanks for uploading, but unfortunately it does not work for me, I'm on 10.8.3 (crashes immediately after openeing).

It was compiled on Lion, 10.7. Probably something it's linked against is different in 10.8. Could be 10.8 uses a different 'db' version, seems the bitcoin/bytecoin code requires db48. Try running something like 'locate lib | grep db48', see if its there ?

hero member
Activity: 700
Merit: 500
April 07, 2013, 11:20:49 AM
#8
Thanks for uploading, but unfortunately it does not work for me, I'm on 10.8.3 (crashes immediately after openeing).
full member
Activity: 126
Merit: 100
April 06, 2013, 11:45:14 PM
#7
can you post some building instructions ?

and would be nice if it works with homebrew, coz who uses macports these days, and they are stepping one another toes

https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md

For qt - https://github.com/bitcoin/bitcoin/blob/master/doc/readme-qt.rst ( this quite a bit more difficult than the doc suggests if like me, you havent used qt creator before, took a while to figure out, and, I couldn't get it to work with version 5 qt, seems you do have to use 4 )
legendary
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
April 06, 2013, 11:40:33 PM
#6
can you post some building instructions ?

and would be nice if it works with homebrew, coz who uses macports these days, and they are stepping one another toes
full member
Activity: 126
Merit: 100
April 06, 2013, 07:43:36 PM
#5
Doesn't work on mountain lion, 10.8.3, doesn't even load crash right on start.

hmm, Well I only have Lion, which is what was used to do the build, and it is the first time for me doing something like this, ( a rather steep learning curve Wink )

If you can find any useful logs, will be interested in taking a look. If you'd like to try building on ML, happy to point you in right direction if you need it.

sr. member
Activity: 275
Merit: 250
full member
Activity: 126
Merit: 100
Pages:
Jump to: