-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup new formula file for freecad 0.20.2 release using py310 #488
Conversation
deb0dbf
to
da22876
Compare
unfortunately [email protected] sneaks into various environment variables during the cmake configure step. presently, not sure how to allow rubocop to either skip or ignore the offenses.
|
af14c3a
to
8250cf8
Compare
presently there is an issue with hdf5 due to the upstream (homebrew-core) hdf5 formula using cmake 🤦♂️
am able to work around the above issue with the below cmake code snippet, https://github.com/FreeCAD/homebrew-freecad/blob/master/patches/freecad-0.20.2-cmake-find-hdf5.patch - if(NOT HDF5_FOUND)
- find_package(HDF5 REQUIRED)
+ if(HOMEBREW_PREFIX)
+ set(HDF5_ROOT ${HOMEBREW_PREFIX}/opt/hdf5)
+ message("--------------------------------------------")
+ message("ipatch, manually set hdf5_root, cmake build of hdf5 breaks h5cc")
+ message("--------------------------------------------")
else()
- add_compile_options(${HDF5_CFLAGS})
- link_directories(${HDF5_LIBRARY_DIRS})
- link_libraries(${HDF5_LIBRARIES})
- find_file(Hdf5dotH hdf5.h PATHS ${HDF5_INCLUDE_DIRS} NO_DEFAULT_PATH)
- if(NOT Hdf5dotH)
- message( FATAL_ERROR "${HDF5_VARIANT} development header not found.")
- endif()
- endif()
- check_include_file_cxx(hdf5.h HDF5_FOUND)
- if(NOT HDF5_FOUND)
- message( FATAL_ERROR "hdf5.h was not found.")
+ if(NOT HDF5_FOUND)
+ find_package(HDF5 REQUIRED CONFIG)
+ else()
+ add_compile_options(${HDF5_CFLAGS})
+ link_directories(${HDF5_LIBRARY_DIRS})
+ link_libraries(${HDF5_LIBRARIES})
+ find_file(Hdf5dotH hdf5.h PATHS ${HDF5_INCLUDE_DIRS} NO_DEFAULT_PATH)
+ if(NOT Hdf5dotH)
+ message( FATAL_ERROR "${HDF5_VARIANT} development header not found.")
+ endif()
+ endif()
+ check_include_file_cxx(hdf5.h HDF5_FOUND)
+ if(NOT HDF5_FOUND)
+ message( FATAL_ERROR "hdf5.h was not found.")
+ endif() |
1bd0eaf
to
fa0446c
Compare
build error due to qt version 6 being installed. https://github.com/FreeCAD/homebrew-freecad/actions/runs/8287012887/job/22678355704#step:17:5240 |
afd318d
to
58ca312
Compare
from what i can tell upstream homebrew-core vtk uses qt which homebrew-core has set qt to version 6. and installing vtk puts qt in the system path thus breaking the build process. so to get around this i have disable certain cmake features and ignore certain paths. then have to manually add back certain paths to avoid the qt 6 installation. all this should allow freecad to build (haven't fully tested yet) without having to unlink qt use the upstream homebrew-core qt@5 formula without force linking it. |
there errors above in the raw log are related to cmake not finding the xerces-c include files the below patch should resolve those issues. |
58ca312
to
32db493
Compare
the build should hopefully reach 100% but unfortunately running into some issues with the install process, requiring further investigation. |
8de44aa
to
1ad0ebd
Compare
presently, i've been able to build and install freecad based on this formula from a m1 testing box. but unfortunately freecad crashes or fails to launch with the below error,
will continue to research |
1ad0ebd
to
30dba75
Compare
adding the below cmake var seems to resolve the
the install_name_tool is specific to macos, and i do not think it will effect a gnu+linux build 🤞 |
69fd048
to
aaa334e
Compare
readd formula llvm to
|
b6f4059
to
ba540ba
Compare
ba540ba
to
5170afd
Compare
output from running above command should output something similiar to the below
Not all PRs require passing these checks ie. adding
[no ci]
in the commit message will prevent the CI from running but PRs that change formula files generally should run through the CI checks that way new bottles are built and uploaded to the repository thus not having to build all formula from source but rather installing from a bottle (significantly faster 🐰 ... 🐢)For more information about this template file learn more