Xilinx / Vitis-AI-Tutorials

MIT License
381 stars 145 forks source link

Compile issues with /Introduction/03-Basic/Module_6 #36

Open Orchidaceae opened 2 years ago

Orchidaceae commented 2 years ago

Hello, I just want to report some issues I had when trying to follow the Vitis™ 2020.2 / Vitis-AI™ 1.3 - Machine Learning Tutorial for the ZCU104, more specifically the demo application in module 6: 3.6 Usb Camera Input and Multi-Threads base on Vitis AI Library

When I tried compiling the application running the build_app.sh script I encountered the following issues:

  1. The compiler could not find the glog library in my petalinux SDK environment so I had to install it using sudo apt-get install libgoogle-glog-dev libgflags-dev and set up the SDK again.
  2. I needed to update the petalinux SDK environment set-up file to enable c++17: CXXFLAGS= (...)-std=c++17
  3. "fatal error: vart/dpu/dpu_runner_ext.hpp: No such file or directory", I had to comment out this header file that was no where to be found
  4. "cannot find -lxnnpp-xnnpp", I had to edit /Module_6/CMakeLists.txt to instead link to ~/petalinux_sdk_2021.1/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/libvitis_ai_library-xnnpp.so by replacing xnnpp-xnnpp with vitis_ai_library-xnnpp

after all these fixes I managed to compile the app and run it on my ZCU102 using a webcam!

bhargavin1872008 commented 2 years ago

when running the requirements.txt of keras-yolov3-modelset -i 'm getting error for coremltools.it is showing like "couldn't find a version that satisfies the requirement tensorflow<=1.14 and tensorflow >=1.5(from tfcoremltools -r requirements.txt).(from version :2.2.0,2.2..1, 2.2.2, ...2.7.0rc0,2.7.0.rc1............) like this .can someone help me regarding this. Also ,i have a doubt .can we use ubuntu 20.04 ,cuda 11.7 ,cudnn 8.4.0 for this project. or have to use ubuntu 18.04,cuda 10.0 only which only works.please help me regarding this,i have less time in my hand.