On Sat, Aug 15, 2015 at 9:17 PM, Jonathan Bennett <jbscienc...@gmail.com>
wrote:

> I would like to eventually offer a dmg download that contains a portable
> bundle that will run fwknop-gui without needing macports or homebrew.
> Building that portable bundle is what I've had so much trouble with.
>
> What has to happen for this to work is all the dylibs that are built using
> homebrew/macports need to be copied into the bundle, and then everything
> has to be tweaked due to the changing paths. Cmake has the ability to do
> this, and my latest push to github adds the code to make it happen. "make
> install" runs the bundle builder.
>
> WxWidgets from macports didn't work for me when trying to build that
> portable bundle. There was some strange interaction between the two that
> resulted in cmake refusing to copy the wxwidgets libs into the bundle.
>
> When using homebrew instead of macports, the bundle builds without error,
> but then running "open fwknop-gui.app" or running the bundle from finder
> causes a segfault. I am curious if you would get the same segfault.
>

On my Mac, I have homebrew and I did a 'make install' which copied a bunch
of the .dylib shared libraries into the build/fwknop-gui.app/Contents/MacOS
directory. When I ran the app out of this directory, I was initially seeing
the same segfault that you mentioned. For some strange reason, it looks
like two different versions of each shared library are copied like this:

libwx_baseu-3.0.0.2.0.dylib
libwx_baseu-3.0.dylib

etc...

If I remove all of the *3.0.dylib files and leave the *3.0.0.2.0.dylib
ones, then the UI seem to work just fine without segfaulting.

Thanks,

--Mike


