FLTK logo

Re: [fltk.coredev] Understanding macOS build environments

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: Understanding macOS build environments Evan Laforge Mar 03, 2021  
 
On Wed, Mar 3, 2021 at 5:37 AM Albrecht Schlosser wrote:

> Q: Which "package management" tool(s) did you install and which tool(s)
> are you actually using?

nix, and nixpkgs

> Q: How are you mainly building FLTK? Options are configure/make or
> CMake. If CMake, please add your "Generator" as well, like "Unix
> Makefiles", "Ninja", "Xcode", ...
>
> A: autoconf + CMake/Ninja + CMake/Xcode (I did not yet try CMake/"Unix
> Makefiles").

I use the nixpkgs bundled build, but override it to get the specific
fltk commit I want:
https://github.com/elaforge/karya/blob/work/default.nix#L97

I think the nixpkgs build uses `./configure && make` but it also
supports cmake.  I think its default behaviour is to detect autotools
and then cmake and use whatever one it finds first.  It uses its own
gcc or clang, so there's no need to install the commandline tools
stuff, though I always do that anyway since it's necessary for all
non-nix oriented development.

For the rest of the questions, nixpkgs deals with those things internally.

> Q: What build environments do you use, particularly do you use Xcode to
> edit/build/test/debug (FLTK) and your FLTK application code?

No xcode, I build with shake (it's make-like).

> Q: If you are using another "package manager", what is its install directory and how are packages found (symbolic links anywhere, PATH, etc.)?

Nix puts stuff in `/nix`, and it works by directly supplying
dependencies via absolute paths, so no finding is needed.  I hadn't
heard about the "no editing /" thing, I suppose the nix people have
either found a way around that, or moved from `/nix` to somewhere
else.  I'm still on High Sierra and I never look forward to upgrades
but someday I suppose I'll have to.

-- 
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/CACbaDy5qD1Vzo5oqsu8Map7hKZLC_x7Qja5h3kuwR%3D59t4TJPg%40mail.gmail.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'.