Compiling With Qt5

Richard Kimberly Heck rikiheck at gmail.com
Thu Apr 4 17:39:18 UTC 2024


On 4/3/24 06:34, Jean-Marc Lasgouttes wrote:
> Le 03/04/2024 à 12:27, Pavel Sanda a écrit :
>> On Tue, Apr 02, 2024 at 09:54:22PM -0400, Richard Kimberly Heck wrote:
>>> Also, do we want Qt6 to be the default with 2.4.x? In master, that 
>>> might
>>> make sense, but it seems odd to change that now.
>>
>> I would not do that for 2.4 at this stage.
>
> I guess we could do that in a later 2.4 version, but this will need a 
> discussion.

I think it already is the default in the 2.4.x branch:

../lyx-2.4.x/build/ [2.4.x] > cmake ..
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
   Compatibility with CMake < 3.5 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value or use a ...<max> suffix to tell
   CMake that the project does not need compatibility with older versions.


-- TOP_SRC_DIR = /cvs/lyx/lyx-2.4.x
-- 

[snip]

-- Performing Test HAVE_STDATOMIC - Success
-- Qt6Core_VERSION = 6.6.0
-- Performing Test CHECK_WNODEPRECATEDCOPY_FLAG
-- Performing Test CHECK_WNODEPRECATEDCOPY_FLAG - Success
-- LYX_USE_QT = QT6
-- Found OpenGL: /usr/lib64/libOpenGL.so

[snip]

CMake Error at CMakeLists.txt:826 (find_package):
   Could not find a package configuration file provided by "Qt6Svg" with any
   of the following names:

     Qt6SvgConfig.cmake
     qt6svg-config.cmake

   Add the installation prefix of "Qt6Svg" to CMAKE_PREFIX_PATH or set
   "Qt6Svg_DIR" to a directory containing one of the above files.  If 
"Qt6Svg"
   provides a separate development package or SDK, be sure it has been
   installed.
Call Stack (most recent call first):
   src/frontends/qt/CMakeLists.txt:50 (qt_use_modules)

If I explicitly set Qt5, then it works.

Riki




More information about the lyx-devel mailing list