Bitcoin Forum
April 26, 2024, 11:16:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Bitcoin / Armory / Re: [ANN] The first Armory-for-OSX Release! (Testing) on: April 16, 2013, 10:02:10 PM
DYLD_LIBRARY_PATH tells the dynamic linker (dyld) to look in the specified places for libraries before it tries the locations in the binary headers and subsequently crashes because it can't find anything. It makes sense then that otool doesn't tell you where the libraries that are actually being used are coming from, as this is being done at runtime and requires no static changes to the binaries. You could set the correct places in the binaries, but you're going to have to edit the build configuration for qt and anything that uses those dependencies. Imo that's not going to change anything and you'll just spend time pulling your hair out.

I don't know what the problem is for everyone since there's only one post with actual error output and it's a segfault. I can't debug that without being able to reproduce it.

If it is trying to find more libraries installed globally that aren't there, you should get an error saying so. If this is the case it's not a big deal, and it can be fixed. I really don't think it is, though, as this would have come up again at some point in the past month.

I suspect some of the problems are coming from the fact that the minimum OS X version is set to 10.8 in the python executable, since etotheipi is building on 10.8.

You can do a search/replace with a hex editor on any binaries you think have a minimum version set like so:
Search: 24 00 00 00 10 00 00 00 00 08 0A 00 00 08 0A 00
Replace: 24 00 00 00 10 00 00 00 00 06 0A 00 00 06 0A 00

This will change the minimum version from 10.8 to 10.6
2  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [CLAIMED -- 25 BTC] on: March 13, 2013, 06:39:03 AM
Right, I can't for the life of me get a snow leopard VM set up, so I'm going to need some more information. There has to be some error output.
3  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [CLAIMED -- 25 BTC] on: March 12, 2013, 11:27:35 PM
I just got here, so I may need to go back and do some reading, but the app does absolutely nothing for me. Double clicking it does nothing, running ~/Downloads/Armory.app/Contents/MacOS/Armory in terminal simply returns... do I need to install something?

I can perfectly understand if not all dependencies could be bundled, but a little error would help me greatly Smiley OSX 10.6.8 here.

I'm working on making a Snow Leopard VM so I can test this. I think I know what the problem is, though. Does your computer have a 32-bit only processor (Core Duo)?
4  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [CLAIMED -- 25 BTC] on: March 12, 2013, 10:43:37 PM
Quote
You said in the opening comment that "I'd also like to see this thread used for collaboration". This is difficult without feedback on the process. It seemed like you're not considering anyone else than higuys, but it wasn't clear. Especially after you moved the discussion away from the forum to IRC, pretty much everyone else was closed out.
Nothing's stopping you from joining the channel. irc.freenode.com #bitcoin-armory

Quote
You also said that the goal is to have a "recipe", but at the end you say the exit criteria was "He gave me a .zip that I downloaded in a fresh install of an OSX virtual machine, double-clicked, and Armory was running.". In that case you should have closed the bounty earlier, or at least indicate that the party was over, because that stage had been reached.
I also told him how to recreate what I did, which is what he meant by recipe. The app was just proof.

Quote
I just got here, so I may need to go back and do some reading, but the app does absolutely nothing for me. Double clicking it does nothing, running ~/Downloads/Armory.app/Contents/MacOS/Armory in terminal simply returns... do I need to install something?

I can perfectly understand if not all dependencies could be bundled, but a little error would help me greatly  OSX 10.6.8 here.
You shouldn't have to install anything, and afaik all of the dependencies are bundled. Running the Armory executable doesn't even output any errors? That's strange. It seems almost everyone is on 10.8.x, so I'll have to set up a 10.6 and 10.7 VM to test more.
5  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [CLAIMED -- 25 BTC] on: March 12, 2013, 10:04:49 PM
I installed Armory with Red Emerald's instructions, using terminal - would you recommend switching to the new .app? And uninstalling previous version?

If you do use the .app, you don't have to worry about uninstalling the old one. Everything that's needed is contained within the .app.

I know you should "never say never", so to speak, but the .app is the exact same thing as what was used before, just self-contained. I tested the basic features myself, making transfers, creating wallets, etc. Of course you should take that with a grain of salt, but that's what I have to say...
6  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [CLAIMED -- 25 BTC] on: March 12, 2013, 09:48:42 PM
Here's my final proof of concept app: http://goo.gl/UYBEj

Feel free to report any more problems, I think I weeded everything out though. I'm glad you guys found my work useful.
7  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 12, 2013, 12:47:29 AM
Alright, with the help of some pills, I fixed most of the stupid shit that my script did. Now, you only need pyqt installed with brew, and it'll just copy it and sip over to the environment. It's still a bit dirty, but it's better.

