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) ManoloFLTK 02:58 Apr 28  
 

Current CMake on macOS generates /usr/local/FLTK.framework which does not contain any headers or libraries, but is still picked up and preferred over /usr/local/lib/libfltk.dylib. Since the framework is empty, builds fail (i.e. TigerVNC) with fltk library not found.

I've just tried here to build on macOS a client FLTK app with the modern CMake procedure described in README.CMake.txt in 2 ways

  • against an installed set of static FLTK libs;
  • against an installed set of dynamic FLTK libs.

In both cases, the build is successful and the app runs. The target installation directory was not specified which amounts to /usr/local. In both cases /usr/local/FLTK.frameworkis necessary. The client program's CMakeLists.txt needs a small change between the 2 builds. The static build uses
target_link_libraries(client-name PRIVATE fltk::images)
The dynamic build uses
target_link_libraries(client-name PRIVATE fltk::images-shared)

What is the exact problem hit when building TigerVNC?


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/2081417528@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'.