KhronosGroup / OpenVX-sample-impl

OpenVX sample implementation
Apache License 2.0
139 stars 47 forks source link

fatal error: VX/vx.h: No such file or directory #include <VX/vx.h> #36

Open SijinJohn opened 3 years ago

SijinJohn commented 3 years ago

/home/pi/OpenVX/OpenVX-sample-impl/cts/test_engine/test_utils.h:21:10: fatal error: VX/vx.h: No such file or directory

include <VX/vx.h>

      ^~~~~~~~~

compilation terminated.

i am getting this error on Raspberry pi 3.

balaji-ch commented 3 years ago

refer this

https://github.com/KhronosGroup/OpenVX-sample-impl/issues/14

SijinJohn commented 3 years ago

@balaji-ch

i followed this

Use the Build.py script to build and install OpenVX 1.3 cd OpenVX-sample-impl/ python Build.py --os=Linux --venum --conf=Debug --conf_vision --enh_vision --conf_nn

Build and run the conformance:

export OPENVX_DIR=$(pwd)/install/Linux/x32/Debug export VX_TEST_DATA_PATH=$(pwd)/cts/test_data/ mkdir build-cts cd build-cts cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so;$OPENVX_DIR/bin/libvxu.so;pthread;dl;m;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON ../cts/ cmake --build .

balaji-ch commented 3 years ago

Looking at your post export OPENVX_DIR=$(pwd)/install/Linux/x32/Debug I guess, you are trying a 32bit build. then the build command must be python Build.py --os=Linux --venum --conf=Debug --conf_vision --enh_vision --conf_nn --arch=32

Read the Build.py comments and enable needed flags. parser.add_option("--arch", dest="arch", help="Set the architecture (32 / 64 bit) [Default 64]", default='64')

SijinJohn commented 3 years ago

So do i need to do build command again from the beginning ??

I tried with your command :- python Build.py --os=Linux --venum --conf=Debug --conf_vision --enh_vision --conf_nn --arch=32 but same issue

balaji-ch commented 3 years ago

Delete everything and start afresh, following the build instructions carefully. unless you specifically want a 32 bit build , you don't need to specify arch=32 .

And still you are stuck, post all the command sequence you have used starting form git clone --recursive.

SijinJohn commented 3 years ago

I followed this tutorial:-

https://www.raspberrypi.org/blog/openvx-api-for-raspberry-pi/

balaji-ch commented 3 years ago

That blog post is the same as in Sample 2 - Build OpenVX 1.3 on Raspberry Pi https://github.com/KhronosGroup/OpenVX-sample-impl

Not sure about your error. Start afresh and see .

kiritigowda commented 3 years ago

@SijinJohn, let us know if this issue is resolved for you. The missing header file errors are due to missing submodules. Use the recursive clone flag to fix this.

SijinJohn commented 3 years ago

@kiritigowda

not resolved This step-> cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so;$OPENVX_DIR/bin/libvxu.so;pthread;dl;m;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON ../cts/ gives error CMake Error: The source directory "/home/pi/OpenVX/OpenVX-sample-impl/build-cts" does not appear to contain CMakeLists.txt.

CmakeLists.txt is in OpenVX-sample-impl not inside build-cts I am not getting this error.

kiritigowda commented 3 years ago

@SijinJohn follow instructions below, see the Travis build log for more information.

Build OpenVX 1.3 on Raspberry Pi

SijinJohn commented 3 years ago

@kiritigowda When i run this:- cmake --build . I get this Scanning dependencies of target generate_version_file -- Get version information -- Version: 7aed89e [ 0%] Built target generate_version_file Scanning dependencies of target test_engine [ 1%] Building C object test_engine/CMakeFiles/test_engine.dir/test_bmp.c.o In file included from /home/pi/OpenVX/OpenVX-sample-impl/cts/test_engine/test.h:91, from /home/pi/OpenVX/OpenVX-sample-impl/cts/test_engine/test_bmp.c:18: /home/pi/OpenVX/OpenVX-sample-impl/cts/test_engine/test_utils.h:21:10: fatal error: VX/vx.h: No such file or directory

include <VX/vx.h>

      ^~~~~~~~~

compilation terminated. make[2]: [test_engine/CMakeFiles/test_engine.dir/build.make:82: test_engine/CMakeFiles/test_engine.dir/test_bmp.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:223: test_engine/CMakeFiles/test_engine.dir/all] Error 2 make: *** [Makefile:149: all] Error 2