MacOS X dmg/app package - please test

Discuss creation of synfig packages and other packaging issues
KonstantinDmitriev
Site Admin
Posts: 1024
Joined: Thu Jan 10, 2008 2:16 am
Location: Russia
Contact:

MacOS X dmg/app package - please test

Postby KonstantinDmitriev » Mon Feb 13, 2012 8:48 pm

Hi!
OK, it's time to announce that I have managed to pack synfig studio into dmg/app.
I have used the same approach as Gimp for OSX build, described in this manual.
After spending 3 nights on build process here's the very first package I did and it needs testing.

Download: http://sourceforge.net/projects/synfig/ ... g/download
md5sum: 009df37b0435fdc8cc9b7100dfb39433

Sorry for the big size of the package - it is have a lot of stuff to clean inside. I don't want to do cleanup until it will be confirmed that approach is working.

Please test and feedback in following form:

Code: Select all

Package works: yes/no
Your OSX version
Your OSX arch
X11 installed: yes/no
Report if additional build tools installed: MacPort / homebrew / fink


Thank you!

Advertisement

User avatar
jcome
Posts: 1020
Joined: Tue Feb 26, 2008 3:33 am
Location: Foshan City, China

Re: MacOS X dmg/app package - please test

Postby jcome » Mon Feb 13, 2012 11:46 pm

Zelgadis, Thanks for your job.

I downloaded and tested with some simple sifz files.

Package works: yes
OSX version 10.7.2
OSX arch 64bit
X11 installed: no
Report if additional build tools installed: none

Except lacking of Synfig Logo for the synfigstudio.app,
Everything works just fine!
time flies...

User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: MacOS X dmg/app package - please test

Postby Genete » Tue Feb 14, 2012 4:20 am

Re-hurray!! \o/ :shock: :shock:
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

KonstantinDmitriev
Site Admin
Posts: 1024
Joined: Thu Jan 10, 2008 2:16 am
Location: Russia
Contact:

Re: MacOS X dmg/app package - please test

Postby KonstantinDmitriev » Tue Feb 14, 2012 7:29 am

Here's results of my tests:

Code: Select all

Package works: yes
OSX version 10.6.2
OSX arch 32bit
X11 installed: yes
Report if additional build tools installed: none


Code: Select all

Package works: yes
OSX version 10.6.8
OSX arch 32bit
X11 installed: yes
Report if additional build tools installed: none


EDIT: On both tests synfig was able to run and do some things, but its crashy as hell. Does it result of my packaging or is that characteristic behavior for all MacPorts builds? I don't know...

I also wrote an automatic scripts so anyone can build such package on his own mac. Will publish soon together with guidelines on the wiki.

About synfig logo - yeah, I guess that could be easily fixed. ^_^

Gulwer
Posts: 5
Joined: Tue Dec 13, 2011 7:45 pm

Re: MacOS X dmg/app package - please test

Postby Gulwer » Tue Feb 14, 2012 12:49 pm

Great work Zelgadis
I have tried myself to build synfig with Homebrew and Macports but failed to get it to work. This is the first time I have been able to test synfig out. Synfig starts OK but chrashes when I change tool from rectangletool to circletool or the paint bucket.

my specs:
MacBookPro5,2
Intel Core 2 Duo, 3.06 GHz,
Ram 4 GB DDR3, 1067 MHz
Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 512 MB
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MBMac
OS X Lion 10.7.2

There is a chrashreport at
http://www.pasteall.org/29149

I hope it is helpful

goestas
Posts: 15
Joined: Wed Feb 15, 2012 3:15 pm

Re: MacOS X dmg/app package - please test

Postby goestas » Wed Feb 15, 2012 3:36 pm

Package works: not really
Your OSX version 10.7.3
Your OSX arch 64bit (I think?)
X11 installed: yes
Report if additional build tools installed: MacPort / homebrew / fink (current homebrew installed, old fink/Macport installation bits may be lying around. On this machine I did not use Homebrew to install synfig. On my other machine I am trying to run a Homebrew-installed synfigstudio, which crashes on startup)

Try 1: App starts fine, I draw a circle, click on the selection ("arrow") tool, click in the canvas, it crashes as follows:


