Skip to content

cv_vrndq_u32_f32 not defined #29

@fengdyli

Description

@fengdyli

When using the latest version of the code to compile on a Mac system, I encountered the problem of use of undeclared identifier 'cv_vrndq_u32_f32'. I can't find the definition of this function in the code. Do I need to link to other libraries?

The only change was to set LYCON_BUILD_PYTHON option in cmake to off.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -I/Users/lifengdy/Desktop/project/lycon/src -I/opt/homebrew/include -std=c++11 -march=native -O3 -fPIC -DNDEBUG -pthread -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -fcolor-diagnostics -MD -MT CMakeFiles/lycon.dir/src/lycon/mat/convert.cc.o -MF CMakeFiles/lycon.dir/src/lycon/mat/convert.cc.o.d -o CMakeFiles/lycon.dir/src/lycon/mat/convert.cc.o -c /Users/lifengdy/Desktop/project/lycon/src/lycon/mat/convert.cc
/Users/lifengdy/Desktop/project/lycon/src/lycon/mat/convert.cc:289:41: error: use of undeclared identifier 'cv_vrndq_u32_f32'; did you mean 'vcvtnq_u32_f32'?
  289 |                 vcombine_u16(vqmovn_u32(cv_vrndq_u32_f32(v_dst_0)), vqmovn_u32(cv_vrndq_u32_f32(v_dst_1)));
      |                                         ^~~~~~~~~~~~~~~~
      |                                         vcvtnq_u32_f32
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include/arm_neon.h:40729:17: note: 'vcvtnq_u32_f32' declared here
 40729 | __ai uint32x4_t vcvtnq_u32_f32(float32x4_t __p0) {
       |                 ^
/Users/lifengdy/Desktop/project/lycon/src/lycon/mat/convert.cc:289:80: error: use of undeclared identifier 'cv_vrndq_u32_f32'; did you mean 'vcvtnq_u32_f32'?
  289 |                 vcombine_u16(vqmovn_u32(cv_vrndq_u32_f32(v_dst_0)), vqmovn_u32(cv_vrndq_u32_f32(v_dst_1)));
      |                                                                                ^~~~~~~~~~~~~~~~
      |                                                                                vcvtnq_u32_f32
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include/arm_neon.h:40729:17: note: 'vcvtnq_u32_f32' declared here
 40729 | __ai uint32x4_t vcvtnq_u32_f32(float32x4_t __p0) {
       |                 ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions