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

Raspberry Pi 4 compile issues #31

Open
MyraBaba opened this issue Jul 28, 2022 · 4 comments
Open

Raspberry Pi 4 compile issues #31

MyraBaba opened this issue Jul 28, 2022 · 4 comments

Comments

@MyraBaba
Copy link

Hi,

I try to compile gl2handpose in rpi4 it gives below error:

g++ -o gl2handpose -Wl,--whole-archive main.o tflite_handpose.o render_handpose.o shapes.o touch_event.o custom_ops/transpose_conv_bias.o /home/pi/bcwork/tflite_gles_app/common/assertgl.o /home/pi/bcwork/tflite_gles_app/common/assertegl.o /home/pi/bcwork/tflite_gles_app/common/util_egl.o /home/pi/bcwork/tflite_gles_app/common/util_shader.o /home/pi/bcwork/tflite_gles_app/common/util_matrix.o /home/pi/bcwork/tflite_gles_app/common/util_texture.o /home/pi/bcwork/tflite_gles_app/common/util_render2d.o /home/pi/bcwork/tflite_gles_app/common/util_debugstr.o /home/pi/bcwork/tflite_gles_app/common/util_pmeter.o /home/pi/bcwork/tflite_gles_app/common/util_tflite.o /home/pi/bcwork/tflite_gles_app/common/winsys/winsys_x11.o /home/pi/bcwork/tflite_gles_app/common/util_camera_capture.o /home/pi/bcwork/tflite_gles_app/common/util_v4l2.o /home/pi/bcwork/tflite_gles_app/common/util_drm.o render_imgui.o /home/pi/bcwork/tflite_gles_app/third_party/imgui/imgui.o /home/pi/bcwork/tflite_gles_app/third_party/imgui/imgui_draw.o /home/pi/bcwork/tflite_gles_app/third_party/imgui/imgui_widgets.o /home/pi/bcwork/tflite_gles_app/third_party/imgui/examples/imgui_impl_opengl3.o -Wl,--copy-dt-needed-entries -Wl,--allow-multiple-definition -L/home/pi/bcwork/tflite_gles_app/third_party/tensorflow/current/lite/lib/current/ -L/home/pi/lib -lm -lEGL -lGLESv2 -lX11 -pthread -ldrm -ltensorflowlite -ltensorflowlite_gpu_delegate -Wl,--no-whole-archive -rdynamic
/usr/bin/ld: cannot find -ltensorflowlite
/usr/bin/ld: cannot find -ltensorflowlite_gpu_delegate

In my raspbery there is already libtensorflow-lite.a but not tensorflowlite_gpu_delegate lib.
more over -l-ltensorflowlite but there is libtensorflow-lite.a ?

what will be the proper compiling environment ? just clone the repo to my Desktop ubuntu and compile than copy to rpi ? or do I need any docker something ?

Best

@terryky
Copy link
Owner

terryky commented Jul 28, 2022

Did you build the tensorflow library following the below procedure described in README ?

@MyraBaba
Copy link
Author

MyraBaba commented Jul 28, 2022 via email

@MyraBaba
Copy link
Author

Now all is successfully worked for handpose.

Is there an option video or cam input or do we need to modify code ?

Best

@terryky
Copy link
Owner

terryky commented Jul 28, 2022

USB camera can be used without any source code modification.

To use a mp4 video, follow the below instructions.
https://github.com/terryky/tflite_gles_app#32-recorded-video-file

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

2 participants