3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-08-08 06:52:26 +00:00
z3/scripts
Lev Nachmanson 2ed4e90c75
Fix Java UnsatisfiedLinkError on macOS (#7640) (#9027)
On macOS, libz3java.dylib was built without an rpath to find libz3.dylib
in the same directory. When Java loaded the JNI library, the dynamic
linker could not resolve the libz3 dependency, causing
UnsatisfiedLinkError.

Three fixes:
- mk_util.py: add -Wl,-rpath,@loader_path to the macOS JNI link command
- CMakeLists.txt: set MACOSX_RPATH, BUILD_RPATH, INSTALL_RPATH for
z3java target; remove duplicate headerpad block
- update_api.py: improve Native.java error message to show the root
cause from both load attempts instead of only the fallback error

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-08 19:35:04 -07:00
..
tests Fix Java UnsatisfiedLinkError on macOS (#7640) (#9027) 2026-06-08 19:35:04 -07:00
build-win-signed-cmake.yml Update build-win-signed-cmake.yml 2025-06-19 10:18:03 -07:00
build-win-signed.yml increase timeout on windows build 2026-01-05 09:09:57 -08:00
build_libcxx_msan.sh
coverage.yml
find_non_defined_param_eval_patterns.py rename a Python file 2025-08-07 08:33:04 -07:00
generate-doc.yml
jsdoctest.yml
mk_consts_files.py
mk_copyright.py
mk_def_file.py
mk_exception.py
mk_genfile_common.py Remove unnecessary blank lines in mk_genfile_common.py and mk_api_doc.py 2026-02-19 17:52:11 +00:00
mk_gparams_register_modules_cpp.py
mk_install_tactic_cpp.py
mk_make.py
mk_mem_initializer_cpp.py
mk_nuget_task.py Fix NuGet packaging to handle dynamic glibc versions (#8474) 2026-02-02 09:16:27 -08:00
mk_pat_db.py
mk_project.py Integrate TPTP with internal APIs via cmd_context, add embedded-string TPTP regression tests, and fix TFF arithmetic/timeout regressions (#9483) 2026-05-12 19:29:58 -04:00
mk_unix_dist.py Fix macOS cross-compilation from ARM64 to x86_64 in mk_unix_dist.py and mk_util.py 2026-02-19 18:02:52 +00:00
mk_unix_dist_cmake.py
mk_util.py Fix Java UnsatisfiedLinkError on macOS (#7640) (#9027) 2026-06-08 19:35:04 -07:00
mk_win_dist.py use single thread for win-dist 2025-03-02 19:23:19 -08:00
mk_win_dist_cmake.py
policy.json
pyg2hpp.py
README
test-examples-cmake.yml
test-java-cmake.yml
test-jupyter.yml
test-regressions-coverage.yml
test-regressions.yml
test-z3.yml
trackall.sh
update_api.py Fix Java UnsatisfiedLinkError on macOS (#7640) (#9027) 2026-06-08 19:35:04 -07:00
update_header_guards.py
update_include.py
update_version.py update release 2026-02-08 20:10:43 -08:00
VERSION.txt update version 2026-02-18 20:37:48 -08:00
vsts-mac.sh
vsts-vs2013.cmd
vsts-vs2017.cmd

Instructions for updating external Z3 API
-----------------------------------------

The python "macros": def_Type() and def_API() are used to add new types and function definitions to the Z3 API.
The .h files provided to `mk_bindings(API_files)` contain these definitions.
See src\api\z3_api.h for many examples.

The bindings for .Net and Python are generated when mk_make.py is invoked.