2007-07-11 18:31:47 +00:00
|
|
|
=========================
|
2006-06-15 15:11:25 +00:00
|
|
|
Building LyX with CMake
|
2007-07-11 18:31:47 +00:00
|
|
|
=========================
|
|
|
|
|
2018-06-10 18:21:23 +00:00
|
|
|
Install CMake from www.cmake.org or your distribution (version >= 3.1.0).
|
2007-07-11 18:31:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
3rd party libraries
|
|
|
|
--------------------
|
2007-07-11 18:31:47 +00:00
|
|
|
|
2024-01-19 10:45:39 +00:00
|
|
|
Install Qt 5 or Qt 6 and make sure qmake is found.
|
2011-01-22 12:19:19 +00:00
|
|
|
Add the folder with qmake to the environment variable PATH.
|
|
|
|
If you've compiled Qt by yourself or qmake is not found after
|
|
|
|
installing Qt fix PATH,
|
|
|
|
Linux/Unix: export PATH=<your path to qt>/bin:$PATH
|
|
|
|
Windows : set PATH=<your path to qt>\bin;%PATH%
|
2024-01-19 10:45:39 +00:00
|
|
|
if you use -DLYX_USE_QT=AUTO, or do not use LYX_USE_QT, Qt 6 will be searched first
|
|
|
|
and if not found Qt 5 will be used.
|
|
|
|
If you want to use Qt 5, use -DLYX_USE_QT=QT5.
|
2013-01-30 06:45:42 +00:00
|
|
|
|
|
|
|
When you want to run LyX without installing from an out-of-source
|
2019-07-13 21:55:38 +00:00
|
|
|
build directory you have to set the environment variable LYX_DIR_24x
|
2011-03-29 20:39:02 +00:00
|
|
|
and it must point to the lib dir in the source tree.
|
2019-07-13 21:55:38 +00:00
|
|
|
Linux/Unix: export LYX_DIR_24x=<lyx-source>/lib
|
|
|
|
Windows : set LYX_DIR_24x=<lyx-source>\lib
|
2011-03-29 20:39:02 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Windows specific
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
On Windows install the supplementary modules:
|
2024-06-24 20:54:21 +00:00
|
|
|
* Visual Studio 2015: http://ftp.lyx.org/pub/lyx/devel/win_deps/lyx-windows-deps-msvc2015.zip
|
2011-03-14 23:25:08 +00:00
|
|
|
or use the option LYX_DEPENDENCIES_DOWNLOAD, then you have to add
|
|
|
|
these paths to your PATH variable:
|
2019-07-13 21:55:38 +00:00
|
|
|
<build-dir>\lyx-windows-deps-msvc2015\bin
|
|
|
|
<build-dir>\lyx-windows-deps-msvc2015\Python
|
|
|
|
<build-dir>\lyx-windows-deps-msvc2015\imagemagick
|
|
|
|
<build-dir>\lyx-windows-deps-msvc2015\ghostscript
|
|
|
|
<build-dir>\lyx-windows-deps-msvc2015\gettext-tools
|
2011-03-14 23:25:08 +00:00
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
If cmake couldn't find these modules set GNUWIN32_DIR, e.g.
|
2011-01-22 12:19:19 +00:00
|
|
|
-DGNUWIN32_DIR=c:\gnuwin32. By default cmake searches in your
|
|
|
|
program folder. Or use the cmake GUI to set the GNUWIN32_DIR path.
|
|
|
|
|
|
|
|
The build process tries to find aspell on Windows
|
|
|
|
in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local
|
|
|
|
under Linux. If it could not find aspell, spell checking
|
|
|
|
will be disabled.
|
2013-01-30 06:45:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Generating build system files
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
CMake is a build system file generator. On all systems it could
|
|
|
|
generate files for several build systems, for instance Makefiles
|
|
|
|
for make, project files for Visual Studio, Xcode, Eclipse.
|
|
|
|
|
|
|
|
Running cmake without any argument lists all supported build
|
|
|
|
systems on your system. Passing one of them as -G"<build system name>"
|
|
|
|
argument when running cmake selects this.
|
|
|
|
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Building out-of-source
|
|
|
|
-----------------------
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
The standard way of using CMake is to build in a folder that doesn't reside
|
|
|
|
in the source tree. This has the advantage that a complete fresh build could
|
|
|
|
be done by simply deleting all files in the build folder and re-running cmake
|
2011-01-22 12:19:19 +00:00
|
|
|
again.
|
|
|
|
|
|
|
|
Another benefit of out-of-source builds is that several builds (debug, release,
|
|
|
|
command-line builds, IDE project files) could all use the same source tree.
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
Therefore when using CMake create a folder outside of the source tree and
|
2011-01-22 12:19:19 +00:00
|
|
|
select this folder when using CMake's GUI, cmake-gui, or go into this folder
|
|
|
|
when you call cmake from the shell.
|
|
|
|
|
2011-05-08 08:48:13 +00:00
|
|
|
Before performing an out-of-source build, ensure that all CMake generated
|
|
|
|
in-source build information is removed from the source directory,
|
2013-01-30 06:45:42 +00:00
|
|
|
e.g., CMakeFiles directory, CMakeCache.txt.
|
|
|
|
|
2011-05-08 08:48:13 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
|
|
|
|
Using cmake
|
|
|
|
------------
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
When calling cmake you must pass the path to the source tree (absolute or relative)
|
|
|
|
and optionally the generator (each system has its own default). Additional arguments
|
2011-01-22 12:19:19 +00:00
|
|
|
could be passed with the -D prefix.
|
|
|
|
|
|
|
|
Here some examples, assuming the build folder is in the same folder as the source tree:
|
|
|
|
|
|
|
|
* Makefiles on Linux
|
2011-05-07 11:47:30 +00:00
|
|
|
cmake ../trunk
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
* Project files for QtCreator:
|
2011-05-07 11:47:30 +00:00
|
|
|
Open the trunk/CMakeLists.txt file and select the build folder
|
2011-01-22 12:19:19 +00:00
|
|
|
or create the files in the command line using the -G"CodeBlocks *" option, eg
|
2011-05-07 11:47:30 +00:00
|
|
|
cmake ../trunk -G"CodeBlocks - Unix Makefiles"
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
* Project files for Xcode
|
2011-05-07 11:47:30 +00:00
|
|
|
cmake ../trunk -GXcode
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
* Project files for Visual Studio 10
|
2011-05-07 11:47:30 +00:00
|
|
|
cmake ..\trunk -G"Visual Studio 10"
|
2011-01-22 12:19:19 +00:00
|
|
|
|
|
|
|
* NMake files for Visual Studio
|
2011-05-07 11:47:30 +00:00
|
|
|
cmake ..\trunk -G"NMake Makefiles"
|
2011-01-22 12:19:19 +00:00
|
|
|
|
|
|
|
* Makefiles for MinGW
|
2011-05-07 11:47:30 +00:00
|
|
|
cmake ..\trunk -G"MinGW Makefiles"
|
2011-01-22 12:19:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
Daily work:
|
|
|
|
|
|
|
|
* Re-running cmake is simple
|
|
|
|
cmake .
|
|
|
|
|
|
|
|
* Adding new files
|
|
|
|
The cmake build system scans the directories, so no need to update any file,
|
|
|
|
just re-run cmake. Also the mocing rules are generated.
|
|
|
|
|
|
|
|
* Unused source code file
|
|
|
|
Because cmake scans the directories for *.cpp and *.h files it will also
|
2013-01-30 06:45:42 +00:00
|
|
|
add files to the build system that are not mentioned to build. To exclude
|
2011-01-22 12:19:19 +00:00
|
|
|
them change their ending and re-run cmake.
|
|
|
|
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
|
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Build options
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Options could be passed by the -D prefix when running cmake.
|
|
|
|
Available options will be listed on each cmake run.
|
2019-07-14 08:46:51 +00:00
|
|
|
"cmake -Dhelp=1 -S <lyx-source-dir> -B /tmp" lists all available options:
|
|
|
|
!!! Mark, that using this command creates CMakeCache.txt and CMakeFiles
|
|
|
|
!!! which have to be removed afterwards. Therefore it is better to explicitly
|
|
|
|
!!! specify a temporary build directory (/tmp in this example)
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
# Available on all systems/compilers
|
|
|
|
-- LYX_CPACK = OFF : Use the CPack management (Implies LYX_INSTALL option)
|
2019-07-13 21:55:38 +00:00
|
|
|
-- LYX_LOCALVERSIONING = ON : Add version info to created package name (only used if LYX_CPACK option set)
|
2011-01-22 12:19:19 +00:00
|
|
|
-- LYX_INSTALL = OFF : Build install projects/rules (implies a bunch of other options)
|
2011-05-10 20:25:31 +00:00
|
|
|
-- LYX_NLS = ON : Use nls
|
2019-07-13 21:55:38 +00:00
|
|
|
-- LYX_REQUIRE_SPELLCHECK = OFF : Abort if no spellchecker available
|
2011-01-22 12:19:19 +00:00
|
|
|
-- LYX_ASPELL = OFF : Require aspell
|
|
|
|
-- LYX_ENCHANT = OFF : Require Enchant
|
|
|
|
-- LYX_HUNSPELL = OFF : Require Hunspell
|
2011-05-10 20:25:31 +00:00
|
|
|
-- LYX_RELEASE = OFF : Build release version, build debug when disabled
|
2019-07-13 21:55:38 +00:00
|
|
|
-- LYX_DEBUG = ON : Enforce debug build
|
|
|
|
-- LYX_NO_OPTIMIZE = OFF : Don't use any optimization/debug flags
|
2011-01-22 12:19:19 +00:00
|
|
|
-- LYX_PACKAGE_SUFFIX = ON : Use version suffix for packaging
|
|
|
|
-- LYX_PCH = OFF : Use precompiled headers
|
|
|
|
-- LYX_MERGE_FILES = OFF : Merge source files into one compilation unit
|
|
|
|
-- LYX_MERGE_REBUILD = OFF : Rebuild generated files from merged files build
|
|
|
|
-- LYX_QUIET = OFF : Don't generate verbose makefiles
|
|
|
|
-- LYX_INSTALL_PREFIX = OFF : Install path for LyX
|
2019-07-13 21:55:38 +00:00
|
|
|
-- LYX_BUNDLE = OFF : Build bundle (experimental)
|
|
|
|
-- LYX_ENABLE_URLTESTS = OFF : Enable for URL tests
|
|
|
|
-- LYX_ENABLE_EXPORT_TESTS = ON : Enable for export tests
|
|
|
|
-- LYX_ENABLE_KEYTESTS = ON : Enable for keytests
|
|
|
|
-- LYX_ASAN = OFF : Use address sanitizer
|
|
|
|
-- LYX_USE_FILEDIALOG = NATI : Use native or QT file dialog (QT NATIVE)
|
2022-11-21 08:31:48 +00:00
|
|
|
-- LYX_USE_QT = QT6 : Use Qt version as frontend (AUTO QT5 QT6)
|
2019-07-13 21:55:38 +00:00
|
|
|
-- LYX_DISABLE_CALLSTACK_PRI= OFF : do not print a callstack when crashing
|
|
|
|
-- LYX_EXTERNAL_Z = ON : OFF := Build 3rdparty lib zlib
|
|
|
|
-- LYX_EXTERNAL_ICONV = ON : OFF := Build 3rdparty lib iconvlib
|
|
|
|
-- LYX_EXTERNAL_HUNSPELL = OFF : OFF := Build 3rdparty lib hunspelllib
|
|
|
|
-- LYX_EXTERNAL_MYTHES = OFF : OFF := Build 3rdparty lib mytheslib (AUTO OFF ON)
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
# GCC specific
|
2019-07-13 21:55:38 +00:00
|
|
|
-- LYX_PROFILE = OFF : Build with options for gprof
|
2020-11-30 09:17:40 +00:00
|
|
|
-- LYX_EXTERNAL_BOOST = OFF : Use external boost
|
2011-01-22 12:19:19 +00:00
|
|
|
-- LYX_PROGRAM_SUFFIX = ON : Append version suffix to binaries
|
|
|
|
-- LYX_DEBUG_GLIBC = OFF : Enable libstdc++ debug mode
|
2013-01-30 02:35:06 +00:00
|
|
|
-- LYX_DEBUG_GLIBC_PEDANTIC = OFF : Enable libstdc++ pedantic debug mode
|
2011-01-22 12:19:19 +00:00
|
|
|
-- LYX_STDLIB_DEBUG = OFF : Use debug stdlib
|
|
|
|
|
|
|
|
# MSVC specific
|
|
|
|
-- LYX_CONSOLE = ON : Show console on Windows
|
|
|
|
-- LYX_VLD = OFF : Use VLD with MSVC
|
|
|
|
-- LYX_WALL = OFF : Enable all warnings
|
2011-03-14 23:25:08 +00:00
|
|
|
-- LYX_DEPENDENCIES_DOWNLOAD= OFF : Download precompiled 3rd party libraries for MSVC 10
|
2007-07-11 18:31:47 +00:00
|
|
|
|
2019-07-13 21:55:38 +00:00
|
|
|
# APPLE specific
|
|
|
|
-- LYX_DMG = OFF : Build as Mac bundle, needed for .dmg (experimental)
|
|
|
|
-- LYX_COCOA = OFF : Use Cocoa on Mac
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
|
2019-07-13 21:55:38 +00:00
|
|
|
Using the merged files build (Deprecated)
|
2011-01-22 12:19:19 +00:00
|
|
|
-----------------------------
|
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
When the option 'LYX_MERGE_FILES' is used then for each library a file
|
|
|
|
is generated that includes all source files of this library, this speeds
|
|
|
|
up compilation by a factor of about 5.
|
2011-01-22 12:19:19 +00:00
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
When you heavily work on one file you could comment out the relevant
|
2011-01-22 12:19:19 +00:00
|
|
|
define in the '_allinone_const.C' file, so only the file _allinone_touched.C'
|
2013-01-30 06:45:42 +00:00
|
|
|
will be re-compiled again and again.
|
2011-01-22 12:19:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
- Adding new files
|
2013-01-30 06:45:42 +00:00
|
|
|
When you add new files the merging files have to be rebuilt:
|
2011-01-22 12:19:19 +00:00
|
|
|
cmake -DLYX_MERGE_REBUILD=1 .
|
2013-01-30 06:45:42 +00:00
|
|
|
Or start over by completely cleaning the build folder.
|
2011-01-22 12:19:19 +00:00
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
- Starting over with the same configuration
|
|
|
|
Delete all files except CMakeCache.txt and call
|
2011-01-22 12:19:19 +00:00
|
|
|
cmake .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visual Studio C++
|
|
|
|
------------------
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2007-07-11 18:31:47 +00:00
|
|
|
* Warnings: The default warning level of the msvc cmake builds
|
|
|
|
is /W3. To enable /W4 use
|
2011-01-22 12:19:19 +00:00
|
|
|
'-DLYX_WALL=1 '
|
2013-01-30 06:45:42 +00:00
|
|
|
and
|
2011-01-22 12:19:19 +00:00
|
|
|
'-DLYX_WALL=0'
|
2013-01-30 06:45:42 +00:00
|
|
|
switches back to to /W3.
|
2007-07-11 18:31:47 +00:00
|
|
|
To disable a specific warning add it to MSVC_W_DISABLE in
|
|
|
|
cmake/CMakeLists.txt. To make the warning an error add it
|
|
|
|
to MSVC_W_ERROR.
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2007-12-02 18:35:11 +00:00
|
|
|
* Memory leak detection
|
|
|
|
For MSVC the usage of 'Visual Leak Detection' could be enabled
|
2011-01-22 12:19:19 +00:00
|
|
|
(http://dmoulding.googlepages.com/vld): -DLYX_VLD=1
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2007-12-02 18:35:11 +00:00
|
|
|
Building vld requires the 'Debugging Tools For Windows' (~16MB)
|
|
|
|
http://www.microsoft.com/whdc/devtools/debugging/default.mspx
|
|
|
|
Eventually you have to copy dbghelp.dll from your Visual Studio
|
2013-01-30 06:45:42 +00:00
|
|
|
Common7\IDE folder into the binary directory.
|
2007-12-02 18:35:11 +00:00
|
|
|
'vld.ini' is part of lyx.proj where you can configure vld.
|
2013-01-30 06:45:42 +00:00
|
|
|
|
|
|
|
The documentation for vld can be found in development/Win32/vld, or
|
2007-12-02 18:35:11 +00:00
|
|
|
http://www.codeproject.com/tools/visualleakdetector.asp
|
2013-01-30 06:45:42 +00:00
|
|
|
|
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Some tips:
|
2007-07-11 18:31:47 +00:00
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
* the Release build links much faster
|
2007-07-11 18:31:47 +00:00
|
|
|
* for the 'Debug' and 'Release' build all precompiled headers are enabled
|
2013-01-30 06:45:42 +00:00
|
|
|
to compile without pch (non file merge mode) This could be used to check
|
2007-07-11 18:31:47 +00:00
|
|
|
if all necessary headers are included.
|
2020-11-30 09:17:40 +00:00
|
|
|
* use 'MinSizeRel' which only precompiles the STL and Boost headers
|
2007-07-11 18:31:47 +00:00
|
|
|
* use 'RelWithDebInfo' which does not use any precompiled headers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GCC/Windows (Win2k only works with MSYS, XP?)
|
|
|
|
----------------------------------------------
|
2011-01-22 12:19:19 +00:00
|
|
|
QMAKESPEC is needed:
|
|
|
|
export QMAKESPEC=win32-g++ (MSYS) or set QMAKESPEC=win32-g++ (CMD)
|
2007-07-11 18:31:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Ubuntu/Kubuntu
|
2013-01-30 06:45:42 +00:00
|
|
|
---------------
|
2007-07-11 18:31:47 +00:00
|
|
|
|
2009-11-07 13:23:30 +00:00
|
|
|
You need additionally these packages:
|
|
|
|
* g++
|
|
|
|
* cmake
|
2022-11-21 08:31:48 +00:00
|
|
|
* qttools5-dev-tools + qt5-qmake or qt6-base-dev-tools + qt6-tools-dev
|
2009-11-07 13:23:30 +00:00
|
|
|
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2009-11-07 13:23:30 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Xcode/Mac
|
|
|
|
----------
|
2013-01-30 06:45:42 +00:00
|
|
|
|
2011-01-22 12:19:19 +00:00
|
|
|
Some tips:
|
2007-07-11 18:31:47 +00:00
|
|
|
|
|
|
|
* Xcode prefers UTF8 when opening source files, though LyX usually uses
|
|
|
|
Latin1. To fix that select all source files in Xcode and click "Get Info"
|
|
|
|
in the context menu. Change the encoding to Latin1.
|
2011-01-22 12:19:19 +00:00
|
|
|
|
2007-07-11 18:31:47 +00:00
|
|
|
* You can run and debug LyX from Xcode. For LyX to find its resources, there
|
|
|
|
are two possibilities:
|
2013-01-30 06:45:42 +00:00
|
|
|
a) Put a resource directory, e.g. a link to the lib directory of the
|
2007-07-11 18:31:47 +00:00
|
|
|
source tree, at .../trunk/../build/bin/Resources
|
|
|
|
b) Select the lyx-qt4 executable in Xcode, click on "Get Info" in the
|
2013-01-30 06:45:42 +00:00
|
|
|
context menu and add "-sysdir a_valid_LyX_resource_directory"
|
2007-07-11 18:31:47 +00:00
|
|
|
pointing e.g. to a valid Contents/Resources of a LyX.app directory.
|
2011-01-22 12:19:19 +00:00
|
|
|
|
2007-07-11 18:31:47 +00:00
|
|
|
* LyX on Mac doesn't look for fonts in the resource directory if the
|
|
|
|
executable is not in an .app bundle. Instead you have to create a
|
|
|
|
symbolic link to the fonts directory in the place where the executable
|
|
|
|
is: ln -s .../trunk/lib/fonts .../trunk/../build/bin/Debug/
|
2013-01-30 06:45:42 +00:00
|
|
|
If you don't do that math characters will not show up correctly.
|
2011-01-22 12:19:19 +00:00
|
|
|
|
2007-07-11 18:31:47 +00:00
|
|
|
* CMake properly finds the Qt4 library bundles from Trolltech's binary
|
|
|
|
Qt4 package for Mac. So no need to compile Qt on your own.
|
|
|
|
|
2006-06-15 15:11:25 +00:00
|
|
|
|
2007-05-09 13:36:20 +00:00
|
|
|
|
2011-10-17 20:10:29 +00:00
|
|
|
Updating the translations
|
2013-01-30 06:45:42 +00:00
|
|
|
--------------------------
|
2011-10-17 20:10:29 +00:00
|
|
|
|
|
|
|
Read README.localization for information on the translation process.
|
2013-01-30 06:45:42 +00:00
|
|
|
Here we list only the CMake specific part. As with the autotools build
|
2011-10-17 20:10:29 +00:00
|
|
|
system the translations are only updated on demand.
|
|
|
|
|
|
|
|
- Update .po files and create .gmo files (does not touch the source tree):
|
|
|
|
make translations
|
|
|
|
|
|
|
|
- Copy the updated .po files into the source tree for committing:
|
2013-01-30 06:45:42 +00:00
|
|
|
make update-po
|
2011-10-17 20:10:29 +00:00
|
|
|
|
|
|
|
- Update the layouttranslations file in the source tree:
|
|
|
|
make layouttranslations1
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-22 12:40:13 +00:00
|
|
|
Packaging
|
|
|
|
----------
|
2010-03-25 21:37:42 +00:00
|
|
|
|
2011-01-22 12:42:54 +00:00
|
|
|
- Source .tar.gz, .tar.bz2, .zip:
|
|
|
|
make package_source
|
|
|
|
|
|
|
|
- Binary .tar.gz and install .sh:
|
|
|
|
make package
|
|
|
|
|
|
|
|
- Binary .deb:
|
2019-07-13 21:55:38 +00:00
|
|
|
Configure with "cmake -DCPACK_BINARY_DEB:BOOL=ON"
|
|
|
|
make package
|
|
|
|
-- or --
|
|
|
|
create : cpack -G DEB --config CPackConfig.cmake
|
2011-01-22 12:42:54 +00:00
|
|
|
list : dpkg-deb -c lyx-*.deb
|
|
|
|
install: dpkg -i lyx-*.deb
|
|
|
|
|
|
|
|
- Binary .rpm:
|
2019-07-13 21:55:38 +00:00
|
|
|
Configure with "cmake -DCPACK_BINARY_RPM:BOOL=ON"
|
|
|
|
make package
|
|
|
|
-- or --
|
|
|
|
create : cpack -G RPM --config CPackConfig.cmake
|
2013-01-30 06:45:42 +00:00
|
|
|
list : rpm -qlp lyx-*.rpm
|
|
|
|
install: rpm -U lyx-*.rpm
|
2011-01-22 12:42:54 +00:00
|
|
|
|