hailo-ai / hailo-rpi5-examples

MIT License
272 stars 38 forks source link

[hailo-rpi5-examples] Run the Rasberry pi 5 with Hailo 8, meet thje ninja compile file #37

Closed jkllbn2563 closed 1 week ago

jkllbn2563 commented 3 weeks ago

Run: ./compile_postprocess.sh

/usr/bin/ld: cannot find -lgsthailometa: No such file or directory /usr/bin/ld: cannot find -lhailo_tracker: No such file or directory /usr/bin/ld: cannot find -lhailo_gst_image: No such file or directory /usr/bin/ld: cannot find -lhailo_cv_singleton: No such file or directory collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.

chm10 commented 3 weeks ago

I have the same issue to run the compile_postprocess.sh.

chm10 commented 3 weeks ago

I solved the compilation changing the above parts of compilation code and after installing rapidjson-dev.

sudo apt-get install rapidjson-dev
chm10 commented 3 weeks ago

I tested but not worked yet. I almost sure the issue is from the environmet variables venv_hailo_rpi5_examples

python basic_pipelines/detection.py --help
Traceback (most recent call last):
  File "/home/user/hailo-rpi5-examples/basic_pipelines/detection.py", line 11, in <module>
    import hailo
ImportError: libgsthailometa.so.3: cannot open shared object file: No such file or directory
chm10 commented 3 weeks ago

After reinstalling, worked.

sudo apt-get install --reinstall hailo-tappas-core-3.28.2

Install the compiled package.

$ cd build.release/
$ sudo ninja install
python basic_pipelines/detection.py --help
usage: detection.py [-h] [--input INPUT] [--use-frame] [--show-fps] [--disable-sync] [--dump-dot] [--network {yolov6n,yolov8s,yolox_s_leaky}] [--hef-path HEF_PATH]
                    [--labels-json LABELS_JSON]

Hailo App Help

options:
  -h, --help            show this help message and exit
  --input INPUT, -i INPUT
                        Input source. Can be a file, USB or RPi camera (CSI camera module). For RPi camera use '-i rpi' (Still in Beta). Defaults to /dev/video0
  --use-frame, -u       Use frame from the callback function
  --show-fps, -f        Print FPS on sink
  --disable-sync        Disables display sink sync, will run as fast as possible. Relevant when using file source.
  --dump-dot            Dump the pipeline graph to a dot file pipeline.dot
  --network {yolov6n,yolov8s,yolox_s_leaky}
                        Which Network to use, default is yolov6n
  --hef-path HEF_PATH   Path to HEF file
  --labels-json LABELS_JSON
                        Path to costume labels JSON fil
giladnah commented 3 weeks ago

Hi did you install the apt hailo-all? these files should be installed by this install.

jkllbn2563 commented 2 weeks ago

Yes, I have already run "sudo apt install hailo-all", but still hit the compile error

sudo apt install hailo-all Reading package lists... Done Building dependency tree... Done Reading state information... Done hailo-all is already the newest version (3.28.2+1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

jkllbn2563 commented 2 weeks ago

sudo apt-get install --reinstall hailo-tappas-core-3.28.2

can solve the compile issue. Thanks @chm10 !