Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce1d840

Browse files
committed
Fix: compilation Issue on ARM64 (msys2 clangarm)
Added a definition for M_PI in the code to resolve a compilation error encountered when building OpenCV on the MSYS2 environment. The M_PI constant was not defined, causing the compilation to fail.
1 parentbe00247 commitce1d840

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎3rdparty/carotene/CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,9 @@ if(WITH_NEON)
5252
endif()
5353
endif()
5454

55+
if(MINGW)
56+
target_compile_definitions(carotene_objsPRIVATE"-D_USE_MATH_DEFINES=1")
57+
endif()
58+
5559
# we add dummy file to fix XCode build
5660
add_library(caroteneSTATIC${OPENCV_3RDPARTY_EXCLUDE_FROM_ALL}"$<TARGET_OBJECTS:carotene_objs>""${CAROTENE_SOURCE_DIR}/dummy.cpp")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp