|
|
Build failure on latest macOS/XCode
On macOS 11.3/Intel, updated 4/27/2021. XCode 12.5 updated 4/27/2021.
using 1.3.6RC1 download
$ tar -jxvf fltk-1.3.6rc1-source.tar.bz2 $ cd fltk-1.3.6rc1 $ mkdir build && cd build $ cmake .. $ make
- snip - [ 14%] Linking C static library ../lib/libfltk_png.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libfltk_png.a(arm_init.c.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libfltk_png.a(filter_neon_intrinsics.c.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libfltk_png.a(palette_neon_intrinsics.c.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libfltk_png.a(arm_init.c.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libfltk_png.a(filter_neon_intrinsics.c.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libfltk_png.a(palette_neon_intrinsics.c.o) has no symbols [ 14%] Built target fltk_png Scanning dependencies of target fltk [ 14%] Building CXX object src/CMakeFiles/fltk.dir/Fl.cxx.o In file included from /Users/bob/build/fltk-1.3.6rc1/src/Fl.cxx:67: In file included from /Users/bob/build/fltk-1.3.6rc1/FL/x.H:32: In file included from /Users/bob/build/fltk-1.3.6rc1/FL/mac.H:50: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:24: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:417: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstddef:37: /Users/bob/build/fltk-1.3.6rc1/version:1:1: error: expected unqualified-id 1.3.6 ^ In file included from /Users/bob/build/fltk-1.3.6rc1/src/Fl.cxx:67: In file included from /Users/bob/build/fltk-1.3.6rc1/FL/x.H:32: In file included from /Users/bob/build/fltk-1.3.6rc1/FL/mac.H:50: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:24: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:418: /Users/bob/build/fltk-1.3.6rc1/version:1:1: error: expected unqualified-id 1.3.6 ^ In file included from /Users/bob/build/fltk-1.3.6rc1/src/Fl.cxx:67: In file included from /Users/bob/build/fltk-1.3.6rc1/FL/x.H:32: In file included from /Users/bob/build/fltk-1.3.6rc1/FL/mac.H:50: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:24: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:310: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/limits:121: /Users/bob/build/fltk-1.3.6rc1/version:1:1: error: expected unqualified-id 1.3.6 ^ 3 errors generated. make[2]: *** [src/CMakeFiles/fltk.dir/Fl.cxx.o] Error 1 make[1]: *** [src/CMakeFiles/fltk.dir/all] Error 2 make: *** [all] Error 2
happy to try anything else that might help.
Bob Tolbert
On Tuesday, April 27, 2021 at 10:07:08 AM UTC-6 rob.a.m...@gmail.com wrote:
On Monday, April 26, 2021 at 3:46:19 PM UTC-7 Albrecht Schlosser wrote:
On 4/27/21 12:06 AM Rob McDonald wrote:
> Thanks for this update. I'll hold off on testing rc1 until I hear back
> from you.
No, please go ahead and test. There won't be any more changes related to
the CMake issues in 1.3.6, it's all finished now.
The only relevant changes you should expect compared to 1.3.5 are the
renamed macOS framework and the new "backwards compatible" setting of
FLTK_INCLUDE_DIR in *CONFIG* mode as you expect in your app (at least
that's what I remember).
Note: as with 1.3.5 there will likely be no next 1.3 version (1.3.7) -
unless there are really serious bugs. But you never know... ;-)
I hope that we can solve the find_package() issue differently.
Thanks for the clarification.
Running FindPackage(FLTK CONFIG) and then printing out the expected variables, I get...
-- FLTK_FOUND 1 -- FLTK_INCLUDE_DIR /Users/.../FLTK-prefix/include -- FLTK_INCLUDE_DIRS /Users/.../FLTK-prefix/include -- FLTK_LIBRARIES -- FLTK_FLUID_EXECUTABLE fluid -- FLTK_WRAP_UI
So, it appears that FLTK_LIBRARIES is not being set. Also, I have great skepticism about FLTK_FLUID_EXECUTABLE here. I would expect it to provide a fully qualified path to fluid rather than just the executable name.
Also, note no success message 'Found FLTK:' is printed.
When I run without CONFIG set, I get.....
-- Found FLTK: /Users/.../FLTK-prefix/lib/libfltk_images.a;/Users/.../FLTK-prefix/lib/libfltk_forms.a;/Users/.../FLTK-prefix/lib/libfltk_gl.a;/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework;/Users/.../FLTK-prefix/fltk.framework -- FLTK_FOUND TRUE -- FLTK_INCLUDE_DIR /Users/.../FLTK-prefix/include/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework -- FLTK_INCLUDE_DIRS -- FLTK_LIBRARIES -framework Carbon -framework Cocoa -framework ApplicationServices -lz/Users/.../FLTK-prefix/lib/libfltk_images.a/Users/.../FLTK-prefix/lib/libfltk_forms.a/Users/.../FLTK-prefix/lib/libfltk_gl.a/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework/Users/.../FLTK-prefix/fltk.framework -- FLTK_FLUID_EXECUTABLE /Users/.../FLTK-prefix/bin/fluid.app/Contents/MacOS/fluid -- FLTK_WRAP_UI 1
It more or less behaves as expected. Except as discussed before the issue I don't understand about the fltk.framework path that doesn't work properly.
Rob
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/571f7d9c-9a61-4ea8-ab51-af4a67a24974n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |