forked from simonfuhrmann/mve
-
Notifications
You must be signed in to change notification settings - Fork 0
update #1
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
Open
Geo-fortune
wants to merge
65
commits into
Geo-fortune:master
Choose a base branch
from
simonfuhrmann:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
update #1
Conversation
This file contains hidden or 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
fix not supported file system cases
Added reading little endian functions
Support for importing Colmap SfM models
Extension of Colmap Importer
See issue #515 instead of 2*angle we actually need angle^2.
Fix importer intrinsics
Colmap: improve name key
Minor fix on line 54
add feature see check
Fix counting deleted tracks, closes #528
SFM: Fix typo in triangulate.cc
Fix Travis build issues
Fixes compilation for CPUs that don't support SSE2/3. Fixes #572
This rename prevents an unintended include of util/strings.h from the C library on some system comfigurations. This fixes #569.
gtest, libjpeg/libjpeg-turbo, libpng and libtiff provide pkg-config files which make compiling and linking against them easier. This is needed for running CI on macOS with GitHub Actions in a later commit.
OpenGL on macOS was deprecated in macOS 10.14 [1]. Silence the warnings because the OpenGL code won't be replaced anytime soon if at all. [1] https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_intro/opengl_intro.html
GoogleTest requires C++14 since 1.13.0 (see release notes [1]). This is required for running CI on macOS with GitHub Actions in a later commit because Homebrew will install GoogleTest 1.15.2 [2]. [1] https://github.com/google/googletest/releases/tag/v1.13.0 [2] https://formulae.brew.sh/formula/googletest
While setting up GitHub Actions, SurfTest.TestHaarWaveletsLargerKernel
failed in the following CI environments:
- clang version 10.0.0-4ubuntu, Ubuntu 20.04, x86_64
- Ubuntu clang version 14.0.0-1ubuntu1.1, Ubuntu 22.04, x86_64
- Ubuntu clang version 18.1.3 (1ubuntu1), Ubuntu 24.04, x86_64
- Apple clang 14.0.0 (clang-1400.0.29.202), macOS 12, x86_64
- Apple clang 15.0.0 (clang-1500.0.40.1), macOS 13, x86_64
Output of the Ubuntu 20.04 and 22.04 CI runners that failed:
------------------------------------------------------------
[ RUN ] SurfTest.TestHaarWaveletsLargerKernel
sfm/gtest_surf.cc:151: Failure
Expected equality of these values:
6.0f
Which is: 6
dy
Which is: 6
[ FAILED ] SurfTest.TestHaarWaveletsLargerKernel (0 ms)
Output of the Ubuntu 24.04, macOS 12 and 13 CI runners that failed:
-------------------------------------------------------------------
[ RUN ] SurfTest.TestHaarWaveletsLargerKernel
sfm/gtest_surf.cc:151: Failure
Expected equality of these values:
6.0f
Which is: 6
dy
Which is: 6.00000048
[ FAILED ] SurfTest.TestHaarWaveletsLargerKernel (0 ms)
Fixed by replacing EXPECT_EQ with EXPECT_FLOAT_EQ which verifies that
the values are approximately equal within 4 ULPs [1].
[1] https://google.github.io/googletest/reference/assertions.html#floating-point
Behavior of parsing doubles from streams is different in LLVM's libc++
compared to GCC's libstdc++, see [1]. This causes
StringTest.StringConversionTest to fail when compiling against LLVM's
libc++:
[ RUN ] StringTest.StringConversionTest
util/gtest_string.cc:48: Failure
Expected equality of these values:
10.1234
util::string::convert<double>("10.1234asfd", false)
Which is: 0
[ FAILED ] StringTest.StringConversionTest (0 ms)
This mainly affects macOS because it defaults to libc++.
The behavior of libstdc++ is what makes most sense here because
std::stringstream::operator>>() will call std::strtod() internally
which will extract 10.1234 from the string.
This is fixed by implementing a workaround for libc++.
[1] https://www.github.com/llvm/llvm-project/issues/18156
The Travis CI build in this repository no longer works but GitHub provides its own CI/CD infrastructure which is free for public repositories, quote from [1]: "GitHub Actions usage is free for standard GitHub-hosted runners in public repositories [...]" The list of standard GitHub-hosted runners for public repositories can be found at the following URL: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories [1] https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions
Travis CI has been replaced by GitHub Actions.
Apparently, vsprintf() is deprecated on macOS. Fixes the following
compiler warning when compiling with Apple clang 14.0.0 (clang-1400.0.29.202)
on macOS 12:
clang++ -Wall -Wextra -Wundef -pedantic -march=native -funsafe-math-optimizations -fno-math-errno -std=c++14 -g -O3 -pthread -DGL_SILENCE_DEPRECATION=1 -fPIC -I../../libs `pkg-config --cflags libjpeg` `pkg-config --cflags libpng` `pkg-config --cflags libtiff-4` -c -o image_io.o image_io.cc
image_io.cc:634:7: warning: 'vsprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Wdeprecated-declarations]
::vsprintf(msg, fmt, ap);
^
/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:207:1: note: 'vsprintf' has been explicitly marked deprecated here
Found by Apple clang version 14.0.0 (clang-1400.0.29.202) on macOS 12: bundle_io.cc:743:9: warning: variable 'num_points_3d' set but not used [-Wunused-but-set-variable]
…dNormal()
Found by Clang 17.0.6 on Gentoo Linux:
patch_optimization.cc:316:17: warning: variable 'row' set but not used [-Wunused-but-set-variable]
316 | std::size_t row = 0;
| ^
Replace Travis CI with GitHub Actions
Use sizeof() instead of hardcoding destination buffer size when calling vsnprintf(). Fixes: 247ea30 ("MVE: Replace vsprintf() with vsnprintf()")
…obust MVE: Don't hardcode vsnprintf() destination buffer size
The C++ version of MVE was raised to C++14 in a previous commit and UMVE was missed. Fixes: 3879e44 ("Raise C++ version to C++14")
UMVE: Raise C++ version to C++14
The macOS 12 CI environment has apparently been deprecated since 3rd December 2024, see: actions/runner-images#10721
Update macOS CI
Implemented according to official glTF 2.0 spec: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html Tested by validating the resulting GLB with glTF Validator: https://github.khronos.org/glTF-Validator/ Fixes #571
MVE: Implement Binary glTF 2.0 mesh export
Switch to C++17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
update