Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
467453bd
Commit
467453bd
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Resolve
#280
windows gui compilation
parent
8ba77637
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
.gitmodules
+3
-0
3 additions, 0 deletions
.gitmodules
CMakeLists.txt
+32
-6
32 additions, 6 deletions
CMakeLists.txt
applications/gui/CMakeLists.txt
+8
-1
8 additions, 1 deletion
applications/gui/CMakeLists.txt
ext/nanogui
+1
-0
1 addition, 0 deletions
ext/nanogui
with
47 additions
and
9 deletions
.gitlab-ci.yml
+
3
−
2
View file @
467453bd
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
# Perhaps relevant in future https://gitlab.com/gitlab-org/gitlab-ce/issues/47063
# Perhaps relevant in future https://gitlab.com/gitlab-org/gitlab-ce/issues/47063
variables
:
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
CMAKE_ARGS_WINDOWS
:
'
-DCMAKE_GENERATOR_PLATFORM=x64
-DNVPIPE_DIR="D:/Build/NvPipe"
-DEigen3_DIR="C:/Program
Files
(x86)/Eigen3/share/eigen3/cmake"
-DOpenCV_DIR="D:/Build/opencv-4.1.1"
-DCUDA_TOOLKIT_ROOT_DIR="C:/Program
Files/NVIDIA
GPU
Computing
Toolkit/CUDA/v10.1"'
CMAKE_ARGS_WINDOWS
:
'
-DCMAKE_GENERATOR_PLATFORM=x64
-DNVPIPE_DIR="D:/Build/NvPipe"
-DEigen3_DIR="C:/Program
Files
(x86)/Eigen3/share/eigen3/cmake"
-DOpenCV_DIR="D:/Build/opencv-4.1.1"
-DCUDA_TOOLKIT_ROOT_DIR="C:/Program
Files/NVIDIA
GPU
Computing
Toolkit/CUDA/v10.1"'
stages
:
stages
:
...
@@ -50,8 +51,8 @@ webserver-deploy:
...
@@ -50,8 +51,8 @@ webserver-deploy:
-
'
call
"C:/Program
Files
(x86)/Microsoft
Visual
Studio/2017/Community/VC/Auxiliary/Build/vcvars64.bat"'
-
'
call
"C:/Program
Files
(x86)/Microsoft
Visual
Studio/2017/Community/VC/Auxiliary/Build/vcvars64.bat"'
-
mkdir build
-
mkdir build
-
cd build
-
cd build
-
echo cmake %CMAKE_ARGS% %CMAKE_ARGS_WINDOWS% ..
-
echo cmake %CMAKE_ARGS% %CMAKE_ARGS_WINDOWS%
-DNANOGUI_DIR="C:/Program Files (x86)/NanoGUI"
..
-
cmake %CMAKE_ARGS% %CMAKE_ARGS_WINDOWS% ..
-
cmake %CMAKE_ARGS% %CMAKE_ARGS_WINDOWS%
-DNANOGUI_DIR="C:/Program Files (x86)/NanoGUI"
..
-
devenv ftl.utu.fi.sln /build Release
-
devenv ftl.utu.fi.sln /build Release
-
rmdir /q /s "%DEPLOY_DIR%/%CI_COMMIT_REF_SLUG%"
-
rmdir /q /s "%DEPLOY_DIR%/%CI_COMMIT_REF_SLUG%"
-
mkdir "%DEPLOY_DIR%/%CI_COMMIT_REF_SLUG%"
-
mkdir "%DEPLOY_DIR%/%CI_COMMIT_REF_SLUG%"
...
...
This diff is collapsed.
Click to expand it.
.gitmodules
0 → 100644
+
3
−
0
View file @
467453bd
[submodule "ext/nanogui"]
path = ext/nanogui
url = https://github.com/wjakob/nanogui.git
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
32
−
6
View file @
467453bd
...
@@ -17,6 +17,7 @@ option(WITH_FIXSTARS "Use Fixstars libSGM if available" ON)
...
@@ -17,6 +17,7 @@ option(WITH_FIXSTARS "Use Fixstars libSGM if available" ON)
option
(
BUILD_VISION
"Enable the vision component"
ON
)
option
(
BUILD_VISION
"Enable the vision component"
ON
)
option
(
BUILD_RECONSTRUCT
"Enable the reconstruction component"
ON
)
option
(
BUILD_RECONSTRUCT
"Enable the reconstruction component"
ON
)
option
(
BUILD_RENDERER
"Enable the renderer component"
ON
)
option
(
BUILD_RENDERER
"Enable the renderer component"
ON
)
option
(
BUILD_GUI
"Enable the GUI"
ON
)
option
(
BUILD_CALIBRATION
"Enable the calibration component"
OFF
)
option
(
BUILD_CALIBRATION
"Enable the calibration component"
OFF
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
...
@@ -92,14 +93,39 @@ else()
...
@@ -92,14 +93,39 @@ else()
set
(
REALSENSE_LIBRARY
""
)
set
(
REALSENSE_LIBRARY
""
)
endif
()
endif
()
if
(
BUILD_GUI
)
#find_library( NANOGUI_LIBRARY NAMES nanogui libnanogui PATHS ${NANOGUI_DIR} PATH_SUFFIXES lib)
#if (NANOGUI_LIBRARY)
# set(HAVE_NANOGUI TRUE)
# add_library(nanogui UNKNOWN IMPORTED)
# #set_property(TARGET nanogui PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${NANOGUI_EXTRA_INCS})
# set_property(TARGET nanogui PROPERTY IMPORTED_LOCATION ${NANOGUI_LIBRARY})
# message(STATUS "Found NanoGUI: ${NANOGUI_LIBRARY}")
# if(WIN32)
# # Find include
# find_path(NANOGUI_INCLUDE_DIRS
# NAMES nanogui/nanogui.h
# PATHS "C:/Program Files/NanoGUI" "C:/Program Files (x86)/NanoGUI" ${NANOGUI_DIR}
# PATH_SUFFIXES include
# )
# set_property(TARGET nanogui PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${NANOGUI_INCLUDE_DIRS})
# endif()
#endif()
find_library
(
NANOGUI_LIBRARY NAMES nanogui libnanogui
)
if
(
NANOGUI_LIBRARY
)
set
(
HAVE_NANOGUI TRUE
)
set
(
HAVE_NANOGUI TRUE
)
add_library
(
nanogui UNKNOWN IMPORTED
)
#set_property(TARGET nanogui PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${NANOGUI_EXTRA_INCS})
# Disable building extras we won't need (pure C++ project)
set_property
(
TARGET nanogui PROPERTY IMPORTED_LOCATION
${
NANOGUI_LIBRARY
}
)
set
(
NANOGUI_BUILD_SHARED OFF CACHE BOOL
" "
FORCE
)
message
(
STATUS
"Found NanoGUI:
${
NANOGUI_LIBRARY
}
"
)
set
(
NANOGUI_BUILD_EXAMPLE OFF CACHE BOOL
" "
FORCE
)
set
(
NANOGUI_BUILD_PYTHON OFF CACHE BOOL
" "
FORCE
)
set
(
NANOGUI_INSTALL OFF CACHE BOOL
" "
FORCE
)
# Add the configurations from nanogui
add_subdirectory
(
ext/nanogui
)
# For reliability of parallel build, make the NanoGUI targets dependencies
set_property
(
TARGET glfw glfw_objects nanogui PROPERTY FOLDER
"dependencies"
)
endif
()
endif
()
find_library
(
NVPIPE_LIBRARY NAMES NvPipe libNvPipe PATHS
${
NVPIPE_DIR
}
PATH_SUFFIXES lib
)
find_library
(
NVPIPE_LIBRARY NAMES NvPipe libNvPipe PATHS
${
NVPIPE_DIR
}
PATH_SUFFIXES lib
)
...
...
This diff is collapsed.
Click to expand it.
applications/gui/CMakeLists.txt
+
8
−
1
View file @
467453bd
...
@@ -20,10 +20,17 @@ if (HAVE_OPENVR)
...
@@ -20,10 +20,17 @@ if (HAVE_OPENVR)
list
(
APPEND GUISRC
"src/vr.cpp"
)
list
(
APPEND GUISRC
"src/vr.cpp"
)
endif
()
endif
()
# Various preprocessor definitions have been generated by NanoGUI
add_definitions
(
${
NANOGUI_EXTRA_DEFS
}
)
# On top of adding the path to nanogui/include, you may need extras
include_directories
(
${
NANOGUI_EXTRA_INCS
}
)
add_executable
(
ftl-gui
${
GUISRC
}
)
add_executable
(
ftl-gui
${
GUISRC
}
)
target_include_directories
(
ftl-gui PUBLIC
target_include_directories
(
ftl-gui PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
PROJECT_SOURCE_DIR
}
/ext/nanogui/include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:include>
PRIVATE src
)
PRIVATE src
)
...
@@ -32,6 +39,6 @@ target_include_directories(ftl-gui PUBLIC
...
@@ -32,6 +39,6 @@ target_include_directories(ftl-gui PUBLIC
#endif()
#endif()
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries
(
ftl-gui ftlcommon ftlctrl ftlrgbd ftlstreams ftlrender Threads::Threads
${
OpenCV_LIBS
}
${
OPENVR_LIBRARIES
}
glog::glog ftlnet nanogui
GL
)
target_link_libraries
(
ftl-gui ftlcommon ftlctrl ftlrgbd ftlstreams ftlrender Threads::Threads
${
OpenCV_LIBS
}
${
OPENVR_LIBRARIES
}
glog::glog ftlnet nanogui
${
NANOGUI_EXTRA_LIBS
}
)
This diff is collapsed.
Click to expand it.
nanogui
@
e9ec8a1a
Subproject commit e9ec8a1a9861cf578d9c6e85a6420080aa715c03
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment