diff --git a/.cache/clangd/index/MFloatPlugin.cpp.AEBE8FFB69F024A6.idx b/.cache/clangd/index/MFloatPlugin.cpp.AEBE8FFB69F024A6.idx new file mode 100644 index 0000000..4e1ca15 Binary files /dev/null and b/.cache/clangd/index/MFloatPlugin.cpp.AEBE8FFB69F024A6.idx differ diff --git a/.cache/clangd/index/MFloatPlugin.h.0C1F92730460C8E9.idx b/.cache/clangd/index/MFloatPlugin.h.0C1F92730460C8E9.idx new file mode 100644 index 0000000..b5d8e79 Binary files /dev/null and b/.cache/clangd/index/MFloatPlugin.h.0C1F92730460C8E9.idx differ diff --git a/.cache/clangd/index/main.cpp.A6A26BBF32F7D40E.idx b/.cache/clangd/index/main.cpp.A6A26BBF32F7D40E.idx new file mode 100644 index 0000000..ae2c2eb Binary files /dev/null and b/.cache/clangd/index/main.cpp.A6A26BBF32F7D40E.idx differ diff --git a/.github/workflows/compile-project.yml b/.github/workflows/compile-project.yml new file mode 100644 index 0000000..79fde60 --- /dev/null +++ b/.github/workflows/compile-project.yml @@ -0,0 +1,29 @@ +name: Compile project + +on: + push: + branches: [ "linux" ] + pull_request: + branches: [ "linux" ] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dependences + run: | + sudo apt-get update + sudo apt-get build-dep . -y + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} diff --git a/debian/control b/debian/control index 3834a0b..43a3516 100644 --- a/debian/control +++ b/debian/control @@ -5,15 +5,29 @@ Maintainer: mhduiy Build-Depends: debhelper-compat ( =12), cmake, + extra-cmake-modules, build-essential, qt6-base-dev, qt6-declarative-dev, qt6-base-dev-tools, qt6-tools-dev, + qtquickcontrols2-5-dev, qml6-module-qtquick-layouts, qml6-module-qtquick-window, qml6-module-qt-labs-platform, - qml6-module-qtquick-controls2-styles-chameleon + libopengl-dev, + libgl-dev, + libxkbcommon-dev, + libxkbfile-dev, + libgl1-mesa-dev, + libglu1-mesa-dev, + mesa-common-dev, + libvulkan-dev, + libqt6opengl6, + qt6-quick3d-dev, + qt6-quick3d-dev-tools, + libqt6opengl6-dev + Standards-Version: 0.0.1 diff --git a/example/main.cpp b/example/main.cpp index b8f6413..a0338a9 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -8,9 +8,6 @@ int main(int argc, char *argv[]) QQmlApplicationEngine engine; const QUrl url("qrc:/example/Main.qml"); - QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed, - &app, []() { QCoreApplication::exit(-1); }, - Qt::QueuedConnection); engine.load(url); return app.exec(); diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e862e29..b64a0ea 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,9 +65,9 @@ set_target_properties(${LIB_NAME} PROPERTIES ) target_link_libraries(${LIB_NAME} PUBLIC - Qt${QT_VERSION_MAJOR}::CorePrivate - Qt${QT_VERSION_MAJOR}::QuickPrivate - Qt${QT_VERSION_MAJOR}::QmlPrivate + Qt${QT_VERSION_MAJOR}::Core + Qt${QT_VERSION_MAJOR}::Quick + Qt${QT_VERSION_MAJOR}::Qml ) # Install library