Commit Graph

137 Commits

Author SHA1 Message Date
Bruce B. Lacey
d964187504 Install macOS bundle executables into MacOS
* Previously, the macOS bundle executables were installed into
    bin which does not adhere to Apple guidelines and causes
    issues with certain frameworks like Qt.  The install has
    been refactored to install the executables into MacOS

Fixes #2928
2017-03-01 09:33:28 +01:00
Bruce B. Lacey
5084b96759 Qt5: build FreeCAD for macOS with both Qt5 and Qt4
* Extend Travis config to build and deploy FreeCAD on
     macOS with Qt5, in addition to Qt4
   * Link PySide wrapper to <bundle>/MacOS
   * Warn on install_name_tool failures (work-around to
     confirmed Apple install_name_tool bug)
   * Reference XCTest "Current" framework versus "A"
2017-02-27 10:30:36 +01:00
Bruce B. Lacey
21080af2a7 Packaging: macOS relocation of libraries without children
* macOS install path must be <bundle>/MacOS in order for
    QLibrary to find qt.conf to set the correct bundle paths
  * Refactored to add an explicit graph traversal to set the
    dynamic loader id to handle the case where a bundled
    resource does not have any children
  * Fixed the case where rpaths were not removed from
    libraries without children
  * Improved diagnostics when bundling fail to finds
    a dependent library in the search path

Mantis: #0002886
Refs: #535
2017-02-23 20:28:17 -08:00
Bruce B. Lacey
b52b94ae85 Packaging: Set macOS dynamic loader paths
*  DYLD paths are set properly to prevent loading libraries external
     to the bundle
  a. LC_ID_DYLD is set to the basename of the library name (i.e.
     not the absolute path) when it is copied into the bundle
  b. Existing LC_RPATH entries in libraries are removed before adding
     the bundle-relative RPATH
  *  Added configurable diagnostic logging to aid in debugging

Fixes 0002886
2017-02-19 01:16:59 -08:00
wmayer
76b3397762 py3: ported module init to python3 2017-02-04 15:56:31 +01:00
wmayer
09846721f2 make sure that the passed 'self' pointer to a method of the Python wrapper is never null 2017-01-24 12:34:23 +01:00
looooo
e9b5722220 python3: dict.has_key("key") --> "key" in dict 2017-01-20 00:06:58 -02:00
Mateusz Skowroński
9b07616fe6 * Cosmetic change. Replace Qt keyword emit with Q_EMIT.
* Whitespace fixes.
2017-01-05 22:57:30 +01:00
wmayer
deddc4b3e2 use Qt WebKit module 2016-12-13 19:48:22 +01:00
wmayer
e45a099698 extend generation framework to set Python class name 2016-12-03 12:50:36 +01:00
Kurt Kremitzki
6d9ad77868 Fix English typo 2016-11-30 01:14:09 -06:00
Kurt Kremitzki
4ef6d7a387 Fix English typo 2016-11-30 01:13:21 -06:00
wmayer
b4020f2cc8 fix bug in generation script 2016-10-08 18:48:27 +02:00
wmayer
9ac1810ea3 Fix issues:
+ improve formatting
+ remove superfluous semicolons
+ comment unused parameters
+ rename Initialisation to Initialization
+ rename Deinitialisation to Finalization
+ remove spaces
2016-10-08 12:48:34 +02:00
Stefan Tröger
93222098f0 Extensions: Allow them to be added dynamically 2016-10-08 12:48:34 +02:00
Stefan Tröger
4c42181e34 Extensions: Show up in the python interface 2016-10-08 12:48:34 +02:00
wmayer
5a88307e3e support creating Python workbench with fcbt 2016-10-04 19:40:47 +02:00
wmayer
034cc0013e add template for Python workbench 2016-10-04 19:29:53 +02:00
wmayer
b980cf3361 fix -Wextra in Mesh 2016-09-23 17:24:00 +02:00
wmayer
c48a9bfead fix -Wunused-parameter 2016-09-23 16:37:12 +02:00
wmayer
f408f3180b fix -Wextra in FreeCADBase 2016-09-21 15:02:02 +02:00
jriegel
f29c33c7dc add .gitignore for *.pyc files 2016-04-12 18:11:45 +02:00
wmayer
1d75efea75 + increase minor and build number, rework creation of Version.h 2016-04-09 15:15:29 +02:00
Yorik van Havre
153e87d36c fixed wrong info in fcinfo tool 2016-03-28 00:27:43 -03:00
Bruce B. Lacey
b18a5f1396 Improved Mac OS X Application Packaging.
1.  Set python dependency paths in Application Bundle adhering the Homebrew convention of installing them in prefix/libexec
   2.  Add appdmg configuration to produce an os x disk image for FreeCAD application distribution
   3.  Added a Tools convenience script to produce an archive name from a serialized Version.h file using the convention FreeCAD_{Major Version Number}.{Minor Version Number}-{Git Revision Count}.{Git Short SHA}-{OS}-{Arch}
