Compare commits
1 Commits
fix-ci
...
ea0946f97e
| Author | SHA1 | Date | |
|---|---|---|---|
| ea0946f97e |
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -43,16 +43,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
|
|
||||||
- name: Install pkgconfiglite
|
# Windows
|
||||||
|
|
||||||
|
- name: Chocolatey Action
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
uses: crazy-max/ghaction-chocolatey@v2
|
uses: crazy-max/ghaction-chocolatey@v2
|
||||||
with:
|
with:
|
||||||
args: install pkgconfiglite --checksum e87b5ea3c9142256af60f2d5b917aa63b571e6a0 --checksum-type sha1
|
args: install pkgconfiglite --checksum e87b5ea3c9142256af60f2d5b917aa63b571e6a0 --checksum-type sha1
|
||||||
- name: Install nsis
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
uses: crazy-max/ghaction-chocolatey@v2
|
|
||||||
with:
|
|
||||||
args: install nsis
|
|
||||||
|
|
||||||
- name: Install Debian packaging dependencies
|
- name: Install Debian packaging dependencies
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
@@ -194,11 +191,6 @@ jobs:
|
|||||||
uses: crazy-max/ghaction-chocolatey@v2
|
uses: crazy-max/ghaction-chocolatey@v2
|
||||||
with:
|
with:
|
||||||
args: install pkgconfiglite --checksum e87b5ea3c9142256af60f2d5b917aa63b571e6a0 --checksum-type sha1
|
args: install pkgconfiglite --checksum e87b5ea3c9142256af60f2d5b917aa63b571e6a0 --checksum-type sha1
|
||||||
- name: Install nsis
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
uses: crazy-max/ghaction-chocolatey@v2
|
|
||||||
with:
|
|
||||||
args: install nsis
|
|
||||||
|
|
||||||
- name: Configure Qtk Library
|
- name: Configure Qtk Library
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
14
.github/workflows/linting.yml
vendored
14
.github/workflows/linting.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
|||||||
# Check the entire repo for source files to tidy
|
# Check the entire repo for source files to tidy
|
||||||
files-changed-only: false
|
files-changed-only: false
|
||||||
# Ignore qtk build and external assimp directories
|
# Ignore qtk build and external assimp directories
|
||||||
ignore: '.github|build|extern'
|
ignore: '.github|build|extern/assimp/assimp'
|
||||||
# Point to compile_commands.json produced by build
|
# Point to compile_commands.json produced by build
|
||||||
database: 'build'
|
database: 'build'
|
||||||
# Use thread comments as feedback
|
# Use thread comments as feedback
|
||||||
@@ -61,12 +61,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: cpp-linter/cpp-linter-action@v2
|
- name: clang-format Check
|
||||||
|
uses: jidicula/clang-format-action@v4.9.0
|
||||||
with:
|
with:
|
||||||
version: '18'
|
clang-format-version: '18'
|
||||||
style: 'file'
|
check-path: ${{ matrix.path }}
|
||||||
tidy-checks: ''
|
|
||||||
files-changed-only: false
|
|
||||||
ignore: '.github|build|extern'
|
|
||||||
extensions: 'cpp,h'
|
|
||||||
files: ${{ matrix.path }}
|
|
||||||
|
|||||||
@@ -157,15 +157,8 @@ list(APPEND VAR_NAMES QT6_INSTALL_PLUGINS)
|
|||||||
|
|
||||||
# Find Assimp.
|
# Find Assimp.
|
||||||
if(QTK_SUBMODULES)
|
if(QTK_SUBMODULES)
|
||||||
if(APPLE)
|
# Required to statically link.
|
||||||
# Avoid zlib redefining fdopen, causing build failures in apple clang.
|
add_compile_options(-fPIC)
|
||||||
# https://github.com/assimp/assimp/issues/6118
|
|
||||||
add_compile_definitions(-Dfdopen=fdopen)
|
|
||||||
endif()
|
|
||||||
if(NOT WIN32)
|
|
||||||
# Required to statically link.
|
|
||||||
add_compile_options(-fPIC)
|
|
||||||
endif()
|
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE STRING "Build static assimp libs" FORCE)
|
set(BUILD_SHARED_LIBS OFF CACHE STRING "Build static assimp libs" FORCE)
|
||||||
set(ASSIMP_BUILD_ZLIB ON CACHE STRING "Build Zlib with assimp." FORCE)
|
set(ASSIMP_BUILD_ZLIB ON CACHE STRING "Build Zlib with assimp." FORCE)
|
||||||
set(
|
set(
|
||||||
@@ -182,14 +175,6 @@ if(QTK_SUBMODULES)
|
|||||||
"${CMAKE_CURRENT_SOURCE_DIR}/extern/assimp/assimp/"
|
"${CMAKE_CURRENT_SOURCE_DIR}/extern/assimp/assimp/"
|
||||||
EXCLUDE_FROM_ALL
|
EXCLUDE_FROM_ALL
|
||||||
)
|
)
|
||||||
install(
|
|
||||||
TARGETS assimp zlibstatic
|
|
||||||
EXPORT qtk_export
|
|
||||||
COMPONENT qtk
|
|
||||||
ARCHIVE DESTINATION lib
|
|
||||||
LIBRARY DESTINATION lib
|
|
||||||
RUNTIME DESTINATION bin
|
|
||||||
)
|
|
||||||
else()
|
else()
|
||||||
find_package(assimp REQUIRED)
|
find_package(assimp REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ The Ubuntu apt repositories contain all the packages we need to build all target
|
|||||||
To build Qtk desktop application with the scene in the screenshots below run the following commands.
|
To build Qtk desktop application with the scene in the screenshots below run the following commands.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt update && sudo apt install cmake build-essential git ccache libxkbcommon-dev libassimp-dev qt6-base-dev qt6-tools-dev zlib1g-dev
|
sudo apt update && sudo apt install cmake build-essential git ccache libxkbcommon-dev libassimp-dev qt6-base-dev qt6-tools-dev
|
||||||
cmake -DQTK_GUI_SCENE=ON -B build
|
cmake -DQTK_GUI_SCENE=ON -B build
|
||||||
cmake --build build
|
cmake --build build
|
||||||
./build/bin/qtk_gui
|
./build/bin/qtk_gui
|
||||||
|
|||||||
2
extern/assimp/assimp
vendored
2
extern/assimp/assimp
vendored
Submodule extern/assimp/assimp updated: e0b52347c6...5d5496f1ad
@@ -152,8 +152,7 @@ class MainWindow : public QMainWindow
|
|||||||
{
|
{
|
||||||
const QUrl file = QFileDialog::getOpenFileName(
|
const QUrl file = QFileDialog::getOpenFileName(
|
||||||
this, tr("Load Model"), QDir::homePath(), tr("Object Files (*.obj)"));
|
this, tr("Load Model"), QDir::homePath(), tr("Object Files (*.obj)"));
|
||||||
getQtkWidget()->getScene()->loadModel(file.fileName().replace(".obj", ""),
|
getQtkWidget()->getScene()->loadModel(file.fileName(), file.toString());
|
||||||
file.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -109,12 +109,11 @@ void main()
|
|||||||
#version 330
|
#version 330
|
||||||
uniform samplerCube uTexture;
|
uniform samplerCube uTexture;
|
||||||
|
|
||||||
in vec3 vTexCoord;
|
varying vec3 vTexCoord;
|
||||||
out vec4 FragColor;
|
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
FragColor = texture(uTexture, vTexCoord);
|
gl_FragColor = texture(uTexture, vTexCoord);
|
||||||
}
|
}
|
||||||
)"
|
)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user