HW140701 / GoogleMediapipePackageDll

package google mediapipe hand and holistic tracking into a dynamic link library
Apache License 2.0
169 stars 47 forks source link

在absl/flags資料夾中找不到flag.h和parse.h #3

Closed chauncey1213 closed 2 years ago

chauncey1213 commented 2 years ago

您好, 我剛剛按照您的教學, 完成編譯並成功運行hello_world.exe 但要開始撰寫c++的code時, 在#include"absl/flags.flag.h"和

include "absl/flags/parse.h"這兩列給出錯誤,

後來發現flags資料夾中沒有flag.h和parse.h這兩個檔案(我的python有安裝tensorflow) 請問這種現象是什麼地方發生問題呢?

HW140701 commented 2 years ago

你试着编译下官方的hand_tracking的例子或者其他的例子 看是否编译通过

HW140701 commented 2 years ago

和编译helloworld差不多

chauncey1213 commented 2 years ago

編譯發生error ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/master/build-ref.html#workspace

HW140701 commented 2 years ago

这个是你执行build命令的位置不是在那个仓库下,这些问题太基础了,为了节省大家的时间,建议你先熟读Mediapipe的官方网站的编译文档再去进行操作,谢谢

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月16日(星期三) 晚上9:58 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [HW140701/GoogleMediapipePackageDll] 在absl/flags資料夾中找不到flag.h和parse.h (Issue #3)

編譯發生error ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/master/build-ref.html#workspace

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

chauncey1213 commented 2 years ago

这个是你执行build命令的位置不是在那个仓库下,这些问题太基础了,为了节省大家的时间,建议你先熟读Mediapipe的官方网站的编译文档再去进行操作,谢谢 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月16日(星期三) 晚上9:58 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [HW140701/GoogleMediapipePackageDll] 在absl/flags資料夾中找不到flag.h和parse.h (Issue #3) 編譯發生error ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/master/build-ref.html#workspace — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

chauncey1213 commented 2 years ago

好的謝謝您的幫助

chauncey1213 commented 2 years ago

不好意思再次打擾您 我在編譯官方hand_tracking範例時產生了錯誤 ERROR: An error occurred during the fetch of repository 'local_execution_config_python': Traceback (most recent call last): File "C:/users/user/_bazel_user/b7zs3pka/external/org_tensorflow/third_party/py/python_configure.bzl", line 210, column 33, in _create_local_python_repository python_lib = _get_python_lib(repository_ctx, python_bin) File "C:/users/user/_bazel_user/b7zs3pka/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib result = execute(repository_ctx, [python_bin, "-c", cmd]) File "C:/users/user/_bazel_user/b7zs3pka/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute fail( Error in fail: Repository command failed

ERROR: Error fetching repository: Traceback (most recent call last): File "C:/users/user/_bazel_user/b7zs3pka/external/org_tensorflow/third_party/py/python_configure.bzl", line 210, column 33, in _create_local_python_repository python_lib = _get_python_lib(repository_ctx, python_bin) File "C:/users/user/_bazel_user/b7zs3pka/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib result = execute(repository_ctx, [python_bin, "-c", cmd]) File "C:/users/user/_bazel_user/b7zs3pka/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute fail( Error in fail: Repository command failed 請問這樣該如何解決呢?

chauncey1213 commented 2 years ago

問題已經解決了,感謝您的幫助。