[FIXED] TensorFlow Lite in Qt with cmake in WSL


I want to work with tensorflow lite in the qt creator (cmake), which is running in the WSL. The project is to be build for arm. I have found this tutorial: https://www.tensorflow.org/lite/guide/build_cmake

I am struggling with the CMakeLists.txt to find the correct source folder of tensorflow lite.

error & folder structure


You will need to adjust this part in your CMakeLists.txt. This is referencing to the tensor flow source four directories up in the parent hierarchy.

But it looks like that your project layout is slightly different based on your comment. So, this is where you will need to make the adjustment according to the needs of your project.

    "${CMAKE_CURRENT_LIST_DIR}/../../../../" ABSOLUTE)

Answered By – László Papp

Answer Checked By – David Goodson (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published