2016-03-07 20:49:58 -08:00
Yorik van Havre
b389554a30 Updated translation tools 2016-03-01 12:34:16 -03:00
maurerpe
3f3d8a95f5 Fix remaining toAscii/fromAscii
Qt5 does not have toAscii or fromAscii.  Use toLatin1 and fromLatin1
respectively.  Both replacement functions exist in Qt4.8.
2016-02-24 23:56:43 +01:00
Yorik van Havre
237c74c212 Updated offline pdf generation tool 2016-02-14 19:28:32 -02:00
Yorik van Havre
4d782e42ed updated offline doc tools to handle the Command_Reference pages 2016-02-13 20:36:28 -02:00
Yorik van Havre
fe22e9730f Updated version number in offline doc tools and removed unnecessary file 2016-02-11 19:57:43 -02:00
Yorik van Havre
2e2192f88a Added slovenian language 2016-02-03 13:36:51 -02:00
Ian Rees
641a3abc0a Added notes + warnings to mac app bundle tool. 2016-01-27 18:07:08 +13:00
Ian Rees
ada6ad5d89 Add /Library/Frameworks/ to known system libraries
Fixes issue where the 3Dconnexion drivers weren't found in relocateable
mac application bundles.
2016-01-23 19:23:11 +13:00
Ian Rees
45d343e975 Prevent adding duplicate rpaths to bundled libs 2016-01-23 19:23:11 +13:00
wmayer
5aea3220c8 + simplify porting of template module to Python3 2016-01-17 19:17:00 +01:00
Yorik van Havre
e55ba2d24d Added script to check download stats on github 2016-01-05 12:24:57 -02:00
wmayer
2362239edf + Add Python example of embedding FreeCAD 2015-11-20 22:35:26 +01:00
wmayer
b1ea3f70da + move module Python stuff into C++ class 2015-10-24 18:16:17 +02:00
wmayer
5cc7f8b10c + remove Py_TPFLAGS_BASETYPE flag for all generated Python bindings because they can't be sub-classed in Python 2015-10-12 19:59:58 +02:00
wmayer
ee28daa669 + replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes 2015-09-27 22:08:08 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Yorik van Havre
898d27e8d8 Updated ts & crowdin scripts with latest modules and languages 2015-09-14 14:31:27 -03:00
Yorik van Havre
f1b21bf01d Added Tools/githubstats.py script to check download stats from github 2015-09-08 00:18:31 -03:00
wmayer
4cf84fe9d2 + update template module 2015-07-28 15:07:27 +02:00
Sebastian Hoogen
519d93fa4f remove sourceforge git url 2015-07-19 20:27:04 +02:00
Yorik van Havre
c7440ef92e Added fcinfo utility
This utility prints information about a given FreeCAD file (*.FCStd)
on screen, including document properties, number of included objects
and object sizes.

It can be used as a textconv tool for git diff by adding this utility to
your exec path andadding this entry to .gitattributes: *.fcstd diff=fcinfo

Usage: fcinfo myfile.FCStd
2015-06-27 20:01:35 -03:00
Ian Rees
ccfaa56b31 Improves build on MacOS with Homebrew or MacPorts
Squashed commit of the following:

commit e158a2049b922cead90cee4a9d3814093db8d00d
Merge: e7c5c06 d545f5b
Author: Ian Rees <ian.rees@gmail.com>
Date:   Wed Mar 25 17:08:56 2015 +1300

    Merge branch 'mac-app-bundle' into macports-build-1

commit d545f5b0de0efa6a0fd020ac98bb6809d9254019
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Mar 19 22:30:20 2015 +1300

    Minor fixes to Mac application bundle creation

commit e7c5c0630b47e89fc719259f3d81be724627f915
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Mar 19 16:35:34 2015 +1300

    Report error if no OpenCasCADe found

commit 976b51c13a1619acf66b9d4fad5594fee292aa76
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Mar 19 16:30:47 2015 +1300

    Detects OCE automatically on Homebrew and MacPorts

commit 1cc477f77f388f2ccb26f3884320819f8cb33249
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Mar 17 15:00:34 2015 +1300

    Find PySide and Shiboken automagically on MacPorts

commit 8bf2ebf7397a1c8c4b1b6f1d97e303f335ab47d7
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Mar 16 23:05:35 2015 +1300

    Finds the Python include dir and library on OSX

commit 8bba9b2c78cfe65d7c295c4c99f0a176e1281539
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Mar 16 17:31:43 2015 +1300

    Detects Python executable in MacPorts or Homebrew

commit 349a2e0e5c4d370c331bdb54d80d8f4323db8a6b
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Mar 16 08:25:16 2015 +1300

    Missing correct Python lib is error on cmake-ing

commit 1625fe7c1c7fb2d944b04d93be8cf90d5c829be9
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Mar 15 21:06:08 2015 +1300

    Find PySide's UIC and RCC tools properly on MacPorts
2015-04-01 14:40:34 +02:00
Peter Lama
6c42e558e2 + get version number from Version.h 2015-04-01 12:02:51 +02:00
Yorik van Havre
d67d9603c2 Better PDF generation script 2015-03-21 17:45:08 -03:00
Yorik van Havre
95ed267150 Updated offline documentation (final) 2015-03-13 17:30:42 +01:00