Closed JianmingTONG closed 3 years ago
Was pybind11 installed using pip3? This has been tested with pybind11 that comes with pip3 and gets installed into /usr/local/lib Also look inside the test log file generated by cmake to see why the test failed-- cat build/Debug/Testing/Temporary/LastTest.log
Thanks for your reply
I install the pybind11 by following the following instruction and use this repo. And I install this repo to satisfy both CMake requirement and python requirement as following:
I'm confused that if I delete the pybind11 in /usr/local/lib then the CMake will complain about the following issue. Might I ask how to satisfy the CMake requirement without having pybind lib files in /usr/local/lib
?
CMake Error at python/pybind11/CMakeLists.txt:17 (find_package):
Could not find a package configuration file provided by "pybind11"
(requested version 2.6.0) with any of the following names:
pybind11Config.cmake
pybind11-config.cmake
git clone https://github.com/pybind/pybind11
cd pybind11
mkdir build
cd build
make -j6
sudo make install
pip3 install pybind11
5/10 Testing: python_binding
5/10 Test: python_binding
Command: "/usr/bin/python3" "/home/jimmy/work/XRT/src/../tests/python/200_binding/200_main.py"
Directory: /home/jimmy/work/XRT/build/Debug
"python_binding" start time: May 19 22:25 CST
Output:
----------------------------------------------------------
<end of output>
Test time = 0.14 sec
----------------------------------------------------------
Test Failed.
"python_binding" end time: May 19 22:25 CST
"python_binding" time elapsed: 00:00:00
----------------------------------------------------------
6/10 Testing: [xclbinutil]:signing-xclbin_CER
6/10 Test: [xclbinutil]:signing-xclbin_CER
Command: "/bin/bash" "-c" "/home/jimmy/work/XRT/build/Debug/unit-tests/xclbinutil/signing-xclbin_CER/runme.sh"
Directory: /home/jimmy/work/XRT/build/Debug/unit-tests/xclbinutil/signing-xclbin_CER
"[xclbinutil]:signing-xclbin_CER" start time: May 19 22:25 CST
Output:
----------------------------------------------------------
Might I also get some tips on what to do to solve the problem?
Thanks in advance! JT
For XRT use you do not need to clone pybind11. You can simply install pybind11 using pip3. The problem is unique to your setup. Can you remove the copy of pybind11 that you have installed by cloning and building it from https://github.com/pybind/pybind11?
@JianmingTONG , let me know if you are good now. I would close the issue.
Thanks, the problem is still there.
Because if I only install pybind 11 using pip3. Then it will report
CMake Error at python/pybind11/CMakeLists.txt:17 (find_package):
Could not find a package configuration file provided by "pybind11"
(requested version 2.6.0) with any of the following names:
pybind11Config.cmake
pybind11-config.cmake
The only way I know to solve it is to clone the pybind 11 and build locally then followed by installation. But it will introduce more errors.
Start 5: python_binding
5/10 Test #5: python_binding ....................***Exception: SegFault 0.13 sec
Might I get some suggestions
Thanks again for your kind help and consideration.
Are you using native cmake? Ubuntu 18.04 cmake version is 3.10 but you are using cmake 3.20.0. This is not a tested configuration.
If you want to use your cmake you may have to tweak the following makefile to help cmake look for the missing files/versions:
src/python/pybind11/CMakeLists.txt
Python integration works on supported platform configurations.
Thanks, even though it does not work on my side, it does not affect the correctness of generating xmodel for FPGA. So I just ignore it.
Hi
I'm using the latest master branch with commit id
edeb730b9ba2b1d9d36d4bbc99ef454be0264246
.I'm running into an issue when building the package using the latest version of the XRT library, as shown below:
I've tested the pybind11 library works using this repo(https://github.com/pybind/python_example). Might I get any help on how to fix it?
Thanks in advance! JT