Skip to content

Can't get static build to work on windows using GitHub Actions #1360

@sandalwoodbox

Description

@sandalwoodbox

I'm having some trouble getting a static build of gocv to work on a Windows GitHub action. I'm getting a large number of errors when I try to verify the build like:

 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\opencv\build\install\x64\mingw\staticlib\libopencv_dnn4120.a(caffe_importer.cpp.obj):caffe_importer:(.text$_ZN2cv3dnn14dnn4_v2025061912_GLOBAL__N_113CaffeImporter11populateNetENS1_3NetE+0x17c6): undefined reference to `google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Get(int) const'

Full logs here: https://github.com/sandalwoodbox/go-cleancredits/actions/runs/20738731088/job/59541188871

Also uploading since I think that expires eventually. 0_build.txt

GHA configuration is here: https://github.com/sandalwoodbox/go-cleancredits/blob/e58575d3d740c69c6b5fa0a54bea7ad181737d6c/.github/workflows/build-windows.yml

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