Index: CMakeLists_Dependencies.cmake
===================================================================
--- CMakeLists_Dependencies.cmake	(revision 27002)
+++ CMakeLists_Dependencies.cmake	(working copy)
@@ -211,8 +211,8 @@
 #>>LibXML2
 
 #<<JPEG XL
-set(JXL_DIR ${CMAKE_MODULE_PATH})
-#find_package(JXL)
+#set(JXL_DIR ${CMAKE_MODULE_PATH})
+find_package(JXL)
 if(JXL_FOUND)
 	set(HAVE_JXL ON)
 	message("JPEG XL Library Found OK")
@@ -266,6 +266,9 @@
 		cmake_policy(SET CMP0167 OLD)
 		find_package(Boost)
 	endif()
+	if (NOT Boost_FOUND)
+		find_package(Boost)
+	endif()
 	if (Boost_FOUND)
 		message("Boost Library Found OK")
 		set(HAVE_BOOST ON)
Index: scribus/third_party/Qt-Advanced-Docking-System/src/CMakeLists.txt
===================================================================
--- scribus/third_party/Qt-Advanced-Docking-System/src/CMakeLists.txt	(revision 27002)
+++ scribus/third_party/Qt-Advanced-Docking-System/src/CMakeLists.txt	(working copy)
@@ -84,6 +84,9 @@
 target_link_libraries(${library_name} PUBLIC Qt${QT_VERSION_MAJOR}::Core 
                                                Qt${QT_VERSION_MAJOR}::Gui 
                                                Qt${QT_VERSION_MAJOR}::Widgets)
+if(QT_VERSION_MAJOR STREQUAL "6")
+    target_link_libraries(${library_name} PRIVATE Qt6::Gui)
+endif()
 if (UNIX AND NOT APPLE)
   if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
       find_package(X11 REQUIRED)
Index: scribus/third_party/Qt-Advanced-Docking-System/src/ads_globals.cpp
===================================================================
--- scribus/third_party/Qt-Advanced-Docking-System/src/ads_globals.cpp	(revision 27002)
+++ scribus/third_party/Qt-Advanced-Docking-System/src/ads_globals.cpp	(working copy)
@@ -32,6 +32,7 @@
 #include <QPainter>
 #include <QAbstractButton>
 #include <QStyle>
+#include <QtGlobal>
 
 #include "DockSplitter.h"
 #include "DockManager.h"
@@ -39,10 +40,14 @@
 #include "ads_globals.h"
 
 #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
-#include <QSettings>
-#include <QFile>
-#include <QApplication>
-#include <qpa/qplatformnativeinterface.h>
+	#include <QSettings>
+	#include <QFile>
+	#include <QApplication>
+	#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
+		#include <qnativeinterface.h>
+	#else
+		#include <qpa/qplatformnativeinterface.h>
+	#endif
 #endif
 
 namespace ads
@@ -69,12 +74,19 @@
 {
 	if (!qApp)
 		return nullptr;
+	#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
+		if (auto *x11Application = qGuiApp->nativeInterface<QNativeInterface::QX11Application>()) {
+			return x11Application->connection();
+		} else {
+			return nullptr;
+		}
+	#else
 	QPlatformNativeInterface *native = qApp->platformNativeInterface();
 	if (!native)
 		return nullptr;
-
 	void *connection = native->nativeResourceForIntegration(QByteArray("connection"));
 	return reinterpret_cast<xcb_connection_t *>(connection);
+	#endif
 }