Coder Social home page Coder Social logo

Compiler Bug about pynq-computervision HOT 4 CLOSED

xilinx avatar xilinx commented on July 23, 2024
Compiler Bug

from pynq-computervision.

Comments (4)

denolf avatar denolf commented on July 23, 2024

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.

ctz16 avatar ctz16 commented on July 23, 2024

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.

denolf avatar denolf commented on July 23, 2024

Hi,

Can you try again but specifying an absolute path for your SDxPlatform?

Regards

Kristof

from pynq-computervision.

denolf avatar denolf commented on July 23, 2024

Closing, please open a new issue if the absolute path this not resolve this.

from pynq-computervision.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.