Process: synfigstudio [658]
Path: /tmp/*/SynfigStudio.app/Contents/Resources/bin/synfigstudio
Identifier: synfigstudio
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: SynfigStudio [656]
Date/Time: 2012-02-15 19:26:09.206 +0100
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9

Interval Since Last Report: 1133007 sec
Crashes Since Last Report: 1
Per-App Crashes Since Last Report: 1
Anonymous UUID: 32FE5AD2-E721-4DE5-BC1A-2B7908059D8F

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
objc[658]: garbage collection is OFF


Try 2: App starts, I create 2 circles, change to "Transform Tool", app crashes immediately. Here more detail:

Process: synfigstudio [1013]
Path: /tmp/*/SynfigStudio.app/Contents/Resources/bin/synfigstudio
Identifier: synfigstudio
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: SynfigStudio [1011]

Date/Time: 2012-02-15 19:31:58.285 +0100
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9

Interval Since Last Report: 1133350 sec
Crashes Since Last Report: 2
Per-App Crashes Since Last Report: 2
Anonymous UUID: 32FE5AD2-E721-4DE5-BC1A-2B7908059D8F

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
objc[1013]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libglib-2.0.0.dylib 0x0000000101e34f26 g_logv + 598
1 libglib-2.0.0.dylib 0x0000000101e35244 g_log + 148
2 libglibmm-2.4.1.dylib 0x0000000101768927 Glib::exception_handlers_invoke() + 311
3 libgtkmm-2.4.1.dylib 0x0000000100db67fd _ZN12_GLOBAL__N_1L35Widget_signal_expose_event_callbackEP10_GtkWidgetP15_GdkEventExposePv + 109
4 libgtk-quartz-2.0.0.dylib 0x000000010138c7ff _gtk_marshal_BOOLEAN__BOXED + 95
5 libgobject-2.0.0.dylib 0x0000000101d9b984 g_closure_invoke + 292
6 libgobject-2.0.0.dylib 0x0000000101db1c7e signal_emit_unlocked_R + 3150
7 libgobject-2.0.0.dylib 0x0000000101db341f g_signal_emit_valist + 1391
8 libgobject-2.0.0.dylib 0x0000000101db3b84 g_signal_emit + 148
9 libgtk-quartz-2.0.0.dylib 0x00000001014a279e gtk_widget_event_internal + 574
10 libgtk-quartz-2.0.0.dylib 0x0000000101386762 gtk_main_do_event + 1650
11 libgdk-quartz-2.0.0.dylib 0x000000010182fbfa _gdk_window_process_updates_recurse + 618
12 libgdk-quartz-2.0.0.dylib 0x000000010182fc3a _gdk_window_process_updates_recurse + 682
13 libgdk-quartz-2.0.0.dylib 0x0000000101835bc9 -[GdkQuartzView drawRect:] + 361
14 com.apple.AppKit 0x0000000102615bab -[NSView _drawRect:clip:] + 3995
15 com.apple.AppKit 0x000000010261385d -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3020
16 com.apple.AppKit 0x000000010260d9af -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755
17 com.apple.AppKit 0x0000000102606395 -[NSView displayIfNeeded] + 1528
18 libgdk-quartz-2.0.0.dylib 0x0000000101846ca2 _gdk_windowing_after_process_all_updates + 98
19 libgdk-quartz-2.0.0.dylib 0x000000010182dd5e gdk_window_process_all_updates + 286
20 libgdk-quartz-2.0.0.dylib 0x000000010182ddd9 gdk_window_update_idle + 9
21 libgdk-quartz-2.0.0.dylib 0x0000000101809549 gdk_threads_dispatch + 89
22 libglib-2.0.0.dylib 0x0000000101e2b56d g_main_context_dispatch + 493
23 libglib-2.0.0.dylib 0x0000000101e2eff4 g_main_context_iterate + 916
24 libglib-2.0.0.dylib 0x0000000101e2f355 g_main_loop_run + 469
25 libgtk-quartz-2.0.0.dylib 0x0000000101386980 gtk_main + 176
26 synfigstudio 0x0000000100015ba2 main + 290
27 synfigstudio 0x0000000100015a78 start + 52

Hope this helps. Do you think I should uninstall fink/Macports/Homebrew?

