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

Appearance settings

Update CMakeLists.txt to omit removed Flag DEMANGLE_SUPPORT in Emscripten 4.0.6 #27350

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
wants to merge 1 commit into
base: 4.x
Choose a base branch
Loading
from

Conversation

def-roth
Copy link

Flag DEMANGLE_SUPPORT was deprecated in 3.1.54 and removed in 4.0.6. Emscripten versions after 4.0.6 must not include the flag when building.

Issue
emscripten-core/emscripten#24252

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Flag DEMANGLE_SUPPORT was deprecated in 3.1.54 and removed in 4.0.6. For newer versions of emscripten, the flag must be removed to work.
@asmorkalov asmorkalov changed the base branch from master to 4.x May 23, 2025 04:51
@asmorkalov asmorkalov self-assigned this May 23, 2025
@asmorkalov asmorkalov added this to the 4.12.0 milestone May 23, 2025
@@ -71,7 +71,6 @@ endif()

set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s TOTAL_MEMORY=128MB -s WASM_MEM_MAX=1GB -s ALLOW_MEMORY_GROWTH=1")
set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s MODULARIZE=1")
set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s EXPORT_NAME=\"'cv'\" -s DEMANGLE_SUPPORT=1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually 2 flags are removed in this patch.
What is the problem with EXPORT_NAME?

@asmorkalov
Copy link
Contributor

@def-roth Friendly reminder.

1 similar comment
@asmorkalov
Copy link
Contributor

@def-roth Friendly reminder.

@asmorkalov asmorkalov modified the milestones: 4.12.0, 4.13.0 Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.