CaffeOnSpark
CaffeOnSpark copied to clipboard
Could anyone help about build CaffeOnSpak while caffe-distri failed ?
Hi , I got a problem similar with others while building , but tried many ways still can't work , could anyone help me , it would be great helpful .
.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)' .build_release/lib/libcaffe.so: undefined reference to
cv::String::allocate(unsigned long)'
.build_release/lib/libcaffe.so: undefined reference to cv::String::deallocate()' .build_release/lib/libcaffe.so: undefined reference to
cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocatorcv::imread(cv::String const&, int)' .build_release/lib/libcaffe.so: undefined reference to
cv::String::allocate(unsigned long)'
.build_release/lib/libcaffe.so: undefined reference to cv::String::deallocate()' .build_release/lib/libcaffe.so: undefined reference to
cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocatorcv::imread(cv::String const&, int)' .build_release/lib/libcaffe.so: undefined reference to
cv::String::allocate(unsigned long)'
.build_release/lib/libcaffe.so: undefined reference to cv::String::deallocate()' .build_release/lib/libcaffe.so: undefined reference to
cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe-distri 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (proto) @ caffe-distri ---
[INFO] Executing tasks
protoc:
[exec] make[1]: Entering directory /home/hadoop/CaffeOnSpark/caffe-distri' [exec] make[1]: Leaving directory
/home/hadoop/CaffeOnSpark/caffe-distri'
[exec] make[1]: *** No rule to make target ../caffe-public/distribute/proto/caffe.proto', needed by
src/main/java/caffe/Caffe.java'. Stop.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] caffe .............................................. SUCCESS [ 0.001 s]
[INFO] caffe-distri ....................................... FAILURE [ 1.617 s]
[INFO] caffe-grid ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.123 s
[INFO] Finished at: 2017-11-15T09:42:48+00:00
[INFO] Final Memory: 8M/54M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (proto) on project caffe-distri: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...
check your opencv version. I think the current CaffeOnSpark only supports openCV 2.5. You may have a newer version.
chech your protobuf:
protoc –version
make sure protocbuf 2.5.0. A newer version may buring problem.
@834721662 I have made sure that the protoc is 2.5.0 ,still thanks for reply . @junshi15 Is that any document mentioned about the OpenCV version ? I saw many install guides but non of them calling about this , If it's true then it's useless to build CaffeOnSpark because my DL lab used OpenCV 3.0+ as default environment .
@kioipp I have encountered this situation that my cuda is 9.0 and my OpenCV is 3.0 and they are in conflict when make build. So I changed my OpenCV to 2.14.13 and my maven 3.5.0 to 3.2.5. Hope that can help you.
sorry, I think opencv 2.4 is what CaffeOnSpark supports. There are API changes between 2.4 and 3.2, hence the new openCV is not supported.