KonstantinDmitriev
Site Admin
Posts: 1024
Joined: Thu Jan 10, 2008 2:16 am
Location: Russia
Contact:

Re: MacOS X dmg/app package - please test

Postby KonstantinDmitriev » Thu Feb 16, 2012 2:15 am

goestas:
I think the problem is not related to homebrew/Fink/Macports because I have exactly the same experience in my test. I.e. synfig crashes when clicking on created circles.

So I think we have 2 conclusions:
1. The packaging approach generally works fine - reports here sar that people can start application on various versions of OSX (10.6.x and 10.7.x)
2. The crashing behavior of synfig is related to general synfig unstability on mac OSX. And is not related to proposed packaging method.

Though, the last statement requires confirmation from users, who have synfig installed purely with fink/macports/homebrew. If they have different experience (synfig works more stable for them) then my second statement is untrue and we have to digg further with packaging approach.

ulrik
Site Admin
Posts: 102
Joined: Sat Dec 01, 2007 6:21 am
Location: Sweden
Contact:

Re: MacOS X dmg/app package - please test

Postby ulrik » Thu Feb 16, 2012 3:42 am

Zelgadis wrote:goestas:
I think the problem is not related to homebrew/Fink/Macports because I have exactly the same experience in my test. I.e. synfig crashes when clicking on created circles.

So I think we have 2 conclusions:
1. The packaging approach generally works fine - reports here sar that people can start application on various versions of OSX (10.6.x and 10.7.x)
2. The crashing behavior of synfig is related to general synfig unstability on mac OSX. And is not related to proposed packaging method.

Though, the last statement requires confirmation from users, who have synfig installed purely with fink/macports/homebrew. If they have different experience (synfig works more stable for them) then my second statement is untrue and we have to digg further with packaging approach.

Hi Zelgadis!

This is just a quick response on this, I have not tried your dmg file, however I have the latest synfig build running, I installed it from the source files and compiled it with the terminal, ( in other words, I did not install Synfig using "sudo port install synfigstudio" command).
I say this is just a quick response because I have not used Synfig a lot for a long time, but I started it up and made a small animation on it and I have no crash at all, it seems to be running ok and I don't have this "making a circle" crashes your talking about.

A quick question, did you make the dmg file using macport and the command:
sudo port mdmg synfigstudio?

That command is what I have tried a couple of times and I always end up with an installation file that behaves like you described it after installation on another machine.

Cheers / Ulrik

KonstantinDmitriev
Site Admin
Posts: 1024
Joined: Thu Jan 10, 2008 2:16 am
Location: Russia
Contact:

Re: MacOS X dmg/app package - please test

Postby KonstantinDmitriev » Thu Feb 16, 2012 5:03 am

Hi, ulrik!
Thank you for the feedback.
Please provide your version of Mac OSX. Also, what configuration you have in your etc/macposrts/variants.conf?
Your feedback is very important.
I haven't used "port mdmg" command - everything is packed into app manually.

I always end up with an installation file that behaves like you described it after installation on another machine.

Can you find time and try dmg file from this thread on YOUR machine?
Thank you!

P.S. C'mon, mac os user! Do you want precompiled synfig binaries? We need more feedback!

ulrik
Site Admin
Posts: 102
Joined: Sat Dec 01, 2007 6:21 am
Location: Sweden
Contact:

Re: MacOS X dmg/app package - please test

Postby ulrik » Thu Feb 16, 2012 5:40 am

Zelgadis wrote:Hi, ulrik!
Thank you for the feedback.
Please provide your version of Mac OSX. Also, what configuration you have in your etc/macposrts/variants.conf?
Your feedback is very important.
I haven't used "port mdmg" command - everything is packed into app manually.

I always end up with an installation file that behaves like you described it after installation on another machine.

Can you find time and try dmg file from this thread on YOUR machine?
Thank you!

P.S. C'mon, mac os user! Do you want precompiled synfig binaries? We need more feedback!

This is my variants.conf

# To specify global variants to use for all port builds,
# customize this file to list variant settings you want.
#
# Any variants specified here that are not supported by
# a port will just be ignored. Multiple variants can be
# specified per line, or one per line is also allowed.
#
# Example:
# +ipv6 +no_x11

Nothing there, I checked the "variants.conf.default" as well and no variants there as well.

