Comments (4)
Hi,
Thanks for your enthusiasm on our CMake SDx build flow.
On Windows (10), we run cmake from the command line in a "SDx Terminal 2018.2" (installed under the Xilinx Design Tools) and specify to generate "Unix Makefiles"
For example:
cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=........\frameworks\cmakeModules\cmakeModulesXilinx\toolchain_sds.cmake -DSDxPlatform=X:\projects\image_processing\platforms\Ultra96\ultra_v2.3\2018.2\ultra -DSDxClockID=1 -DusePL=ON -DnoBitstream=OFF -DnoSDCardImage=ON -DSDxArch=arm64
Regards
Kristof
from pynq-computervision.
Thank you, Kristof
I've tried your suggestions and met the following problems,
C:\Users\chang\fpga\PYNQ-ComputerVision\overlays\myFirstOverlay\build>cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../../../frameworks/cmakeModules/toolchain_sdx2018.2.cmake -DSDxPlatform=../../../../ultra -DSDxClockID=1 -DusePL=ON -DnoBitstream=OFF -DnoSDCardImage=ON -DSDxArch=arm64
-- SDx platform: ../../../../ultra , clock ID: 1, aarch: arm64 bit
-- Selected Options: usePL=ON, noBitstream: OFF, noSDCardImage=ON
-- CMAKE C FLAGS -sds-pf ../../../../ultra -dmclkid 1 -mno-boot-files -mstrict-align -hls-target 1
-- SDx sysroot: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc
-- CMAKE_FIND_ROOT_PATH: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu
-- CMAKE_AR: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/bin/ar
-- OpenCV ARCH:
-- OpenCV RUNTIME:
-- OpenCV STATIC: ON
CMake Warning at C:/Users/chang/Anaconda3/Library/OpenCVConfig.cmake:140 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxTargets.cmake:59 (find_package)
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxXfOpenCV.cmake:843 (requireOpenCVAndVivadoHLS)
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxXfOpenCV.cmake:933 (createXfOpenCVOverlayWithPythonBindings)
CMakeLists.txt:56 (createOverlayWithPythonBindings)
CMake Error at C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxTargets.cmake:59 (find_package):
Found package configuration file:
C:/Users/chang/Anaconda3/Library/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
Call Stack (most recent call first):
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxXfOpenCV.cmake:843 (requireOpenCVAndVivadoHLS)
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxXfOpenCV.cmake:933 (createXfOpenCVOverlayWithPythonBindings)
CMakeLists.txt:56 (createOverlayWithPythonBindings)
-- Configuring incomplete, errors occurred!
It seemed that cmake didn't find my opencv build path. So I tried:
-DOpenCV_DIR=C:\Users\chang\Anaconda3\Library\lib
and then another error:
C:\Users\chang\fpga\PYNQ-ComputerVision\overlays\myFirstOverlay\build>cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../../../frameworks/cmakeModules/toolchain_sdx2018.2.cmake -DSDxPlatform=../../../../ultra -DSDxClockID=1 -DusePL=ON -DnoBitstream=OFF -DnoSDCardImage=ON -DSDxArch=arm64 -DOpenCV_DIR=C:\Users\chang\Anaconda3\Library\lib
-- SDx platform: ../../../../ultra , clock ID: 1, aarch: arm64 bit
-- Selected Options: usePL=ON, noBitstream: OFF, noSDCardImage=ON
-- CMAKE C FLAGS -sds-pf ../../../../ultra -dmclkid 1 -mno-boot-files -mstrict-align -hls-target 1
-- SDx sysroot: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc
-- CMAKE_FIND_ROOT_PATH: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu
-- CMAKE_AR: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/bin/ar
-- SDx platform: ../../../../ultra , clock ID: 1, aarch: arm64 bit
-- Selected Options: usePL=ON, noBitstream: OFF, noSDCardImage=ON
-- CMAKE C FLAGS -sds-pf ../../../../ultra -dmclkid 1 -mno-boot-files -mstrict-align -hls-target 1
-- SDx sysroot: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc
-- CMAKE_FIND_ROOT_PATH: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu
-- CMAKE_AR: C:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/bin/ar
CMake Error at C:/Users/chang/Anaconda3/Library/lib/OpenCVModules.cmake:368 (message):
The imported target "opencv_core" references the file
"C:/Users/chang/x64/vc14/lib/opencv_core341.lib"
but this file does not exist. Possible reasons include:
-
The file was deleted, renamed, or moved to another location.
-
An install or uninstall procedure did not complete successfully.
-
The installation package was faulty and contained
"C:/Users/chang/Anaconda3/Library/lib/OpenCVModules.cmake"
but not all the files it references.
Call Stack (most recent call first):
C:/Users/chang/Anaconda3/Library/lib/OpenCVConfig.cmake:112 (include)
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxTargets.cmake:59 (find_package)
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxXfOpenCV.cmake:843 (requireOpenCVAndVivadoHLS)
C:/Users/chang/fpga/PYNQ-ComputerVision/frameworks/cmakeModules/rulesForSDxXfOpenCV.cmake:933 (createXfOpenCVOverlayWithPythonBindings)
CMakeLists.txt:56 (createOverlayWithPythonBindings)
-- Configuring incomplete, errors occurred!
I can not understand why cmake should find my opencv installed in anaconda, because it should not depend on anaconda. I thought it was supposed to find my xfopencv path, but there is no binary libraries in the xfopencv, only cpp and hpp. Do you have any suggestions?
from pynq-computervision.
Hi,
Can you try again but specifying an absolute path for your SDxPlatform?
Regards
Kristof
from pynq-computervision.
Closing, please open a new issue if the absolute path this not resolve this.
from pynq-computervision.
Related Issues (20)
- Other Overlays for Ultra96 + PYNQ HOT 2
- Error when running make HOT 11
- Error importing overlays HOT 16
- Error when trying to make an overlay with xf::fast HOT 2
- Error in using created overlay on ZedBoard HOT 8
- Eth0 not found : Zedboard Pynq V2.3 HOT 2
- The resize() function on hardware for pynq-z2 board
- FAILED pip3 install --upgrade git+https://github.com/Xilinx/PYNQ-ComputerVision.git HOT 3
- Building fails with release 2.5 HOT 2
- Not installing for V2.5
- Ultra96 v2 pynq problem installing ComputerVision repo HOT 8
- No progress after "Collecting pandas"
- pynq-z1 pip3 install problem
- Incompatible versions with PYNQ v2.6 (ZCU104)
- Not working on Pynq 2.7
- Unable to Create Custom Overlay HOT 2
- pynq-z2 problem HOT 5
- Questions on hardware rebuilding on Pynq-Z2 board HOT 6
- PYNQ-Z1 can't install ComputerVision with pip3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynq-computervision.