Skip to content
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

Introduce visp namespace to protect ViSP classes #1410

Merged
merged 70 commits into from
Jun 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
796cfac
Start introduction of visp namespace
fspindle May 21, 2024
66eb0bb
[WIP] Put the to and from json in the global namespace
May 22, 2024
785de1f
[WIP] Added namespace in core/image
May 22, 2024
ada9e77
[WIP] Added namespace in vpMunkres
May 22, 2024
c6189b0
[CORE] visp_core compile in standalone using 'make visp_core' command
May 22, 2024
9edcb33
[TEST] In visp_core, use 'using namespace VISP_NAMESPACE_NAME;' in th…
May 22, 2024
024272d
[WIP] Worked on the detection module. There might be a problem with t…
May 22, 2024
10fc3d5
[WIP] visp_module io compiles
May 23, 2024
d2ca3ae
[WIP] Moved to_json from_json and operator<< of vpDetectorDNNOpenCV i…
May 23, 2024
d312bcf
[WIP] visp_gui compiles
May 23, 2024
d05362a
[WIP] visp_visual_features visp_me visp_tt visp_tt_mi visp_vision com…
May 23, 2024
ce67c68
[WIP] visp_blob compile
May 23, 2024
bb7d93c
[WIP] visp_klt compiles
May 23, 2024
c4079d8
[WIP] visp_vs compiles
May 23, 2024
d3b2501
[WIP] visp_ar compiles
May 23, 2024
b0563c2
[CORE] Moved back the operators in the visp workspace (see https://st…
May 27, 2024
ea80952
[FIX] Fixed compilation problem in vpDetectorDNN: from_json and to_js…
May 27, 2024
f54b7ee
[CLEAN] Fix a typo in vpCHT
May 27, 2024
b932429
[CORE] visp_mbt now compiles + [FIX] Fix some mistakes in core and tr…
May 27, 2024
07705aa
[CORE] visp_modules compiles when using ENABLE_VISP_NAMESPACE=ON
May 27, 2024
13186d6
[TEST][FIX] Fixed some missing using namespace in the tests
May 27, 2024
1a8469e
[FIX] Various fixes related to VISP_BUILD_DEPRECATED_FUNCTIONS
May 27, 2024
ffdf6fe
[WIP] With -DENABLE_VISP_NAMESPACE=OFF, visp_tutorials compiles, wit…
May 27, 2024
3fc3e54
[TUTO][FIX] Fixed forgotten tutorial/robot folder
May 27, 2024
3877225
[TUTO][WIP] Temporary fix for the compilation problem of tutorial/vis…
May 27, 2024
eb1e074
Merge branch 'master' into feat_visp_namespace
fspindle May 27, 2024
a004712
[TUTO][FIX] Fix to_json compilation error in tutorial-ibvs-4pts-json
May 28, 2024
79533c7
[CORE] Added the namespace macros in the demo folder
May 28, 2024
46a8096
[CORE] Added namespace macro in apps folder
May 28, 2024
9342302
[EXAMPLE] Addedf namespace macro in the example folder
May 28, 2024
010c8af
[FIX] Fix vpDisplay is an incomplete type
May 28, 2024
f7e4d2a
[CORE] Added a macro that replaces the #ifdef ENABLE_VISP_NAMESPACE n…
May 28, 2024
89feeb8
[FIX] Fix undefined symbol void swap(vpDetectorAprilTag &, vpDetector…
May 28, 2024
f98d63c
[CI] Pull latest stable version of VTK in ubuntu-dep-src CI
May 29, 2024
fa782ab
Fix cmake when mbt module disabled
fspindle May 30, 2024
c4a4090
[FIX] Create an empty namespace in vpConfig to ensure that 'using nam…
May 31, 2024
4017173
[FIX][CLEAN] Corrected some operators, clean some others and fix Hell…
May 31, 2024
f2cd27d
Add this tutorial as a doxygen example
fspindle May 31, 2024
14850e8
Mute warnings due to PCL and librealsense 3rd parties on macOS Sonoma…
fspindle May 31, 2024
63373bd
Fix misra C++ quality rules around old cast and remove useless limits…
fspindle Jun 4, 2024
264f9f8
[FIX] Forgot to include vpConfig
Jun 4, 2024
30eefc9
[CLEAN] Claened some files: reordered include, removed useless VISP_N…
Jun 4, 2024
14e5d4a
[FIX] Fixed wrongly placed END_VISP_NAMESPACE
Jun 4, 2024
90136e6
[FIX] Moved wrongly placed END_VISP_NAMESPACE + include forgotten vpC…
Jun 4, 2024
7e52eff
[CLEAN] Moved file description at the beginning of the file
Jun 4, 2024
8448332
Introduce new misra c++ quality fixes
fspindle Jun 4, 2024
567441d
[FIX] Fix compilation error on Linux due to cpu_x86_Linux.ipp
Jun 4, 2024
b92de50
[CORE] CMake option WITH_MINIZ permits to deactivate npz I/O function…
Jun 4, 2024
5c5f15a
[FIX] Added incldue of limits required for std::numeric_limits
Jun 4, 2024
af0db83
Fix namespace usage
fspindle Jun 5, 2024
d2feb5d
Improve WITH_MINIZ usage
fspindle Jun 5, 2024
7207004
[FIX] Fix cpuid for Windows
Jun 5, 2024
16a2b57
[FIX] Fix compilation error for windows
Jun 5, 2024
a2aba12
[CORE] Made vp an alias for visp namespace
Jun 5, 2024
186d0fa
[FIX] Added incldue of limits required for std::numeric_limits
Jun 4, 2024
0a1c681
[FIX][TUTO] Fixed compilation of apriltag tutorial
Jun 5, 2024
883785c
[FIX] Fix cpuid for Windows
Jun 5, 2024
cf97506
[FIX] Fix compilation error for windows
Jun 5, 2024
8cfa37e
Merge branch 'feat_visp_namespace' into feat_disable_miniz
Jun 6, 2024
c28e7eb
Fix to consider MSVC_VERSION=1940
fspindle Jun 6, 2024
7d63df1
Add missing quotes in cxx flags used to mute warnings
fspindle Jun 6, 2024
7fb0eb8
Fix uint usage in __cpuidex()
fspindle Jun 6, 2024
2d1d13d
Merge branch 'feat_visp_namespace' into feat_disable_miniz
fspindle Jun 6, 2024
076f306
Fix MSVC 1940 version detection
fspindle Jun 6, 2024
7c57604
Merge branch 'feat_visp_namespace' into feat_disable_miniz
fspindle Jun 6, 2024
f95b137
Fix build under windows when visp namespace enabled
fspindle Jun 7, 2024
b9b482d
[CLEAN] Removed space before */ in the headers to avoid wrong indenta…
Jun 10, 2024
7f25066
Workaround for github action issue when using std::mutex by removing …
fspindle Jun 10, 2024
b567f44
Merge pull request #3 from fspindle/feat_disable_miniz
fspindle Jun 10, 2024
fd63541
Merge pull request #4 from fspindle/fix_indent
fspindle Jun 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing quotes in cxx flags used to mute warnings
  • Loading branch information
fspindle committed Jun 6, 2024
commit 7d63df1266704aef543c9e8e80aac0725cf7d750
96 changes: 48 additions & 48 deletions modules/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,88 +132,88 @@ configure_file(test/force-torque/configurationSettings.ini configurationSettings

if(USE_FLYCAPTURE)
# Add specific build flag to turn off warnings coming from PointGrey flycapture 3rd party
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unknown-pragmas)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-ignored-qualifiers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unknown-pragmas")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-ignored-qualifiers")
endif()

if(USE_PYLON)
# Add specific build flag to turn off warnings coming from Basler
# pylon headers
if(MSVC)
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4244)
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4267)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4244")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4267")
else()
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unknown-pragmas)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-overloaded-virtual)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-copy)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-variable)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unknown-pragmas")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-overloaded-virtual")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-copy")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-variable")
endif()
endif()