I'm also integrating it with the makefile in the Armory root dir. So, all you'll have to do is run make osx, and it'll spit out an Armory.app in an osxbuild dir.
8  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 10:45:42 PM
What network?
9  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 10:37:57 PM
It seems you need pyqt to make Armory,
Well, considering that the build instructions say so, this is hardly surprising Smiley

Of course it's in the instructions, at first I was under the impression that pyqt was just needed at runtime, not for building. By the time everything was working I was rather tired and didn't feel like rewriting a good portion of it plus doing MORE testing just to remove that part, such is life.

Quote from: vamdor
Probably because what I said: PyQt needs some small changes to behave properly within the virtualenv. Still, those lines are unnecessary once PyQt is installed by brew.

It is because of what you said. I'm well aware they're unnecessary, but I'm not able to go through the whole gambit of fixing and testing right now. If you figured it out, that's great. Once I get over this damn flu I'll try to make it less gross, or you can fork that gist, I don't care. I should probably reiterate that this script was in no way intended for production use. I mean, it would work, but it was just intended to be a proof of concept.

Oh, and I'd like to point out that it doesn't actually need any changes. The configure.py file has some handy --bindir, --destdir and --sipdir options.

Is there are IRC channel for Armory or something like it? I'm tired of constantly checking the forum, live chat would be much easier.
10  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 02:41:42 PM
It seems you need pyqt to make Armory, and it's also obviously needed inside the bundle. Not optimal, sure, but I was having trouble getting it to work otherwise.
11  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 02:53:03 AM
Also, if you haven't upgraded to Bitcoin-Qt 0.8, then you should do so.  The older versions sometimes took like 24 hours to sync the blockchain.  Version 0.8 takes only 5-6 hours (at least on Linux).  I'm going to work on getting by VM back up so I can test this!