> On Sat, Aug 15, 2015, 7:49 PM Sebastien J. <s...@mac.com> wrote:
>
>> Haven’t run make install, and haven’t tried using the binary on another
>> Mac without Homebrew (MacPorts sucks).
>>
>> On 15 Aug 2015, at 8:48 pm, Jonathan Bennett <jbscienc...@gmail.com>
>> wrote:
>>
>> The binary builds, but did you run make install? Does the fwknop-gui.app
>> bundle run on a mac that doesn't have macports?
>>
>> On Sat, Aug 15, 2015, 7:42 PM Sebastien J. <s...@mac.com> wrote:
>>
>> I compiled on OSX and it launches fine…
>>>
>>> Used Homebrew for my dependencies.
>>>
>>> <Screen Shot 2015-08-15 at 8.41.57 pm.png>
>>>
>>
>>> On 15 Aug 2015, at 6:58 pm, Jonathan Bennett <jbscienc...@gmail.com>
>>> wrote:
>>>
>>> I've spent quite some time now trying to get a mac bundle to build. I've
>>> pushed the changes to CMakeLists.txt to github that *should* produce a
>>> valid bundle when make install is run. Right now, the wxwidgets installed
>>> by macports causes the bundle creation to error out. When using homebrew
>>> make install appears to complete successfully. When running, though, we get
>>> an immediate segfault: EXC_BAD_ACCESS KERN_PROTECTION_FAILURE.
>>>
>>> So, I'm a bit lost on this. Any of you mac guys feel free to jump in and
>>> figure this out. I asked in the cmake irc, and they had no idea.
>>>
>>> On Fri, Aug 14, 2015 at 9:52 PM Michael Rash <michael.r...@gmail.com>
>>> wrote:
>>>
>>>> On Fri, Aug 14, 2015 at 9:58 PM, Jonathan Bennett <
>>>> jbscienc...@gmail.com> wrote:
>>>>
>>>>> Made a couple fixes and pushed to github. Seems to work on this mac
>>>>> now. I am trying to get a working bundle so it can be distributed without 
>>>>> a
>>>>> macports or homebrew install.
>>>>>
>>>>
>>>> Yep, IP resolution mode works now on Yosemite.
>>>>
>>>> --Mike
>>>>
>>>>
>>>>
>>>>>
>>>>> On Fri, Aug 14, 2015, 8:20 PM Michael Rash <michael.r...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> On Fri, Aug 14, 2015 at 4:08 PM, Damien Stuart <dstu...@dstuart.org>
>>>>>> wrote:
>>>>>>
>>>>>>> The knock is working as well.
>>>>>>>
>>>>>>> I should point out that this is on a different Mac (mine at home
>>>>>>> running Mavericks).  This first one I used is older (with Mountain 
>>>>>>> Lion).
>>>>>>> I will retry on the older one when I get a chance.
>>>>>>>
>>>>>>
>>>>>> The CMAKE_OSX_ARCHITECTURES update allowed me to get the UI compiled.
>>>>>> I'm on Yosemite with this Mac, and the UI launches and allows me to save 
>>>>>> a
>>>>>> config. I can also successfully send a knock unless I use the IP 
>>>>>> resolution
>>>>>> mode (which gives "Failed initialization"). That exact message does not
>>>>>> come from fwknop-gui or libfko that I can see, so perhaps this is another
>>>>>> error from curl? The SPA packets work great in non-resolution mode.
>>>>>>
>>>>>> --Mike
>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> -Damien
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Aug 14, 2015 at 1:32 PM, Jonathan Bennett <
>>>>>>> jbscienc...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Removing that line was an option I wanted to test. When you say it
>>>>>>>> is working, do you mean just the compiling, or sending a knock as well?
>>>>>>>>
>>>>>>>> At one point I had a bug where only the first knock would work and
>>>>>>>> repeated attempts would fail, but I thought I fixed that one. That 
>>>>>>>> could be
>>>>>>>> what is happening, though.
>>>>>>>>
>>>>>>>> On Fri, Aug 14, 2015, 12:11 PM Damien Stuart <dstu...@dstuart.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hmm.
>>>>>>>>>
>>>>>>>>> I commented out the CMAKE_OSX_ARCHITECTURES on my mac at home and
>>>>>>>>> it's working.  I should also add that I am using Homebrew instead of
>>>>>>>>> macports.
>>>>>>>>>
>>>>>>>>> -Damien
>>>>>>>>>
>>>>>>>>> On Fri, Aug 14, 2015 at 1:05 PM, Jonathan Bennett <
>>>>>>>>> jbscienc...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> That is probably an error from the curl library trying to do
>>>>>>>>>> https to resolve the local ip. I'll add that to the todo list for 
>>>>>>>>>> when I
>>>>>>>>>> get back to a mac to work on it. Thank you for the report.
>>>>>>>>>>
>>>>>>>>>> On Fri, Aug 14, 2015, 12:01 PM Damien Stuart <dstu...@dstuart.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> I was able to get it to compile on my mac after setting
>>>>>>>>>>> "CMAKE_OSX_ARCHITECTURES x86_64" in the CMakeLists.txt file.
>>>>>>>>>>>
>>>>>>>>>>> It runs, but when I go to send a knock, it just pops up a dialog
>>>>>>>>>>> stating "Unknown Error".
>>>>>>>>>>>
>>>>>>>>>>> -Damien
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Aug 13, 2015 at 11:19 PM, Jonathan Bennett <
>>>>>>>>>>> jbscienc...@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Aug 13, 2015, 10:07 PM Michael Rash <
>>>>>>>>>>>> michael.r...@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Aug 13, 2015 at 4:28 PM, Jonathan Bennett <
>>>>>>>>>>>> jbscienc...@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> There is now an installer for fwknop-gui on Windows. It's built
>>>>>>>>>>>> using inno setup. Link here:
>>>>>>>>>>>> http://incomsystems.biz/misc/fwknop-gui-installer.exe
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Awesome! I used the installer on a Window 7 VM, and it worked
>>>>>>>>>>>> perfectly (sending a SPA packet to fwknopd running on a separate 
>>>>>>>>>>>> Linux box).
>>>>>>>>>>>>
>>>>>>>>>>>> I also compiled up the UI on an Ubuntu 1410 system, and it
>>>>>>>>>>>> worked there too after I got the wxWidgets stuff installed. One 
>>>>>>>>>>>> minor thing
>>>>>>>>>>>> is that the backspace key did not seem to delete characters out of 
>>>>>>>>>>>> fields
>>>>>>>>>>>> like the stanza name - not sure if this is something in my setup 
>>>>>>>>>>>> or not
>>>>>>>>>>>> (ubuntu VM on a Mac). I was able to highlight the complete field 
>>>>>>>>>>>> and then
>>>>>>>>>>>> type over the existing text as a workaround. Also, for both the 
>>>>>>>>>>>> Linux and
>>>>>>>>>>>> Windows UI's, the tab key doesn't seem to move the cursor from one 
>>>>>>>>>>>> field to
>>>>>>>>>>>> the next. (Totally minor - just reporting things in case they are 
>>>>>>>>>>>> useful.)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> The tab issue I was aware of, but not the backspace issue. I'll
>>>>>>>>>>>> investigate and get it fixed.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> A feature for a future release might be to add a status bar (or
>>>>>>>>>>>> box) that lets the user know that a SPA packet has been sent after 
>>>>>>>>>>>> hitting
>>>>>>>>>>>> the "Send Knock" button. This could come in handy if the IP 
>>>>>>>>>>>> resolution step
>>>>>>>>>>>> is slow for example. This could maybe be a text status area at the 
>>>>>>>>>>>> bottom
>>>>>>>>>>>> of the UI that just flashes the steps involved such as "resolving 
>>>>>>>>>>>> IP...",
>>>>>>>>>>>> "sending knock", etc. If the IP resolution is fast, then this 
>>>>>>>>>>>> status would
>>>>>>>>>>>> just flash very briefly before moving to the next phase. What do 
>>>>>>>>>>>> you think?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> If something goes wrong, a message is displayed. I think a
>>>>>>>>>>>> visual feedback of success would also be helpful.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> This is still the same early alpha version, so please report
>>>>>>>>>>>> any bugs you find.
>>>>>>>>>>>>
>>>>>>>>>>>> I'll work on the Mac package when I can get back to an Apple
>>>>>>>>>>>> machine. I hope to have a mac binary download sometime this 
>>>>>>>>>>>> weekend.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I tried briefly on my Mac as well - ran into some linker issues
>>>>>>>>>>>> that I think are my fault. More soon on this front.
>>>>>>>>>>>>
>>>>>>>>>>>> Did you hit the i686 vs x86_64 issue? In CMakeLists.txt change
>>>>>>>>>>>> the line:
>>>>>>>>>>>>
>>>>>>>>>>>> set(CMAKE_OSX_ARCHITECTURES i386)
>>>>>>>>>>>> To
>>>>>>>>>>>> set(CMAKE_OSX_ARCHITECTURES x86_64)
>>>>>>>>>>>> And clean your build directory and try again. I seem to
>>>>>>>>>>>> remember the same error when I built it using macports. If this 
>>>>>>>>>>>> fixes it
>>>>>>>>>>>> for you, I'll push that change to github.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks to you, fwknop usability is about to take a giant step
>>>>>>>>>>>> forward.
>>>>>>>>>>>>
>>>>>>>>>>>> --Mike
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --Jonathan
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Fwknop-discuss mailing list
>>>>>>>>>>>> Fwknop-discuss@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>> Michael Rash | Founder
>>>>>>>>>>>> http://www.cipherdyne.org/
>>>>>>>>>>>> Key fingerprint = 53EA 13EA 472E 3771 894F  AC69 95D8 5D6B A742
>>>>>>>>>>>> 839F
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Fwknop-discuss mailing list
>>>>>>>>>>>> Fwknop-discuss@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Fwknop-discuss mailing list
>>>>>>>>>>>> Fwknop-discuss@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Rash | Founder
>>>>>> http://www.cipherdyne.org/
>>>>>> Key fingerprint = 53EA 13EA 472E 3771 894F  AC69 95D8 5D6B A742 839F
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Fwknop-discuss mailing list
>>>>>> Fwknop-discuss@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Michael Rash | Founder
>>>> http://www.cipherdyne.org/
>>>> Key fingerprint = 53EA 13EA 472E 3771 894F  AC69 95D8 5D6B A742 839F
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Fwknop-discuss mailing list
>>>> Fwknop-discuss@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Fwknop-discuss mailing list
>>> Fwknop-discuss@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>>>
>>>
>>>


-- 
Michael Rash | Founder
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F  AC69 95D8 5D6B A742 839F
------------------------------------------------------------------------------
_______________________________________________
Fwknop-discuss mailing list
Fwknop-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fwknop-discuss

Reply via email to