I am trying to build https://github.com/SeanNaren/warp-ctc.git on Google Colab, following this notebook. I am using these commands on Colab:
!git clone https://github.com/SeanNaren/warp-ctc.git;\
cd warp-ctc;\
mkdir build;\
cd build;\
cmake ..;\
make;
but I am receiving an error building it:
[-11%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o
/content/drive/My Drive/simple_hwr/warp-ctc/src/ctc_entrypoint.cu(1): error: this declaration has no storage class or type specifier
/content/drive/My Drive/simple_hwr/warp-ctc/src/ctc_entrypoint.cu(1): error: expected a ";"
2 errors detected in the compilation of "/tmp/tmpxft_00000191_00000000-13_ctc_entrypoint.compute_70.cpp1.ii".
CMake Error at warpctc_generated_ctc_entrypoint.cu.o.cmake:279 (message):
Error generating file /content/drive/My
Drive/simple_hwr/warp-ctc/build/CMakeFiles/warpctc.dir/src/./warpctc_generated_ctc_entrypoint.cu.o
CMakeFiles/warpctc.dir/build.make:220: recipe for target 'CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o' failed
make[2]: *** [CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o] Error 1
CMakeFiles/Makefile2:146: recipe for target 'CMakeFiles/warpctc.dir/all' failed
make[1]: *** [CMakeFiles/warpctc.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
How can this be resolved?
This post documents an apparent fix for this issue, which also affects the original warp-ctc repository:
[...] the ctc_entrypoint.cu file needs to be a symlink. So, go to src dir and run:
rm ctc_entrypoint.cu
ln -s ctc_entrypoint.cpp ctc_entrypoint.cu
Then, re-run make, which should resolve the issue.
Related
I'm new to buildroot. I used the scanpypi script to add external packages to Buildroot. When I run the compilation (make command), I quickly have this error returned :
>>> host-mkpasswd Installing to host directory
/usr/bin/install -D -m 755 /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/build/host-mkpasswd/mkpasswd /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/mkpasswd
***
*** ERROR: package host-mkpasswd installs executables without proper RPATH:
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/openssl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/fdtoverlay
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/genimage
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/setfacl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/getfacl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/pkgconf
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/attr
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/fdtget
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/chacl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/fdtput
make[1]: *** [package/pkg-generic.mk:262: /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/build/host-mkpasswd/.stamp_host_installed] Error 1
make: *** [Makefile:84: _all] Error 2
I search for an answer on the forums but all I found was this answer which I can't understand... Can someone be more explicit about what I should do to remove it ?
Thank you !
So after some tries, I fixed the issue by running : make clean world.
I am trying to compile and install Python 3.8.2 using Easybuild software and I get this error.
gcc: error: -fuse-linker-plugin is not supported in this configuration
ln: failed to access libpython3.8.so.1.0: No such file or directory
make[3]: *** [libpython3.8.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/alireza/deleteme/new/build/Python/3.8.2/GCCcore-9.2.0/Python-3.8.2'
make[2]: *** [build_all_generate_profile] Error 2
make[2]: Leaving directory `/home/alireza/deleteme/new/build/Python/3.8.2/GCCcore-9.2.0/Python-3.8.2'
make[1]: *** [profile-gen-stamp] Error 2
make[1]: Leaving directory `/home/alireza/deleteme/new/build/Python/3.8.2/GCCcore-9.2.0/Python-3.8.2'
make: *** [profile-run-stamp] Error 2
(at easybuild/software/EasyBuild/4.2.1/lib/python2.7/site-packages/easybuild/tools/run.py:533 in parse_cmd_output)
The complete log file can be found here.
I tried GCCcore 9.3.0 and GCCcore 9.2.0.The manual of Gcc shows that it supports this flag, and compiling on another machine with this configuration has worked before. I don't know what is wrong here.
Do you have any suggestions for me?
Thank you for your time.
I'm installing opencv for Python in Ubuntu 18.04 LTS from the official OpenCV release here https://docs.opencv.org/4.1.0/d2/de6/tutorial_py_setup_in_ubuntu.html
after creating the build directory and entering cmake ../ the moment I enter the command to make it's giving me the following error -
Previously I've used OpenCV on Windows. I'm new in Ubuntu. Please help.
In file included from /home/avi/opencv/modules/core/test/test_precomp.hpp:12:0,
from /home/avi/opencv/build/modules/core/opencv_test_core_pch_dephelp.cxx:1:
/home/avi/opencv/modules/core/include/opencv2/core/private.hpp:66:12: fatal error: Eigen/Core: No such file or directory
# include <Eigen/Core>
^~~~~~~~~~~~
compilation terminated.
modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/build.make:62: recipe for target 'modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o' failed
make[2]: *** [modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o] Error 1
CMakeFiles/Makefile2:1287: recipe for target 'modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Go to /home/avi/opencv/modules/core/include/opencv2/core/private.hpp file.
Edit the line: # include <Eigen/Core> to # include <eigen3/Eigen/Core>
Read more about this error from here.
Seems like OpenCV did not find Eigen where it was expecting.
Supposing you installed Eigen:
sudo apt-get install libeigen3-dev
The most correct way would be for you to specify to OpenCV where you installed Eigen by setting the variable EIGEN_INCLUDE_PATH, usually to \usr\include, but check your system.
Another option, instead of editing the OpenCV code, is to create some links between where you installed Eigen, and where OpenCV expects it to be:
cd /usr/include
sudo ln -sf eigen3/Eigen Eigen
sudo ln -sf eigen3/unsupported unsupported
I didn't find the solution for me in this post so I may as well share it if somebody comes by.
Problem : The include was looking for an include called Eigen while I installed Eigen3.
Solution : Create a soft link to create a directory called Eigen that redirect to Eigen3.
sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
https://www.programmersought.com/article/44372970691/
I am installing Swig 3.0.12. This is the first time I have used it. I ran:
make -k check after the installation, and it came back with some boost errors. In the case below they are from the Python check, however the errors for boost have appeared in nearly all of the checks. Are these errors that I should look into correcting and if so, any ideas on how I can go about that?
Errors:
multiple_inheritance_shared_ptr_wrap.cxx:3131:10: fatal error:
'boost/shared_ptr.hpp' file not found
#include <boost/shared_ptr.hpp>
^
1 error generated.
make[2]: *** [python_cpp] Error 1
make[1]: *** [multiple_inheritance_shared_ptr.cpptest] Error 2
.
. (dots indicate the error below occurred later in the check)
.
make[1]: Target `check' not remade because of errors.
make: *** [check-python-test-suite] Error 1
Update: make -k check just completed. The last line of the check returned:
make: Target ``check' not remade because of errors.
I installed homebrew then installed boost. Redid make -k check, and everything passed no problem.
I'm trying to install PyQt5 but I'm getting this error, I read some other posts related to this error but none of them helped.
/home/pathname/Downloads/PyQt-gpl-5.5.1/QtCore/sipQtCoreQJsonValue.cpp:367:30: error: ‘const class QJsonValue’ has no member named ‘toInt’
sipRes = sipCpp->toInt(a0);
^
make[1]: *** [sipQtCoreQJsonValue.o] Error 1
make[1]: Leaving directory `/home/pathname/Downloads/PyQt-gpl-5.5.1/QtCore'
make: *** [sub-QtCore-make_first-ordered] Error 2
I installed Qt5 in my home folder and when I did python configure.py I included qmake to the path of which Qt5 is at and there was no problem with it. But with the make command I'm getting that error.
The version of Qt you have available to the make system must be incompatible with the version of PyQt you are building.