if(USE_REALSENSE)
# Add specific build flag to turn off warnings coming from RealSense 3rd party
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-strict-aliasing)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-pessimizing-move)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-strict-aliasing")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-pessimizing-move")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
endif()

if(USE_REALSENSE2)
if(UNIX)
# Add specific build flag to turn off warnings coming from PCL 3rd party
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-reorder)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-function)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-compare)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-overloaded-virtual)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-declarations)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-inconsistent-missing-override)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-conversion)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-float-equal)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-pessimizing-move)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-comment)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-ignored-qualifiers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-copy)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unqualified-std-cast-call)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-missing-field-initializers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-reorder")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-function")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-compare")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-overloaded-virtual")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-declarations")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-inconsistent-missing-override")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-conversion")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-float-equal")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-pessimizing-move")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-comment")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-ignored-qualifiers")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-copy")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unqualified-std-cast-call")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-missing-field-initializers")
else()
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4244)
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4267)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4244")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4267")
endif()
endif()

if(USE_LIBFREENECT)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
endif()

if(USE_UEYE)
if(UNIX)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-declarations)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-declarations")
else()
list(APPEND CXX_FLAGS_MUTE_WARNINGS /wd4996)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "/wd4996")
endif()
endif()

if(USE_OPENCV)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-float-equal)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-float-equal")
endif()

if(USE_OCCIPITAL_STRUCTURE)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-reorder)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-function)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-unused-parameter)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-compare)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-overloaded-virtual)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-ignored-qualifiers)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-maybe-uninitialized)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-deprecated-declarations)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-inconsistent-missing-override)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-sign-conversion)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-float-equal)
list(APPEND CXX_FLAGS_MUTE_WARNINGS -Wno-pessimizing-move)
endif()

vp_set_source_file_compile_flag(src/force-torque/vpForceTorqueAtiNetFTSensor.cpp -Wno-strict-aliasing)
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-reorder")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-function")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-unused-parameter")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-compare")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-overloaded-virtual")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-ignored-qualifiers")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-maybe-uninitialized")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-deprecated-declarations")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-inconsistent-missing-override")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-sign-conversion")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-float-equal")
list(APPEND CXX_FLAGS_MUTE_WARNINGS "-Wno-pessimizing-move")
endif()

vp_set_source_file_compile_flag(src/force-torque/vpForceTorqueAtiNetFTSensor.cpp "-Wno-strict-aliasing")

if(CXX_FLAGS_MUTE_WARNINGS)
# Add specific build flag to turn off warnings
Expand Down
Loading