Article View: news.software.readers
Article #79Re: [flnews] Version 1.4.0 released
From: Michael Bäuerle
Date: Sat, 07 Nov 2026 12:02
Date: Sat, 07 Nov 2026 12:02
82 lines
4414 bytes
4414 bytes
Fleuger wrote: > Michael Bäuerle a écrit : > > > > 1.4.0 2026-10-24 Release > > -------------------------- > > Hello, > Thank you for this new release. You're welcome. > To install flnews 1.4.0 on my iMac M4, I have added the following lines > to the CONFIG file: > ------------------------- > # Homebrew tools and libraries paths (Apple Silicon M4) > CFG_FLTK_CONFIG="/opt/homebrew/bin/fltk-config" > > # Fix PKG_CONFIG path for OpenSSL > CFG_PKG_CONFIG_PATH="/opt/homebrew/opt/openssl/lib/pkgconfig:/opt/homebrew/lib/pkgconfig" > > # Compilation with explicit macOS SDK targeting > CC="clang" > CXX="clang++" > CFG_CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include -isysroot $(xcrun --show-sdk-path)" > > # CRUCIAL ADDITION: Include directory containing libssl.a / libssl.dylib > CFG_LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib -isysroot $(xcrun --show-sdk-path)" > > export CFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include" > export LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib" > export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include" > ------------------------- I don't use macOS, but I would expect that the default compilers are already clang and clang++ there (no need for explicit configuration). The file CONFIG is processed by the script mkconfig in the build step "make config"¹. Additional variables with prefix "CFG_" in CONFIG would only be processed if mkconfig is modified to use them. If you have used a pristine mkconfig script, they should be ignored. The "-I" flags are for the preprocessor, it should be sufficient to set them in CPPFLAGS. Have you tried whether the last two lines from the block you quoted above are sufficient? Defining the variables in the environment should work too: ------------------------- $ export LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib" $ export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include" $ make config ------------------------- The most important part is PATH. You need to configure it so that the flnews build system can execute "fltk-config" and "openssl". A search via PATH should look in "/opt/homebrew/bin" first. Likely that was already the case on your system. The flnews build system uses "fltk-config" to find the FLTK library and its headers automatically (no need to manually configure CPPFLAGS or LDFLAGS). The ugly part is OpenSSL. For historic reasons pkg-config is not used (this should be changed in a future version of flnews). Currently the frontend "openssl" is asked for the version and flnews is configured to use a library API that matches this version. Therefore it is important that the configuration of CPPFLAGS and LDFLAGS point to the same library version that is used by "openssl" (from the location resolved via PATH). In the file "config.log" you can check the detected version. Example: | | Check for OpenSSL ... | OpenSSL 4.0.0 14 Apr 2026 (Library: OpenSSL 4.0.0 14 Apr 2026) | Detected library name: OpenSSL | API 4 _____________ ¹ CONFIG is used by Makefile too, for the utilities defined by the UTIL_xxx variables. But what you want to configure should be handled by mkconfig.
Technical Details
Message-ID:
<AABq7xNu9y8AAAty.A3.flnews@Server4.micha.freeshell.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<AABq6FC4ld8AAAoJ.A3.flnews@WStation7.micha.freeshell.org> <11cc39v$sis$1@rasp.pasdenom.info>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Michael Bäuerle <michael.baeuerle@gmx.net> Newsgroups: news.software.readers Subject: Re: [flnews] Version 1.4.0 released Date: Sat, 7 Nov 2026 12:02:54 -0000 Lines: 82 Message-ID: <AABq7xNu9y8AAAty.A3.flnews@Server4.micha.freeshell.org> References: <AABq6FC4ld8AAAoJ.A3.flnews@WStation7.micha.freeshell.org> <11cc39v$sis$1@rasp.pasdenom.info> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net oU6u1c1fnxZRrWjh1rG2aw0HXeiehRLBm5MeOVqK8z6Z9MEYDN X-Orig-Path: not-for-mail Cancel-Lock: sha1:0wPp1WK2RB9M6HLcaBA7TPUiIAE= sha256:prSWHio8NtrVpHpworzBr5io1GEEqxua2YXONOAL58w= sha1:H0FD0M1DPK/ENMqYFZckAtCtUH4= sha256:t4xezGGOtLuWndkamKUh+5qnTLJcaopIS4/o6nPaFJw= Injection-Date: Sat, 7 Nov 2026 12:02:54 -0000 User-Agent: flnews/1.4.0 (for HP-UX)