Comments (4)
@Jinwanqi It seems that make
doesn't find numpy's headers. Appending the include directory to CPLUS_INCLUDE_PATH
should fix this. Mine's located at /usr/local/lib/python2.7/site-packages/numpy/core/include
, i.e. run
CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/local/lib/python2.7/site-packages/numpy/core/include" make
Good luck with that.
from text-image-augmentation.
@keeofkoo Thanks for your reply.
@Jinwanqi Sorry for late reply. The simplest way is to copy the numpy include folder to ./include
. Hopefully it can help you.
from text-image-augmentation.
@Jinwanqi It seems that
make
doesn't find numpy's headers. Appending the include directory toCPLUS_INCLUDE_PATH
should fix this. Mine's located at/usr/local/lib/python2.7/site-packages/numpy/core/include
, i.e. runCPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/local/lib/python2.7/site-packages/numpy/core/include" make
Good luck with that.
thank you!
but i meet another problem:
when i use opencv3.4.2, error comes as :
/home/jin/下载/Scene-Text-Image-Transformer-master/include/delaunay.h:11:37: fatal error: opencv2/legacy/legacy.hpp: 没有那个文件或目录
compilation terminated.
CMakeFiles/Augment.dir/build.make:62: recipe for target 'CMakeFiles/Augment.dir/src/delaunay.cpp.o' failed
make[2]: *** [CMakeFiles/Augment.dir/src/delaunay.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Augment.dir/all' failed
make[1]: *** [CMakeFiles/Augment.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
this is because cv3 quit the legacy module;
but when i change to cv2. problem comes when cmake,like
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106501
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:13 (find_package)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- python
CMake Error at CMakeLists.txt:16 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/jin/下载/Scene-Text-Image-Transformer-master/build/CMakeFiles/CMakeOutput.log".
Makefile:356: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
i use conda to install opencv,shall i install it with source code?
from text-image-augmentation.
@Jinwanqi Looks like it didn't find the proper config to handle the OpenCV2 library. Anaconda doesn't seem to offer an installation of version 2, you could build it from source.
from text-image-augmentation.
Related Issues (12)
- I got 'float point exception: core dumped' transforming pics of short cols. HOT 2
- About Joint Training HOT 10
- Why oldDotL are set by DstPoints ? HOT 1
- running into problems during make HOT 2
- About the agent updating and initialization HOT 1
- CMake fail HOT 5
- floating point exception (core dumped) when process images with different size HOT 3
- 您好作者,这个东西工程要怎么改才可以支持python3(自己装boost确实困难重重,.so的动态模块导入,python3会报错) HOT 12
- cmake problem HOT 6
- Is this project still in development? HOT 1
- undefined symbol: _ZN2cv6formatB5cxx11EPKcz HOT 8
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 text-image-augmentation.