User Tools

Site Tools


proj:macdev

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proj:macdev [2015/03/14 22:13]
admin [What Must Go Where]
proj:macdev [2016/04/21 04:35] (current)
admin [Testing Results]
Line 4: Line 4:
  
 ====== Mac Development Environment ====== ====== Mac Development Environment ======
 +
 +For packaging of latest version, see [[proj:​macinstallers]]
 +
 +This page is relevant to building new template (containing binaries etc).
 +
 +NOTE - need a new version to handle 10.7 (Lion) upwards. Explanation:​
 +
 +  Hi Grant,
 +  ​
 +  I remembered the reason that for OS X support sometimes being limited to 10.7.
 +  It's because of C++11. The standard library that goes with this, libc++, is only
 +  supported as far back as 10.7. If you want to support earlier versions then all
 +  of the C++ bits need to be built for and linked against the old stdc++ library.
 +  ​
 +  Cheers
 +  Glenn
  
 ===== Virtualising Mac OSX ===== ===== Virtualising Mac OSX =====
Line 115: Line 131:
 I thought I could get away with --with-drivers=PNG but it failed but =FILES dropped it enough (about 17MB) and worked. I thought I could get away with --with-drivers=PNG but it failed but =FILES dropped it enough (about 17MB) and worked.
  
---disable-dynamic bakes in a whole lot so gs doesn'​t try to find it outside e.g. gs_init.ps.+--disable-dynamic bakes in a whole lot so gs doesn'​t try to find it outside e.g. gs_init.ps. ​No need to have a parallel share/​ghostscript/​...gs_init.ps
 ===== convert and gs ===== ===== convert and gs =====
  
Line 126: Line 142:
  
 Success! Success!
 +
 +If delegates.xml can't be found, the error message might be something like:
 +
 +  convert: UnableToOpenConfigureFile `delegates`.xml'​ @warning/​configure.c/​GetConfigureOptions/​706.
 +
 +If the command used to handle something doesn'​t work the error message from imagemagick is not very useful. It will be something like:
 +
 +  convert: NoImagesDefined `/​Users/​g/​Desktop/​test.png'​ @error/​convert.c/​ConvertImageCommand/​3212.
 ====== Linking Dependencies to @executable_path ====== ====== Linking Dependencies to @executable_path ======
  
Line 317: Line 341:
   * Frameworks   * Frameworks
     * convert     * convert
 +    * gs
     * pdftk     * pdftk
     * wkhtmltopdf     * wkhtmltopdf
 +    * and all the dylibs etc that these libraries require (other than pdftk - see below)
  
 Also a lib folder containing the dylibs required by pdftk (namely, the contents of /​opt/​pdflabs/​pdftk/​lib. pdftk expects its dylibs to be in ../lib) Also a lib folder containing the dylibs required by pdftk (namely, the contents of /​opt/​pdflabs/​pdftk/​lib. pdftk expects its dylibs to be in ../lib)
Line 423: Line 449:
      working_folder_root="/​Users/​grantpaton-simpson/​Desktop/​indeps"​)      working_folder_root="/​Users/​grantpaton-simpson/​Desktop/​indeps"​)
  
 +===== Practical Packaging =====
 +
 +To simplify things, maybe do the dependable.py strategy on pdftk so ALL files are in one folder. One less thing to have to handle.
 +
 +That would mean we have stable Frameworks (convert, gs, delegates.xml,​ colors.xml, wkhtmltopdf etc etc) and Resources folders (has sofastatistics.icns and all the pyinstaller bits and pieces) and the only thing that changes is the MacOS folder.
 +
 +So modify spec file to copy across those two folders into app once made, and copy contents from sofa.main into MacOS and we have a package ready to go.
 +
 +===== Testing Results =====
 +
 +^ OS X Version ​  ^ PDF   ^ Images ​   ^ Contact ​                        ^ Help more  ^ Other       ^
 +| Yosemite 10.10    | Yes | No  | R. B. Lenin - rblenin@gmail.com ​      | Yes | US |
 +| Yosemite 10.10.2 ​ | Yes | No  | Richard O'​Donovan - odonovan.richard@gmail.com | Yes | Percentage Label clipped on left in multiple bar charts. Can help TEST COMPILED files. |
 +| Lion 10.7.5 ​      | Yes | No  | Teresa Colucci - teresacolu12@att.net | Yes | US High School Maths Teacher |
 +| Snow Leopard 10.6 | Yes | Yes | Me                                    | Yes | |
 +| El Capitan 10.11 and Mavericks 10.9.5 | ? | ? | Rod Jacka - rod@panalysis.com | Yes | Managing Director Panalysis Pty Ltd Sydney Can COMPILE for me. |
 +| Maverick 10.10.5 | ? | ? | Brian Francis - bfrancis9898@gmail.com | Yes | on both Macbook Pro and Macbook Air |
proj/macdev.1426385636.txt.gz · Last modified: 2015/03/14 22:13 by admin · Currently locked by: 131.72.87.94