Skip to content
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

无法链接 lib/mkmodel_windows (AIV-710) #171

Closed
3 tasks done
Criminal-9527 opened this issue Sep 23, 2024 · 3 comments
Closed
3 tasks done

无法链接 lib/mkmodel_windows (AIV-710) #171

Criminal-9527 opened this issue Sep 23, 2024 · 3 comments

Comments

@Criminal-9527
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

我在使用新版本的构建系统来构建pose_estimation这个项目,但是无法链接 lib/mkmodel_windows,我的cmakefile.txt如下:

idf_component_register(
    SRCS
        "main.c"
        "pe_forward.c"
        "image_util.c"
    INCLUDE_DIRS
        "."
        "../include"
)

target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/libdetection.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/libdl.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/libfd.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/libfr.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/libod.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/libpe.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "D:/Espressif/frameworks/esp-idf-v5.2.2/examples/dl-camera/lib/mkmodel_windows")

在链接lib/mkmodel_windows时报错说无法识别这个文件格式:
/lib/mkmodel_windows: file not recognized: file format not recognized
在原本的构建系统中我也没找到怎么链接这个文件的(请原谅我的构建系统学的稀烂,上面直接全部使用绝对路径了,但是原本项目中一些只有声明没定义的函数,在使用上面方法链接之后能找到了,我觉得这种链接办法还是能生效的,只是对于mkmodel_windows这个文件有问题)

@github-actions github-actions bot changed the title 无法链接 lib/mkmodel_windows 无法链接 lib/mkmodel_windows (AIV-710) Sep 23, 2024
@BlueSkyB
Copy link
Collaborator

esp-dl 也没有 mkmodel_windows 这个文件,是你自己的文件吗?
然后目前 esp-dl master 分支,使用idf v5.2可能会有兼容性问题,推荐用v5.1

@Criminal-9527
Copy link
Author

Criminal-9527 commented Sep 23, 2024

在下面这个链接里:
https://github.com/espressif/esp-dl/tree/420fc7e219ba98e40a5493b9d4be270db2f2d724
应该是之前版本里的一个例子吧,最新版里面好像没这个例子了,就是手掌检测和手部特征点检测的这个例子
@BlueSkyB

@sun-xiangyu
Copy link
Collaborator

后续会添加相关模型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants