You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 702f514
Browse filesBrowse the repository at this point in the historyBrowse files
Silence libtool empty-object warnings for static Xcode builds
Platform and feature guards intentionally leave some bundled sources empty, and Apple's libtool warns about each when the Xcode generator archives them. Pass -no_warning_for_no_symbols through STATIC_LIBRARY_OPTIONS for the Xcode generator only; Ninja and Makefile generators may use ar, which rejects the flag. Document it for consumers that repack FreeImage.a.
For `find_package` to work, simply set `CMAKE_PREFIX_PATH` to the directory where the compiled binaries are installed (the `install_dir` folder from above).
336
336
337
+
<<<<<<< HEAD
337
338
## Windows linker troubleshooting
338
339
339
340
If a prebuilt `FreeImage.lib` or `FreeImageD.lib` fails to link with `LNK2019`
@@ -464,6 +465,40 @@ A v143-only distribution should report that requirement before compiling.
464
465
Do not use `/FORCE` to work around missing runtime symbols: it cannot supply
465
466
the implementations, and the resulting executable can be invalid. `LNK4075`
466
467
about `/INCREMENTAL` is a separate warning caused by that flag combination.
468
+
=======
469
+
## Apple archive warnings about objects with no symbols
470
+
471
+
Apple's `libtool` can report `FreeImage.a(...o) has no symbols` when creating
472
+
or combining static libraries. Some bundled source files intentionally
473
+
compile to empty objects because their platform or optional feature is not
474
+
enabled, such as a Windows semaphore implementation on iOS. This diagnostic
475
+
alone does not indicate missing FreeImage functions.
476
+
477
+
The CMake Xcode build suppresses this specific warning on the static
478
+
FreeImage target. If another target later repacks `FreeImage.a`, configure
479
+
that target too; archive options are not stored in the `.a` file or inherited
0 commit comments