By the way, does it have the Armory icon in the task tray (or whatever it's called)?  Do you know if there's a way to do that?  

Also, does anyone have experience with digitally signing .app's?  You said .dmgs are shinier... well I don't mind a little shiny, if it doesn't come with drawbacks (beside a little more up front cost of setting it up).  I'm still mostly going mostly by your guys' judgment on what's appropriate...

Sorry picobit... I appreciate you trying, but it looks like higuys just left all the competitors in the dust!

Signing is easy. Once you have your cert you'll do codesign -s identity Path_to.app, easily scripted. You can check that it signed by making sure the _CodeSignature dir exists inside Contents.

You can add an icon to the app easily, too. It won't really do anything when Armory is running though, since python is a separate task. All you have to do is make an icns file (you can convert a png or something into one), put it in a Resources dir inside Contents of the app, and then add a CFBundleIconFile key to the Info.plist, the value being the name of the icns file (minus extension). By task tray I think you mean the dock, users choose what goes in that. If referring to the menu bar (at the top), then yes, the icon is there while running.

Thanks for reminding about bitcoin-qt, turns out I was on a super old version!
12  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 02:43:21 AM
higuys, I added a little bit to the end which should produce a valid dmg for it. I based this off my jperf ant script.

https://gist.github.com/colindean/5131539

Cool, is there a way to merge gists? I think I'll add codesigning later, once I better integrate it with the Armory source.
13  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 02:27:51 AM
Fantastic.  The only problem is that I upgraded my OS recently and borked my OSX virtual machine.  I'm going to have to find another way to test this myself.  But as far as I can tell this is what I was looking for.  I assume I can setup this environment once, and hold the git repo inside it.  Then I can just pull the updates from my development machine and rebuild it and re-run the script to package it up...?   There's already a Darwin branch in the makefile... I can just expand it as necessary.

By the way, how big is the final .app file?  Compressed and uncompressed?  Is it normal to distribute apps as zip files?  If so, I guess the uncompressed size doesn't matter...

You'd have to modify the script a bit for what you want, especially if it's going to be in the makefile. I might play around with that later this week, I'll send you a pull request on github if I get any results.

The final app is about the same as my last version, 134.7MB for the actual app, 38.4MB zipped. Apps are almost always distributed in a zip or dmg, imo zip is better. Dmg doesn't really have any benefit other than being shiny.

Here's an app generated by the script: http://goo.gl/GWeoO
14  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 11, 2013, 02:16:48 AM
Alright guys, the script is done. I've tested it a few times and the .app it produces appears to work fine. None of the problems people have had before are present (afaik). I still can't test making transfers or anything like that, but I don't think the wrapper would affect it. How long is syncing the blockchain supposed to take for the first time?

Once again, download the buildarmory.sh file from https://gist.github.com/bsmt/5130568 and run it. You'll have to input your password a few times (unless you run it as root) and say "yes" to one license agreement. The dependencies it needs to run are xcode, brew, and pip. Aside from that, it will install cryptopp, swig, qt, pyqt and wget on your machine. It takes a while to build because it does everything from scratch and pyqt takes a looooooong time to make. There are some optimizations that could be made, but I'm going to hold off until I get feedback from etotheipi and everyone else.

It might be a good idea to integrate this into the Armory makefile, too, provided this is what etotheipi wants.
15  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 10, 2013, 11:49:26 PM
Okay, last few remarks then I am done for today, I need to sleep.



1. The sip installer in your script has the same idiotic problem I struggled with: it wants to put itself outside the virtualenv.  /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7.  It asks for root password when it gets to that point, that's when I killed it...

2. As I only used this system for iOS development, and I only use python on linux boxes, I didn't really have any "extra" packages. Only wget was missing (in addition to swig), so it's good, no exotic dependencies.

3. the "cd sip-4.14.4.tar.gz" line must be replaced to "cd sip-4.14.4"

Thanks, I've fixed problem 1 and 3 already. I'm now testing and then I'll update the gist.
16  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 10, 2013, 11:16:43 PM
Swig isn't a python package just like you said, so it doesn't matter if you're in an env or using global python. You should be able to use it anywhere.

Using brew isn't going to make it system-dependent. You're installing those so that you can either build armory or put qt into the package. In the end the only things going into the actual package are qt, some python packages installed in the env, python, and armory

Looks like the problem isn't where swig is installed, but that it can't find some files. I'm not sure what you're trying to do with the Lib folder from the env either...
17  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 10, 2013, 11:03:10 PM
Anyways, revision 3: http://goo.gl/73v3b
Now it works on my mac. (the previous one had the same problem as listed above by picobit)

And for the swig dependency: I am trying to install it within virtualenv, but it again mixes up the global directories and the virtualenv ones. Then I tried to put it in one of the locations the makefiles tries, but even then there is some problem... So the build process is definitely not as straight-forward as your hand-written script suggests Smiley   (at least not when insisting on virtualenv)

All you should have to do is install swig with brew, though you also need cryptopp and qt as shown by WyseNynja's guide. I don't see how global python is getting confused with the virtualenv, you have to do bin/python, bin/pip etc in the directory to use the virtualenv. Logs would be awesome.

As for the script, I decided to have it just install swig, cryptopp, qt and virtualenv for you. Now all that's required is brew and pip, which you should have anyways.
18  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 10, 2013, 10:48:55 PM
I'm also on Mac OS X 10.8.2, but the app crashes every time I open it.

Terminal output? Also, what version did you try? I've had to fix it three times already.
19  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 10, 2013, 10:44:54 PM
I forgot to put License.pyc file in! Weird that it shows the path to my hard drive...

I just tested it on my macbook that hasn't run Armory before, and it worked. I could still be missing dependencies though.

Anyways, revision 3: http://goo.gl/73v3b

Thanks for being patient with me guys.
20  Bitcoin / Development & Technical Discussion / Re: The official Armory-for-OSX Bounty Thread [25 BTC] on: March 10, 2013, 10:31:58 PM
Okay, I fixed the libpng problem. New app here: http://goo.gl/e3cCX

I wouldn't be surprised if there are more dependencies that I missed. Let me know if you come across any, adding them is trivial.

I also updated the gist to reflect the changes I had to make.

Code:
$ ./Armory.app/Contents/MacOS/Armory 
 2013-03-10 23:27:37.915 python[573:707] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
(ERROR) Traceback (most recent call last):
  File "armorysrc/ArmoryQt.py", line 3667, in <module>
    form = ArmoryMainWindow()
  File "armorysrc/ArmoryQt.py", line 106, in __init__
    DlgEULA(self,self).exec_()
  File "/Volumes/Cipher/home/Desktop/BitcoinArmory/qtdialogs.py", line 3504, in __init__
ImportError: No module named LICENSE

Traceback (most recent call last):
  File "armorysrc/ArmoryQt.py", line 3667, in <module>
    form = ArmoryMainWindow()
  File "armorysrc/ArmoryQt.py", line 106, in __init__
    DlgEULA(self,self).exec_()
  File "/Volumes/Cipher/home/Desktop/BitcoinArmory/qtdialogs.py", line 3504, in __init__
ImportError: No module named LICENSE


Something is still missing ...

And the path /Volumes/Cipher/... looks wrong, it must be a path on your computer.

That is strange... Looks like I missed some settings files, or something.
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!