On 31/12/2025 10:49, pdv wrote:
On 31/12/2025 00:15, Kornel Benko wrote:
Am Tue, 30 Dec 2025 22:20:38 +0100
schrieb pdv <[email protected]>:
On 30/12/2025 17:48, Richard Kimberly Heck wrote:
On 12/30/25 10:36 AM, pdv wrote:
When building/installing LyX with CMake on MacOS the Help files are
not installed. The Resources/doc folder contains .png files but all
.lyx and .txt files are missing.
I noticed that in install.cmake on line 105
# this is handled in doc/CMakeLists.txt
#lyx_install("data" ${TOP_SRC_DIR}/lib doc *.lyx .
${_all_languages})
#lyx_install("data" ${TOP_SRC_DIR}/lib doc *.txt .
${_all_languages})
lyx_install("data" ${TOP_SRC_DIR}/lib doc * biblio
clipart)
the first 2 lyx_install commands are commented out. The header
mentions that these are handled by doc/CMakeLists.cmake, but as far as
I can see this doc script is never executed.
Uncommenting these 2 lines solves the problem, but maybe a different
solution is more appropriate.
Are you building from a released tarball or from git? If git, from what
branch?
Riki
I've build LyX2.6 from git, the master branch, commit 9b57990...
But this problem was already present some time ago.
A previous build (LyX2.5 from commit ad80d130) had the same problem.
Patrick
What are your configuring cmake parameters? Here it is installed, and
there is no
exception for APPLE.
In top CmakeLists.txt:1208 I see
if(LYX_INSTALL)
...
add_subdirectory(${LYX_CMAKE_DIR}/doc "${TOP_BINARY_DIR}/doc")
Kornel
The subdirectory /doc is present, as well as the .png files. Only the
.lyx and .txt files are not copied.
The CMakeLists.txt under /development/cmake/doc is somehow not called. I
couldn't find out where it should enter, but I'll give it another try.
These are my LYX settings:
I tried already with LYX_INSTALL=ON, but that fails.
Build params, switch LYX_* options by -DLYX_*=ON or OFF, LYX_* combos by
-DLYX_*=value:
LYX_ENABLE_BUILD_TYPE:STRING = AUTO : Allows to tweak the
compiled code (AUTO release prerelease development gprof)
LYX_CPACK:BOOL = ON : Use the CPack management
(Implies LYX_INSTALL option)
LYX_LOCALVERSIONING:BOOL = ON : Add version info to
created package name (only used if LYX_CPACK option set)
LYX_INSTALL:BOOL = OFF : Build install
projects/rules (implies a bunch of other options)
LYX_NLS:BOOL = ON : Enable Native Language
Support (NLS)
LYX_REQUIRE_SPELLCHECK:BOOL = OFF : Abort if no spellchecker
available
LYX_ASPELL:BOOL = ON : Require aspell
LYX_ENCHANT:BOOL = OFF : Require Enchant
LYX_HUNSPELL:BOOL = OFF : Require Hunspell
LYX_RELEASE:BOOL = ON : Build release version,
build debug when disabled
LYX_DEBUG:BOOL = OFF : Enforce debug build
LYX_NO_OPTIMIZE:BOOL = OFF : Don't use any
optimization/debug flags
LYX_ENABLE_ASSERTIONS:BOOL = ON : Run sanity checks in the
program
LYX_PACKAGE_SUFFIX:BOOL = ON : Use version suffix for
packaging
LYX_SUFFIX_VALUE:STRING = : Use this string as suffix
LYX_PCH:BOOL = OFF : Use precompiled headers
LYX_MERGE_FILES:BOOL = OFF : Merge source files into
one compilation unit
LYX_MERGE_REBUILD:BOOL = OFF : Rebuild generated files
from merged files build
LYX_QUIET:BOOL = ON : Don't generate verbose
makefiles
LYX_INSTALL_PREFIX:BOOL = OFF : Install path for LyX
LYX_BUNDLE:BOOL = ON : Build bundle (experimental)
LYX_ENABLE_URLTESTS:BOOL = OFF : Enable for URL tests
LYX_ENABLE_EXPORT_TESTS:BOOL = OFF : Enable for export tests
LYX_ENABLE_KEYTESTS:BOOL = OFF : Enable for keytests
LYX_ENABLE_VALGRIND_TESTS:BOOL = OFF : Enable for tests involving
valgrind
LYX_DEBUG_SANITIZE:STRING = NONE : Use sanitize check (NONE
ADDRESS THREAD UNSPECIFIED)
LYX_USE_QT:STRING = QT6 : Use Qt version as frontend
(AUTO QT5 QT6)
LYX_USE_IPO:STRING = OFF : Interprocedural
optimization (OFF AUTO ON)
LYX_DISABLE_CALLSTACK_PRINTING:BOOL= OFF : do not print a callstack
when crashing
LYX_EXTERNAL_Z:BOOL = ON : OFF := Build 3rdparty lib
zlib
LYX_EXTERNAL_DTL:BOOL = OFF : OFF := Build 3rdparty
commands dt2dv and dv2dt
LYX_EXTERNAL_ICONV:BOOL = ON : OFF := Build 3rdparty lib
iconvlib
LYX_EXTERNAL_HUNSPELL:BOOL = ON : OFF := Build 3rdparty lib
hunspelllib
LYX_EXTERNAL_MYTHES:STRING = OFF : OFF := Build 3rdparty lib
mytheslib (AUTO OFF ON)
LYX_DMG:BOOL = OFF : Build as Mac bundle,
needed for .dmg (experimental)
LYX_COCOA:BOOL = OFF : Use Cocoa on Mac
Obviously my problem is caused by LYX_INSTALL not being set.
When I set it on the configure is OK but when generating I get the error
message
The custom command generating
.../lyx-qt6-cmake-xcode-build/doc/LFUNs.lyx
is attached to multiple targets:
doc
lfundoc
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode "new build system".
I didn't mention I used XCode I'm afraid (version 16.4).
pdv
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel