-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allows to build QT from the same toolchain than the executable, and not rely on the system libraries. - This fixes incompatible linking symbols in case the user needs to compile with older versions of his compiler to access CUDA features.
- Loading branch information
Showing
10 changed files
with
489 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,82 @@ | ||
[submodule "vendor/stb"] | ||
path = vendor/stb | ||
url = https://github.com/nothings/stb | ||
ignore = all | ||
|
||
[submodule "vendor/googletest"] | ||
path = vendor/googletest | ||
url = https://github.com/google/googletest | ||
ignore = all | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/glm"] | ||
path = vendor/glm | ||
url = https://github.com/g-truc/glm | ||
ignore = all | ||
branch = v1.0.1 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/boost"] | ||
path = vendor/boost | ||
url = https://github.com/boostorg/boost | ||
ignore = all | ||
branch = boost-1.86.0 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/assimp"] | ||
path = vendor/assimp | ||
url = https://github.com/assimp/assimp | ||
ignore = all | ||
branch = v5.4.2 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/googletest"] | ||
path = vendor/googletest | ||
url = https://github.com/google/googletest | ||
ignore = all | ||
branch = v1.15.2 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/openexr"] | ||
path = vendor/openexr | ||
url = https://github.com/AcademySoftwareFoundation/openexr | ||
ignore = all | ||
branch = v3.2.4 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/zlib"] | ||
path = vendor/zlib | ||
url = https://github.com/madler/zlib | ||
ignore = all | ||
branch = v1.3.1 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/imath"] | ||
path = vendor/imath | ||
url = https://github.com/AcademySoftwareFoundation/Imath | ||
ignore = all | ||
branch = v3.1.9 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/libdeflate"] | ||
path = vendor/libdeflate | ||
url = https://github.com/ebiggers/libdeflate | ||
ignore = all | ||
url = https://github.com/ebiggers/libdeflate | ||
branch = v1.9 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/SDL_image"] | ||
path = vendor/SDL_image | ||
url = https://github.com/libsdl-org/SDL_image | ||
branch = SDL2 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/SDL"] | ||
path = vendor/SDL | ||
url = https://github.com/libsdl-org/SDL | ||
branch = SDL2 | ||
ignore = all | ||
fetchRecurseSubmodules = true | ||
|
||
[submodule "vendor/qt"] | ||
path = vendor/qt | ||
url = https://code.qt.io/qt/qt5.git | ||
branch = 6.8.0 | ||
ignore = all | ||
fetchRecurseSubmodules = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Ninja (only for building QT6 from source) | ||
QT6 | ||
GCC (version depends on desired cuda version if gpgpu used) | ||
Opengl | ||
Glew | ||
Cuda (if AXOMAE_USE_CUDA set to ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
set(QT_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/vendor/qt) | ||
set(QT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/vendor/qt) | ||
set(QTBASE_BUILD_DIR ${QT_BUILD_DIR}/qtbase) | ||
set(QTBASE_SOURCE_DIR ${QT_SOURCE_DIR}/qtbase) | ||
|
||
message(STATUS "Building QT from source : ${QT_SOURCE_DIR}") | ||
message(STATUS "Build directory is : ${QT_BUILD_DIR}") | ||
|
||
message(STATUS "Initializing qt repository ...") | ||
|
||
message(STATUS "Configuring qtbase...") | ||
if(NOT EXISTS "${QT_BUILD_DIR}") | ||
file(MAKE_DIRECTORY ${QT_BUILD_DIR}) | ||
endif() | ||
execute_process(COMMAND bash ${QT_SOURCE_DIR}/configure | ||
-submodules qtbase | ||
-prefix ${QT_BUILD_DIR} | ||
|
||
WORKING_DIRECTORY ${QT_BUILD_DIR} | ||
ERROR_VARIABLE ERROR_MSG | ||
) | ||
|
||
message(STATUS ${ERROR_MSG}) | ||
|
||
message(STATUS "Building qtbase ...") | ||
execute_process(COMMAND cmake --build . --parallel 4 | ||
WORKING_DIRECTORY ${QT_BUILD_DIR} | ||
) | ||
|
||
message(STATUS "Installing qtbase ...") | ||
execute_process(COMMAND cmake --install . | ||
WORKING_DIRECTORY ${QT_BUILD_DIR} | ||
) | ||
|
||
|
||
list(APPEND CMAKE_MODULE_PATH ${QT_BUILD_DIR}/lib/cmake) | ||
list(APPEND CMAKE_PREFIX_PATH ${QT_BUILD_DIR}/lib/cmake) | ||
message(STATUS "Setting up local qt build path ...") | ||
find_package(Qt6 | ||
COMPONENTS Gui OpenGLWidgets Widgets | ||
REQUIRED | ||
PATHS ${CMAKE_PREFIX_PATH} | ||
CONFIG | ||
NO_DEFAULT_PATH | ||
) | ||
|
||
message(STATUS "Qt6_DIR: ${Qt6_DIR}") | ||
message(STATUS "Qt6Gui_DIR: ${Qt6Gui_DIR}") | ||
message(STATUS "Qt6OpenGLWidgets_DIR: ${Qt6OpenGLWidgets_DIR}") | ||
message(STATUS "Qt6Widgets_DIR: ${Qt6Widgets_DIR}") | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.