FLTK logo

Re: [fltk.coredev] Release FLTK 1.3.6 -- [General Use]

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Release FLTK 1.3.6 -- [General Use] Albrecht Schlosser Apr 27, 2021  
 
On 4/27/21 7:38 PM Bob Tolbert wrote:
Build failure on latest macOS/XCode

On macOS 11.3/Intel, updated 4/27/2021.
XCode 12.5 updated 4/27/2021.

Thank you very much for your report!

This is only a question and has nothing to do with the build issue: you write "macOS/XCode" but you're using cmake + make to build FLTK. I assume you installed Xcode to get the build tools but in your build you're using make (not Xcode). Right?

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
...

FTR: All these "ranlib: file: ... has no symbols" warnings are known and can be ignored.

[ 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
^

This is a silly error, I assume depending on the compiler and case sensitivity of the file system.

Question: is your file system case sensitive or not?

This is only for (my) info, but it can make a difference and I'd like to know if this is the case. On my system (Big Sur on Apple Silicon (M1)) with a case /sensitive/ file system the error doesn't appear but it can also depend on the compiler tools.

Anyway, the fault is that in this scenario the source directory is used as one of the '-I' commandline switches and it happens that

  #include <version>

in one or more system headers erroneously includes the file 'VERSION' whose contents is "1.3.6" and compilation fails.

Solution: please rename the file 'VERSION' to 'fltk_version.dat' as it is in 1.4.0 development (git master). There was a reported issue but I renamed that file only in 1.4.0 and not in branch-1.3. :-(

happy to try anything else that might help.

Could you please try to build again (or just restart the build) after renaming that file?

TIA, Albrecht

--
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/475f8c1b-d0f1-ad61-4200-89e7b351b47c%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.