Hmm, it worked on my mini. Maybe caused by a external module…
I have by a lucky coincidence an identical MacMini here. Alas, I have no powercable and have to tinker something (more or less dangerous) for the special plug. I will report back later.
first, can you clarify what you mean by 'automatic way?
do you need a method to update or do you need a hosting place to update to?
Ok I finally managed to compile FreeCAD from your first instructions (not tried the new ones). I first created a freecad environment then configured OSX to use the the MacOSX 10.9 SDKs: installation into /opt +conda_build_config.yaml. According to the errors in the build, the build system was still looking for the 10.9 SDKs in the XCode application (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/), but as I am running 10.14, those SDKs don’t exist by default. I created there a simlink in the application to /opt. Then I could compile.
I will try your new instructions to see if they work properly.
Question: why 10.9 SDKs? Is FreeCAD able to compile with 10.14 ones and if yes, where do I have to change the dependency?
Cheers
JMB
PS: I am interested to build the sources, because I am a software engineer and I am interested to see if I can help to improve FreeCAD.
I get (almost) the same error on the MacMini:
localadmins-Mac-mini:Desktop localadmin$ FreeCAD.app/Contents/MacOS/FreeCAD
FreeCAD 0.18, Libs: 0.18R16079 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
FreeCAD.app/Contents/MacOS/FreeCAD: line 3: 756 Abort trap: 6 $script_dir/Resources/bin/FreeCAD $@
localadmins-Mac-mini:Desktop localadmin$
Hope this helps: the log file talks about cocoa missing.
Msg: FreeCAD 0.18, Libs: 0.18R16079 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Log: Time = Sat Mar 9 14:42:54 2019
Log: AppDataSkipVendor = true
Log: AppHomePath = /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/
Log: AppIcon = freecad
Log: AppTempPath = /var/folders/g6/gndxh1551rq72dn3hc8dm0vc0000gn/T/
Log: BinPath = /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/bin/
Log: BuildRepositoryURL = https://github.com/FreeCAD/FreeCAD master
Log: BuildRevision = 16079 (Git)
Log: BuildRevisionBranch = master
Log: BuildRevisionDate = 2019/03/08 17:56:16
Log: BuildRevisionHash = 6363c90a20b296ab69d7b52230009928199d90df
Log: BuildVersionMajor = 0
Log: BuildVersionMinor = 18
Log: Console = 0
Log: CopyrightInfo = © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Log: Debug = 0
Log: DocPath = /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/doc/
Log: ExeName = FreeCAD
Log: ExeVendor = FreeCAD
Log: ExeVersion = 0.18
Log: LoggingFile = 1
Log: LoggingFileName = /tmp/fc.log
Log: MaintainerUrl = http://www.freecadweb.org/wiki/Main_Page
Log: PATH = /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Log: PYTHONPATH =
Log: PythonSearchPath = /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/lib/python37.zip:/Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/lib/python3.7:/Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/lib/python3.7/lib-dynload
Log: RunMode = Gui
Log: SplashAlignment = Bottom|Left
Log: SplashInfoColor = #c8c8c8
Log: SplashScreen = freecadsplash
Log: SplashTextColor = #ffffff
Log: StartWorkbench = StartWorkbench
Log: SystemParameter = /Users/localadmin/Library/Preferences/FreeCAD/system.cfg
Log: UserAppData = /Users/localadmin/Library/Preferences/FreeCAD/
Log: UserHomePath = /Users/localadmin
Log: UserParameter = /Users/localadmin/Library/Preferences/FreeCAD/user.cfg
Log: Verbose =
Log: Create Application
Log: Run App init script
Log: Init: starting App::FreeCADInit.py
Log: Init: Searching for modules...
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/AddonManager... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Arch... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Complete... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Drawing... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Fem... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Idf... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Image... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Import... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Inspection... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Material... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Measure... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Mesh... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/MeshPart... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/OpenSCAD... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Part... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/PartDesign... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Path... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Points... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Raytracing... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/ReverseEngineering... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Robot... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Show(Init.py not found)... ignore
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Sketcher... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Spreadsheet... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Start... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Surface... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/TechDraw... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Test... done
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Tux(Init.py not found)... ignore
Log: Init: Initializing /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Web... done
Log: Using /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod as module path!
Log: System path after init:
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/bin
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/AddonManager
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Arch
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Complete
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Drawing
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Fem
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Idf
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Image
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Import
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Inspection
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Material
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Measure
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Mesh
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/MeshPart
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/OpenSCAD
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Part
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/PartDesign
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Path
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Points
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Raytracing
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/ReverseEngineering
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Robot
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Show
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Sketcher
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Spreadsheet
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Start
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Surface
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/TechDraw
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Test
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Tux
Log: /Users/localadmin/Desktop/FreeCAD.app/Contents/Resources/Mod/Web
Log: /usr/bin
Log: /bin
Log: /usr/sbin
Log: /sbin
Log: /usr/local/bin
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".
Reinstalling the application may fix this problem.
Ok guys. Now that I was able to build FreeCAD with freecad-feedstock, I got those messages at the end:
TEST END: /Users/jeanmarc/miniconda3/conda-bld/osx-64/freecad-0.18b0-py36h4f6ecc2_41.tar.bz2
Renaming work directory, /Users/jeanmarc/miniconda3/conda-bld/freecad_1552136826140/work to /Users/jeanmarc/miniconda3/conda-bld/freecad_1552136826140/work_moved_freecad-0.18b0-py36h4f6ecc2_41_osx-64_main_build_loop
# Automatic uploading is disabled
# If you want to upload package(s) to anaconda.org later, type:
anaconda upload /Users/jeanmarc/miniconda3/conda-bld/osx-64/freecad-0.18b0-py36h4f6ecc2_41.tar.bz2
# To have conda build upload to anaconda.org automatically, use
# $ conda config --set anaconda_upload yes
anaconda_upload is not set. Not uploading wheels: []
####################################################################################
Resource usage summary:
Total time: 1:15:26.7
CPU usage: sys=0:19:21.5, user=2:36:43.8
Maximum memory usage observed: 1.7G
Total disk usage observed (not including envs): 3.5M
####################################################################################
Source and build intermediates have been left in /Users/jeanmarc/miniconda3/conda-bld.
Now the build results seem to be freecad-0.18b0-py36h4f6ecc2_41.tar.bz2. So I suppose I have to extract this archive to find FreeCAD. But now if I start developping, I want to use the build results directly and not beeing obliged to always use an archive.
So 2 questions:
- how do you guys work when you compile from the sources and modify them?
- I suppose conda-build is only meant for CI integration, correct? Then where can I find the FreeCAD binary before it is bundled?
By the way the content of archive doesn’t work. Not even from the terminal, where the “brew” build worked fine. Still wondering how to make conda properly work on my Mac and build FreeCAD for OS X…
Last login: Sat Mar 9 15:36:18 on ttys001
(base) mac-mini:~ jeanmarc$ /Users/jeanmarc/miniconda3/conda-bld/osx-64/freecad-0.18b0-py36h4f6ecc2_41/bin/FreeCAD ; exit;
dyld: Library not loaded: @rpath/libpython3.6m.dylib
Referenced from: /Users/jeanmarc/miniconda3/conda-bld/osx-64/freecad-0.18b0-py36h4f6ecc2_41/bin/FreeCAD
Reason: image not found
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Cheers,
JMB
small mistake at last step should be: conda build . -m .ci_support/osx_python3.7.yaml
I am still no comfortable with conda. Could you please explain what you mean with the create environment with the built package?
conda create freecad-test … --use-local …
Sorry for my stupid questions but I try to get on the train…
Hope this helps: the log file talks about cocoa missing.
thanks for testing.
Maybe this is a problem with absolutepaths. Maybe the appimage-equivalent way of building the package doesn’t work for the mac. I guess it’s best to ask @peterl94 how he did his build.
Now the build results seem to be freecad-0.18b0-py36h4f6ecc2_41.tar.bz2. So I suppose I have to extract this archive to find FreeCAD. But now if I start developping, I want to use the build results directly and not beeing obliged to always use an archive.
You have to install it with conda. The archive only contains freecad, but not it’s dependencies… To test it you need to create an environment.
There is no simple way to setup an interactive development environment with conda. I tried it with conda-build (and it also works) but you need a deeper understanding how conda works to do it right.
small mistake at last step should be: conda build . -m .ci_support/osx_python3.7.yaml
you are right. This has changed recently.
I am still no comfortable with conda. Could you please explain what you mean with the create environment with the built package?
Please have a look at the basics of conda. I guess it’s the best reference:
https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html#managing-environments
Hmmm followed second instructions. Just failed.
(base) mac-mini:freecad-feedstock jeanmarc$ conda build . -m .ci_support/osx_python3.7.yaml
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Adding in variants from /Users/jeanmarc/conda_build_config.yaml
INFO:conda_build.variants:Adding in variants from /Users/jeanmarc/conda_build_config.yaml
Adding in variants from .ci_support/osx_python3.7.yaml
INFO:conda_build.variants:Adding in variants from .ci_support/osx_python3.7.yaml
Attempting to finalize metadata for freecad
INFO:conda_build.metadata:Attempting to finalize metadata for freecad
Collecting package metadata: ...working... done
Solving environment: ...working... done
Collecting package metadata: ...working... done
Solving environment: ...working... done
Collecting package metadata: ...working... done
Solving environment: ...working... done
Collecting package metadata: ...working... done
Solving environment: ...working... done
BUILD START: ['freecad-0.18-py37hf00ded6_1000.tar.bz2']
Collecting package metadata: ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /Users/jeanmarc/miniconda3/conda-bld/freecad_1552144669386/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold
The following NEW packages will be INSTALLED:
blas: 1.1-openblas conda-forge
boost-cpp: 1.68.0-h6f8c590_1000 conda-forge
bzip2: 1.0.6-h1de35cc_1002 conda-forge
ca-certificates: 2019.3.9-hecc5488_0 conda-forge
certifi: 2019.3.9-py37_0 conda-forge
coin3d: 4.0.0-hf9e6f3b_1004 conda-forge
curl: 7.64.0-heae2a1f_2 conda-forge
doxygen: 1.8.14-0 conda-forge
eigen: 3.3.7-h04f5b5a_1000 conda-forge
expat: 2.2.5-h0a44026_1002 conda-forge
freeimage: 3.17.0-0 conda-forge
freetype: 2.9.1-h597ad8a_1005 conda-forge
future: 0.17.1-py37_1000 conda-forge
hdf4: 4.2.13-hf3c6af0_1002 conda-forge
hdf5: 1.10.4-nompi_h646315f_1105 conda-forge
icu: 58.2-h0a44026_1000 conda-forge
jpeg: 9c-h1de35cc_1001 conda-forge
jsoncpp: 1.8.4-h04f5b5a_1001 conda-forge
krb5: 1.16.3-hcfa6398_1001 conda-forge
libcurl: 7.64.0-he376013_2 conda-forge
libcxx: 7.0.0-h2d50403_1 conda-forge
libedit: 3.1.20170329-hcfe32e1_1001 conda-forge
libffi: 3.2.1-h0a44026_1005 conda-forge
libgfortran: 3.0.1-0 conda-forge
libiconv: 1.15-h1de35cc_1004 conda-forge
libnetcdf: 4.6.2-h6b88ef6_1001 conda-forge
libogg: 1.3.2-h1de35cc_1001 conda-forge
libpng: 1.6.36-ha441bb4_1000 conda-forge
libssh2: 1.8.0-hb1dc21d_1004 conda-forge
libtheora: 1.1.1-h1de35cc_1001 conda-forge
libtiff: 4.0.10-h79f4b77_1001 conda-forge
libvorbis: 1.3.5-h1de35cc_1001 conda-forge
libxml2: 2.9.8-hf14e9c8_1005 conda-forge
libxslt: 1.1.32-h33a18ac_1002 conda-forge
llvm-meta: 7.0.0-0 conda-forge
lz4-c: 1.8.1.2-0 conda-forge
m4: 1.4.18-h1de35cc_1001 conda-forge
ncurses: 6.1-h0a44026_1002 conda-forge
netgen: 6.2.1808-py37h568d2b9_1005 conda-forge
occt: 7.3.0-h1df9755_1002 conda-forge
openblas: 0.3.5-h436c29b_1000 conda-forge
openssl: 1.1.1b-h1de35cc_1 conda-forge
pcre: 8.41-h0a44026_1003 conda-forge
pip: 19.0.3-py37_0 conda-forge
pivy: 0.6.5a0-py37h9e2f8fd_1000 conda-forge
pthread-stubs: 0.4-h1de35cc_1001 conda-forge
pybind11: 2.2.4-py37h04f5b5a_1000 conda-forge
pyside2: 5.6.0a1-py37h98637d4_1004 conda-forge
python: 3.7.1-hbdd33cc_1002 conda-forge
qt: 5.6.2-h822fa55_1013 conda-forge
readline: 7.0-hcfe32e1_1001 conda-forge
setuptools: 40.8.0-py37_0 conda-forge
smesh: 8.3.0.2-hb6922d4_3 conda-forge
soqt: 1.6.0a-h04f5b5a_1000 conda-forge
sqlite: 3.26.0-h1765d9f_1001 conda-forge
swig: 3.0.12-h0a44026_1003 conda-forge
tbb: 2019.4-h04f5b5a_0 conda-forge
tbb-devel: 2019.4-h04f5b5a_0 conda-forge
tk: 8.6.9-ha441bb4_1000 conda-forge
vtk: 8.1.2-py37h238a7ee_1200 conda-forge
wheel: 0.33.1-py37_0 conda-forge
xerces-c: 3.2.2-h44e365a_1001 conda-forge
xz: 5.2.4-h1de35cc_1001 conda-forge
zlib: 1.2.11-h1de35cc_1004 conda-forge
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
WARNING: symlink_conda() is deprecated.
Collecting package metadata: ...working... done
Solving environment: ...working... done
Collecting package metadata: ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /Users/jeanmarc/miniconda3/conda-bld/freecad_1552144669386/_build_env
The following NEW packages will be INSTALLED:
bzip2: 1.0.6-h1de35cc_1002 conda-forge
ca-certificates: 2019.3.9-hecc5488_0 conda-forge
cctools: 895-h7512d6f_0 conda-forge
clang: 4.0.1-h662ec87_0 conda-forge
clang_osx-64: 4.0.1-h1ce6c1d_11 conda-forge
clangxx: 4.0.1-hc9b4283_0
clangxx_osx-64: 4.0.1-h22b1bf0_11
cmake: 3.13.4-h1e01633_0 conda-forge
compiler-rt: 4.0.1-h5487866_0 conda-forge
curl: 7.64.0-heae2a1f_2 conda-forge
expat: 2.2.5-h0a44026_1002 conda-forge
gettext: 0.19.8.1-hcca000d_1001 conda-forge
git: 2.21.0-pl526h3e3e3d1_0 conda-forge
krb5: 1.16.3-hcfa6398_1001 conda-forge
ld64: 274.2-h7c2db76_0 conda-forge
libcurl: 7.64.0-he376013_2 conda-forge
libcxx: 4.0.1-h579ed51_0
libcxxabi: 4.0.1-hebd6815_0 conda-forge
libedit: 3.1.20170329-hcfe32e1_1001 conda-forge
libffi: 3.2.1-h0a44026_1005 conda-forge
libiconv: 1.15-h1de35cc_1004 conda-forge
libssh2: 1.8.0-hb1dc21d_1004 conda-forge
libuv: 1.26.0-h1de35cc_0 conda-forge
llvm: 4.0.1-hc748206_0 conda-forge
llvm-lto-tapi: 4.0.1-h6701bc3_0 conda-forge
ncurses: 6.1-h0a44026_1002 conda-forge
ninja: 1.9.0-h04f5b5a_0 conda-forge
openssl: 1.1.1b-h1de35cc_1 conda-forge
perl: 5.26.2-h79c3c89_1002 conda-forge
rhash: 1.3.6-h1de35cc_1001 conda-forge
tk: 8.6.9-ha441bb4_1000 conda-forge
xz: 5.2.4-h1de35cc_1001 conda-forge
zlib: 1.2.11-h1de35cc_1004 conda-forge
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
WARNING: symlink_conda() is deprecated.
Source cache directory is: /Users/jeanmarc/miniconda3/conda-bld/src_cache
INFO:conda_build.source:Source cache directory is: /Users/jeanmarc/miniconda3/conda-bld/src_cache
Found source in cache: freecad_0.18_5829bbb131.tar.gz
INFO:conda_build.source:Found source in cache: freecad_0.18_5829bbb131.tar.gz
Extracting download
Applying patch: '/Users/jeanmarc/code/freecad-feedstock/recipe/osx.patch'
Trying to apply patch as-is
INFO:conda_build.source:Trying to apply patch as-is
(Stripping trailing CRs from patch.)
patching file src/Mod/Drawing/Gui/DrawingView.cpp
Hunk #1 FAILED at 65.
1 out of 1 hunk FAILED -- saving rejects to file src/Mod/Drawing/Gui/DrawingView.cpp.rej
Warning: failed to download source. If building, will try again after downloading recipe dependencies.
Error was:
Command '['/usr/bin/patch', '-p1', '--ignore-whitespace', '-i', '/Users/jeanmarc/code/freecad-feedstock/recipe/osx.patch']' returned non-zero exit status 1.
Failed to download or patch source. Please see build log for info.
I have uploaded @looo’s build to the GitHub releases page. Is there any reason not to delete the older .dmg’s?
@looo you may consider removing the offline docs from future builds. I have loaded the offline docs as a separate package, so the user only has to download once. This is what I’m doing with win already.
For some reason, it seems that sources have not been extracted by the archive which would explain the patch error. I am still finding out where the “src” directory is located…
Still no getting why I have this src patching issue.
I only managed to succefully build FreeCAD from the sources with brew following those guidelines https://github.com/FreeCAD/homebrew-freecad
I understand the reason to use a “unique” build system, but I have to admit that conda is (far) more complicated to use and properly setup on MacOSX than brew…
I have uploaded @looo’s build to the GitHub releases page. Is there any reason not to delete the older .dmg’s?
@looo you may consider removing the offline docs from future builds. I have loaded the offline docs as a separate package, so the user only has to download once. This is what I’m doing with win already.
We need to check if the dmg I produced works also on other systems. I fear there is something wrong with the paths…
For some reason, it seems that sources have not been extracted by the archive which would explain the patch error. I am still finding out where the “src” directory is located…
I am also not yet sure why the patching isn’t working. But I think this patch isn’t needed anymore.
I just downloaded the conda packaged DMG on github. It doesn’t work: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/FreeCAD.app ![]()
Currently the only way I managed to run the latest FreeCAD (but not from the sources) is:
$ conda create --name freecad-dev3 blas=*=openblas python=3.6 tbb=2018.0.5 occt=7.3 freecad -c freecad/label/dev
$ conda activate freecad-dev3
$ conda install freecad
$ freecad
This approach is quite OK, but it is not an actual MacOS package app that can be distributed as such.
Now it still wonder how I can create and run the app if I start developping for it from the sources…
Question: which version of FC is hosted on conda-forge and which is found on http://conda.anaconda.org/freecad/label/dev?
Maybe this is a problem with absolutepaths.
In which path do you have FreeCAD.app? I can create the same and try again.
Is there any reason not to delete the older .dmg’s?
15310 can be removed. We should keep 15525 until the path issue with the new version is solved.
No luck here either:
FreeCAD 0.18, Libs: 0.18R16079 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Abort trap: 6
thanks for your reports @chrisb, @pablogil
with this I was able to reproduce the problem on my machine too.
Previously it was working for me, because I didn’t delete the environment where all the stuff was bundled. So somehow some libraries were calling stuff from this environment. After deleting this environment I got the same error report (something about qt-plugins…)
I remeber having similar problem on windows and linux. So I tried a similar solution like we use for the appimage. This is setting some env-variables which point to the extracted directory and are set (exported) in the initialization script.
So there is still the possibility of some stuff not setup in a correct way, but this is the same for the appimage too. As the conda-based appimage has shown to work quite nicely, I guess also the mac dmg should give similar results (hopefully)
I created a new freecad-build and a new dmg. Maybe you can try this again:
https://www.dropbox.com/sh/tcpg7xrvjdun1wa/AACORZUqJeKs1Yws1Bt5Oteia?dl=0