DigitOtter / obs_scene_tree_view

OBS Plugin - Scene Folder Tree
GNU General Public License v2.0
75 stars 11 forks source link

Qt5-base installed, but qt6 asked #21

Open Desaydrone opened 1 year ago

Desaydrone commented 1 year ago

I try to compil this plugin on fedora 37 and i got this error :


Make Error at CMakeLists.txt:21 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt6" with any of
  the following names:

    Qt6Config.cmake
    qt6-config.cmake

  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
  to a directory containing one of the above files.  If "Qt6" provides a
  separate development package or SDK, be sure it has been installed.

I try to install Qt6-base but no change on compiling, what i have to install to make the compil work ?

DigitOtter commented 1 year ago

Sorry, I recently moved countries and was offline for a while.

I'm not familiar with Fedora, but did you install qt6-qtbase-devel? It should contain the necessary files

eribertomota commented 1 year ago

Today I switched from Qt6 to Qt5 on CMakeLists.txt and the plugin was built and worked fine.

On Debian systems the obs-studio is currently built over Qt5, so any plugin must use Qt5.

@@ -18,7 +18,7 @@ if(NOT DEFINED BUILD_IN_OBS)
                set(BUILD_IN_OBS OFF)
 endif()

-find_package(Qt6 REQUIRED COMPONENTS Widgets)
+find_package(Qt5 REQUIRED COMPONENTS Widgets)

 if(NOT ${BUILD_IN_OBS})
                set(CMAKE_CXX_STANDARD 20)
@@ -86,7 +86,7 @@ target_link_libraries(${LIBRARY_NAME}
                PUBLIC
                                OBS::libobs
                                OBS::obs-frontend-api
-                               Qt6::Widgets
+                               Qt5::Widgets

                PRIVATE
 )