-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build #78
Merged
Merged
Windows build #78
Changes from 68 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
7642122
[cmake] add NOMINMAX flag for windows build
simogasp 990f6a9
[utils] update pcg to a recent version MSVC compliant
simogasp 59d32b3
[cctag] unused includes
simogasp 79d621d
[utils] new definition for ssize_t
simogasp 1769949
[cctag] fix float for hardcoded values
simogasp 06746b3
[utils] win does not support "not"
simogasp 4d0b39c
[c++] variable size array not standard (only gcc/clang?)
simogasp b7c711b
[cctag] use boost for M_PI
simogasp c56da4c
[cctag] std::numeric_limits<float>::max() instead of arbitrary value
simogasp 36ee94f
[cctag] type coherence
simogasp 68cb46b
[cctag] using std c++ exceptions
simogasp 22ed609
[cctag] casting
simogasp 260595b
[utils] missing return statement
simogasp 750f77a
[cctag] using boost filesystem instead of posix to create directories
simogasp 5a38092
[cctag] using struct for params, they were mixed between hpp and cpp
simogasp fb796ec
[applications] using string() instead of native()
simogasp 7f97e00
[applications] CmdLine using boost instead gnu getopt
simogasp 444cf20
[cmake] add option to build the application
simogasp 3a54fc7
[ci] test build on appveyor
simogasp 41c9ff1
[doc] update dependencies
simogasp 2804564
[applications] missing return
simogasp c51fc04
[cmake] pthread and dl only for *nix
simogasp cbaa9fb
[cuda] "not" is not supported
simogasp cc49a54
[cuda] removed unused *nix header
simogasp f16c560
fixup! [cmake] pthread and dl only for *nix
simogasp 09f59c3
[cctag] better refactoring
simogasp 24de6a2
[ci] enable apps on windows
simogasp 1c43ccb
[ci] test boost on vcpkg
simogasp a168b06
Merge branch 'develop' into devWindozeFixes
fabiencastan e1d58cd
Merge remote-tracking branch 'origin/develop' into devWindozeFixes
yann-lty 04e0fd8
minor syntax fix: remove "not" keyword
fabiencastan 3069ab8
ssize_t compatibility with MSVC
fabiencastan 4295529
Replace boost thread by std thread
fabiencastan c934a11
Compatibility: use std::rand
fabiencastan 086d9a5
minor includes clean
fabiencastan 560850d
[windows] new cctag_cuda_runtime.h header to set define for compatibi…
fabiencastan 32c094f
[windows] workaround for MSVC compatibility
fabiencastan d1e18a2
[utils] replace custom code for backtrace with boost::stacktrace
fabiencastan 0efae48
[cmake] workaround for TBB build error on windows
fabiencastan e4b3b88
[travis] update cmake version to 3.14.4
fabiencastan 30d09fc
[cuda] always use cctag_cuda_runtime.h
fabiencastan 9f31170
[cuda] define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS on linux
fabiencastan 02b0fc1
[cctag] minor include fixes
fabiencastan 48ff995
[cmake] change boost::stacktrace link on linux
fabiencastan 60588ca
[travis] update dependencies versions
fabiencastan a224fe8
[travis] use boost 1.70
fabiencastan 4f4005c
[travis] enable build_shared_libs
fabiencastan b1c940e
Update deprecated boost include
fabiencastan e631622
[cmake] same check for boost in top level and app folder
fabiencastan b2b8b1a
[travis] build lib without apps first
fabiencastan 8525049
[cmake] fix minimum cmake version
fabiencastan ae285e9
[cmake] print boost variables
fabiencastan f6a5621
[build] replace usage of "not" keyword for windows compatibility
fabiencastan 6f653cd
[build] windows compatibility: use VirtualLock as an equivalent to mlock
fabiencastan 88697d6
[cmake] Boost 1.70 compatibility workaround
fabiencastan 2aa76ed
[doc] fix merge error in INSTALL.md
fabiencastan 3b8fea2
[travis] add CTEST_OUTPUT_ON_FAILURE
fabiencastan 237727d
[cmake] use boost TARGETS
fabiencastan 57033b7
[cmake] only use boost TARGETS
fabiencastan d2a34cc
[cmake] remove undefined boost targets
fabiencastan 0331bec
[cmake] use only boost TARGETS
fabiencastan 0e9e8ed
[test] disable test_throw_repeated_points for now
fabiencastan eb9f8c8
[cmake] fix boost targets in applications
fabiencastan b9dce30
[cmake] fix USE_DEVIL define
fabiencastan a480b9a
Replace deprecated boost::timer
fabiencastan 93dc0eb
[cmake] add missing dep
fabiencastan 8fbd8bf
[travis] check build of applications in the global context
fabiencastan b9106c5
[doc] Update INSTALL.md requirements
fabiencastan 2b8a942
[doc] Readme: add Simone Gasparini to authors list
fabiencastan 678dded
[doc] Update INSTALL.md: Cuda is optional and GPU part is problematic…
fabiencastan ee16bc5
Use throw instead of BOOST_THROW_EXCEPTION
fabiencastan cdd97d2
[cmake] enable exception handling on windows
fabiencastan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,58 @@ | ||
version: '1.0.{build}' | ||
|
||
image: Visual Studio 2015 | ||
|
||
platform: | ||
- x64 | ||
|
||
configuration: | ||
- Release | ||
|
||
install: | ||
# - cmd: >- | ||
# call cudaInstallAppveyor.cmd | ||
|
||
- vcpkg upgrade --no-dry-run | ||
- vcpkg list | ||
- vcpkg install | ||
boost-accumulators | ||
boost-algorithm | ||
boost-container | ||
boost-date-time | ||
boost-exception | ||
boost-filesystem | ||
boost-iterator | ||
boost-lexical-cast | ||
boost-math | ||
boost-mpl | ||
boost-multi-array | ||
boost-ptr-container | ||
boost-program-options | ||
boost-serialization | ||
boost-spirit | ||
boost-static-assert | ||
boost-test | ||
boost-thread | ||
boost-throw-exception | ||
boost-timer | ||
boost-type-traits | ||
boost-unordered | ||
opencv | ||
tbb | ||
eigen3 | ||
--triplet %PLATFORM%-windows | ||
- vcpkg list | ||
|
||
before_build: | ||
- md build | ||
- cd build | ||
- cmake -G "Visual Studio 14 2015" -A x64 -T v140,host=x64 -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DBUILD_APPS:BOOL=ON -DWITH_CUDA:BOOL=OFF -DCCTAG_SERIALIZE:BOOL=ON -DVISUAL_DEBUG:BOOL=ON .. | ||
- ls -l | ||
|
||
build: | ||
verbosity: detailed | ||
project: $(APPVEYOR_BUILD_FOLDER)\build\CCTag.sln | ||
parallel: true | ||
|
||
cache: | ||
c:\tools\vcpkg\installed\ |
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,64 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
[ -z "${TRAVIS_BUILD_DIR}" ] && echo "No TRAVIS_BUILD_DIR env variable, use current folder." && export TRAVIS_BUILD_DIR=$PWD | ||
|
||
# Same as travis_retry: | ||
# https://raw.githubusercontent.com/tomjaguarpaw/neil/master/travis.sh | ||
retry() { | ||
local result=0 | ||
local count=1 | ||
while [ $count -le 3 ]; do | ||
[ $result -ne 0 ] && { | ||
echo -e "\n${ANSI_RED}The command \"$@\" failed. Retrying, $count of 3.${ANSI_RESET}\n" >&2 | ||
} | ||
"$@" | ||
result=$? | ||
[ $result -eq 0 ] && break | ||
count=$(($count + 1)) | ||
sleep 1 | ||
done | ||
|
||
[ $count -gt 3 ] && { | ||
echo -e "\n${ANSI_RED}The command \"$@\" failed 3 times.${ANSI_RESET}\n" >&2 | ||
} | ||
|
||
return $result | ||
} | ||
|
||
# Check if the folder exists and is non empty | ||
folder_not_empty() | ||
{ | ||
if [ -d "$1" ] && [ "$(ls -A $1)" ]; then | ||
# The folder exist and is non empty | ||
return 0 | ||
fi | ||
return 1 | ||
} | ||
|
||
# Check if the folder doesn't exist or is empty | ||
folder_empty() | ||
{ | ||
if [ -d "$1" ] && [ "$(ls $1)" ]; then | ||
return 1 | ||
fi | ||
# The folder doesn't exist or is empty | ||
return 0 | ||
} | ||
|
||
# download_files_from_tar http://path/to/archive.tar.gz /path/to/source | ||
download_files_from_tar() | ||
{ | ||
mkdir --parent "$2" | ||
retry wget --no-check-certificate --quiet -O - "$1" | tar --strip-components=1 -xz -C "$2" | ||
return 0 | ||
} | ||
|
||
# CMAKE | ||
export CMAKE_VERSION_SHORT=3.14 | ||
export CMAKE_VERSION=3.14.5 | ||
export CMAKE_URL="https://cmake.org/files/v${CMAKE_VERSION_SHORT}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz" | ||
export CMAKE_ROOT="${TRAVIS_BUILD_DIR}/cmake-${CMAKE_VERSION}" | ||
export CMAKE_INSTALL="${CMAKE_ROOT}/install" | ||
|
||
export PATH="${CMAKE_INSTALL}/bin:${PATH}" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.14 is overkilling, 3.5 is the first one with Boost:boost targets