FLTK logo

Re: [fltk/fltk] macOS: Generating fltk.framework (Issue #961)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] macOS: Generating fltk.framework (Issue #961) Matthias Melcher 03:36 Apr 28  
 

Here is what I get with the current GitHub versions of FLTK and TigerVNC. Output shortened to what I relevant.

% git clone https://github.com/fltk/fltk.git fltk-1.4.git
% cd fltk-1.4.git
% cmake -B build/Makefiles -DFLTK_BUILD_TEST=off -DFLTK_BUILD_SHARED_LIBS=on
% cmake --build build/Makefiles
% sudo cmake --build build/Makefiles --target uninstall
% sudo cmake --build build/Makefiles --target install
% cd ..
% git clone https://github.com/TigerVNC/tigervnc.git tigervnc.git
Fix tigervnc .vncviewer/DesktopWindow.cxx:157: error: reference to non-static member function...
% cd tigervnc.git
% cmake -B build
-- Found FLTK: /usr/local/lib/libfltk_images.dylib;/usr/local/fltk.framework
                                              bad  ~~~~~~~~~~~~~~~~~~~~~~~~~
% cmake --build build
[ 83%] Linking CXX executable vncviewer
ld: framework 'fltk' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
% sudo rm -R /usr/local/FLTK.framework
% rm build/CMakeCache.txt
% cmake -B build
-- Found FLTK: /usr/local/lib/libfltk_images.dylib;/usr/local/lib/libfltk.dylib
                                             good  ~~~~~~~~~~~~~~~~~~~~~~~~~
% cmake --build build
% ./build/vncviewer/vncviewer

CMake picks up on /usr/local/fltk.framework, but that directory is not a framework in the macOS Framework sense of things. Under macOS, a directory with a name ending in .framework has a very specific internal structure, and would have to contain an info.plist, the FLTK header files and all libraries to make any sense.

Make stopped searching for libfltk.dylib after it already found fltk.framework, but since fltk.framework contains no library, the build fails. If it does not fail for you, you may still have leftovers from old fltk installations that may be picked up ten before /usr/local/fltk.framework.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/961/2081428201@github.com>

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