My osx is 10.7.3

I'll try install from your dmg file later, I'll keep in touch.

Ulrik

KonstantinDmitriev
Site Admin
Posts: 1024
Joined: Thu Jan 10, 2008 2:16 am
Location: Russia
Contact:

Re: MacOS X dmg/app package - please test

Postby KonstantinDmitriev » Thu Feb 16, 2012 5:51 am

OK, thank you!
I can see that my variants.conf is different. ^__^

Gulwer
Posts: 5
Joined: Tue Dec 13, 2011 7:45 pm

Re: MacOS X dmg/app package - please test

Postby Gulwer » Thu Feb 16, 2012 10:48 am

Hallo Zelgadis

One idea to get more people to test the builds might be to put a build up on graphicall.org. Maybe you can get more feedback there.

goestas
Posts: 15
Joined: Wed Feb 15, 2012 3:15 pm

Re: MacOS X dmg/app package - please test

Postby goestas » Thu Feb 16, 2012 4:50 pm

ulrik wrote:
Zelgadis wrote:goestas:
I have the latest synfig build running, I installed it from the source files and compiled it with the terminal, ( in other words, I did not install Synfig using "sudo port install synfigstudio" command).


Is the process you used to compile it understandable to someone who can just about copy & paste commands into Terminal? If so, could you share it until a working installer (Macports/Homebrew/Disk Image, don't really care ... well, of course I would prefer a install package on .dmg!) comes around?

Cheers

ulrik
Site Admin
Posts: 102
Joined: Sat Dec 01, 2007 6:21 am
Location: Sweden
Contact:

Re: MacOS X dmg/app package - please test

Postby ulrik » Thu Feb 16, 2012 6:00 pm

goestas wrote:
ulrik wrote:
Zelgadis wrote:goestas:
I have the latest synfig build running, I installed it from the source files and compiled it with the terminal, ( in other words, I did not install Synfig using "sudo port install synfigstudio" command).


Is the process you used to compile it understandable to someone who can just about copy & paste commands into Terminal? If so, could you share it until a working installer (Macports/Homebrew/Disk Image, don't really care ... well, of course I would prefer a install package on .dmg!) comes around?

Cheers

At the top of this side is the way I install it:
http://synfig.org/forums/viewtopic.php?f=13&t=2851

edlnovo
Posts: 2
Joined: Fri Feb 17, 2012 1:50 am

Re: MacOS X dmg/app package - please test

Postby edlnovo » Fri Feb 17, 2012 1:57 am

Downlading and testing, will come back with the results...

I should note that a few months ago i got a working .pkg (installed and worked in my dev test machine) installation (for Snow Leopard) but mi disk crashed and didn't tray again (i'm in Lion now, and in that previous attempt i spend like 2 or 3 days on it, i was stable and could make an animation but my main motivation was to use it with a wacom tablet and that configuration didn't worked at all)...

UPDATE:

The same problem that others have reported, any interaction after using the drawing tools resulted in a crash. Computer ultra slow after the crash in some isolated cases.

Error that got my attention at start up:
2/16/12 11:37:31.618 PM [0x0-0x2b52b5].SynfigStudio: (synfigstudio:2186): GLib-GObject-CRITICAL **: Object class gtkmm__CustomObject_N6studio15ValueBase_EntryE doesn't implement property 'editing-canceled' from interface 'GtkCellEditable'

Don't know how important but ejecting the dmg image resulted in the app not even running, just with the console message:
2/16/12 11:40:36.445 PM [0x0-0x2bc2bc].SynfigStudio: ln: /tmp/skl/SynfigStudio.app: File exists

This is caused by running the app directly from de dmg, and then trying to running it from a copy in your hard disk, could cause problems too if the app is moved after the first run.

Fix - delete the symbolic link via terminal command: rm SynfigStudio.app in the folder /tmp/skl/


Package works:no
Your OSX 10.7.2 (will try again with 10.7.3 but almost sure will not work)
Your OSX Intel
X11 installed: yes
Report if additional build tools installed: none
Last edited by edlnovo on Fri Feb 17, 2012 2:46 am, edited 2 times in total.


Return to “Packaging”

Who is online

Users browsing this forum: No registered users and 1 guest