Skip to content

cmake opencv4.12.0 with static openblas lib, opencv_core4120 error compile with message DllMain already defined in openblas.lib(memory.obj) #5511

@xtkwfn

Description

@xtkwfn

environment:
operating system: windows 10.
IDE: visual studio 2022 community.
opencv version opencv-4.12.0.

i use cmake gui build opencv-4.12.0, using the binary openblas0.30.0, cmake unsurport this version. so i build openblas from sorce with static lib, this time cmake can recognise openblas lpack etc..., but when compile using visual studio, the opencv module opencv_core with error message DllMain already defined in openblas.lib(memory.obj), i found dllmain in memory.c of openblas source. so how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions