Bitcoin Forum

Bitcoin => Armory => Topic started by: zherbert on May 08, 2018, 03:22:40 AM



Title: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on May 08, 2018, 03:22:40 AM
Hi all, I have 2 Macs – a Retina iMac and a 2011 Macbook Air. I am having trouble installing Armory on the Air, but it worked fine on the iMac. I followed the Mac Readme.

Might be something specific about the Air. Both on High Sierra. See crash report:  https://pastebin.com/LfQSiJ4r

Help appreciated. Thanks!


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on May 08, 2018, 05:04:48 PM
Crypto++ is the culprit. The version used by Armory (customized version of 5.6.2) is kinda janky and sometimes includes CPU instructions that older processors can't handle. I thought I had caught as much as I could for Macs but there seem to be more issues.

The only real solution, until we get rid of Crypto++ (0.98, I hope), is to build your own version. You can follow the dev notes (https://github.com/goatpig/BitcoinArmory/blob/master/osxbuild/macOS_build_notes.md), which I hope are clear. Basically, get an Apple dev account (free), download Command Line Tools for Xcode (much, much, much smaller than Xcode), and then follow the rest of the instructions verbatim. It should be pretty foolproof but please let me know if you run into any issues.

Thanks for the report.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on May 09, 2018, 01:21:23 AM
Just followed the build instructions, but Armory.app opens for only a fraction of a second and then closes. No error message or anything :(


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on May 09, 2018, 06:11:32 AM
Can you run it from the terminal and see what happens? Assuming Armory.app is in /Applications, /Applications/Armory.app/Contents/MacOS/Armory is what you need to run.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on May 09, 2018, 01:20:32 PM
Getting this:

/Applications/Armory.app/Contents/MacOS/Python: can't open file '/Applications/Armory.app/Contents/MacOS/py/usr/local/lib/armory/ArmoryQt.py': [Errno 2] No such file or directory


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on May 09, 2018, 03:30:52 PM
You'll have to punch in the exact location, not /Applications, unless that's where it is (which it sounds like it isn't). If it's on the desktop, it's /Users/the-username-of-zherbert-right-here/Desktop/Armory.app/Contents/MacOS/Armory.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on May 10, 2018, 02:02:46 AM
It's in Applications. The app is 84.3 mb in size. When I navigate to that "py" folder, though, it is completely empty.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on May 10, 2018, 03:54:56 AM
In that case, something went wrong during compilation. In the Armory directory where you compiled everything, open up osxbuild/build-app.log.txt and go to the end. Do a reserve search for "error" (make sure the case doesn't matter). You'll probably get a few hits upfront for some files with "error" in their names. Ignore those. Once you see something like "Error: Python script failure" or something similar, let me know what it is. If you're truly stuck and the file's too large to post to Pastebin, you can use WeTransfer to send the file to me. PM me and we'll get that set up.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on May 12, 2018, 04:33:44 AM
Thanks, got a few. Hoping I can get things working tomorrow.

checking for pyrcc4... no
configure: error: missing pyrcc4 in path, make sure pyqt4-dev-tools is installed

Error: Use the --qmake argument to explicitly specify a working Qt qmake.

Will DM you and send over the full file if you need more info.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on May 12, 2018, 04:44:30 AM
Also:

Failure to read QMAKESPEC conf file /Users/zherbert/Downloads/armory_0.96.4_src/osxbuild/workspace/install/qt/mkspecs/unsupported/macx-clang-libc++/qmake.conf.
Error processing project file: ArmoryMac.pro



Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on May 12, 2018, 08:33:31 PM
Okay. I'm guessing one of the source files didn't download for whatever reasons. If you look up at the top of the log file, it should show some files being downloaded. I'm guessing at least one of them timed/errored out. Is this true? If so, delete osxbuild/workspace/ and give it another spin.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: zherbert on June 24, 2018, 05:13:37 AM
Still not working sadly, I've tried multiple times and followed the instructions perfectly. Even tried a fresh install. What are my options?


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on June 24, 2018, 06:51:19 PM
Still not working sadly, I've tried multiple times and followed the instructions perfectly. Even tried a fresh install. What are my options?

Can you post build-app.log.txt somewhere and send me the link via PM? I'll take a look and see if anything sticks out.


Title: Re: Mac Installation Issues (followed readme perfectly)
Post by: droark on July 02, 2018, 02:29:13 AM
Hey everyone. FYI, I think I figured out the problem. Qt moved the Qt download, which breaks the Armory build script. If you're having problems, change line 367.

Old:
Code:
http://download.qt-project.org/official_releases/qt/4.8/%s/qt-everywhere-opensource-src-%s.tar.gz" % (qtVer, qtVer), \

New:
Code:
http://download.qt.io/archive/qt/4.8/%s/qt-everywhere-opensource-src-%s.tar.gz" % (qtVer, qtVer), \

I'll throw together a patch for this. It'll definitely be in 0.97, and hopefully 0.96.5 if goatpig does another bugfix release. We'll see about the latter.