Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing logging.cpp #3

Open
steven5401 opened this issue Dec 29, 2016 · 2 comments
Open

missing logging.cpp #3

steven5401 opened this issue Dec 29, 2016 · 2 comments

Comments

@steven5401
Copy link

Hi, I follow the build.sh. At the last step ("./scripts/build_caffe.sh" ), there isn't cmakelist.txt in caffe-cpu.
I think that maybe I can copy all file in caffe-opencl to caffe-cpu, then run build_caffe.sh again.
But it shows that

CMake Error at src/caffe/CMakeLists.txt:20 (add_library):
Cannot find source file:

/home/laplace/caffe-android-opencl/caffe-cpu/src/ceres/internal/miniglog/glog/logging.cpp"

I can only find logging.cpp at ./boost/boost_1_56_0/libs/exception/example/logging.cpp, but seems this is not the file.
Where do I make the mistake? thanks.

@rhythm9229
Copy link

in the script build.sh change ./scripts/build_caffe_cpu.sh to ./scripts/build_caffe_opencl.sh

@steven5401
Copy link
Author

thanks for reply. After I change script, it shows that

/home/laplace/caffe-android-opencl/android_lib/viennacl-hard
CAFFE BOOST ROOT /home/laplace/caffe-android-opencl/android_lib/boost_1.56.0
CAFFE BOOST INCLUDE
-- Boost version: 1.56.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
boost libs /home/laplace/caffe-android-opencl/android_lib/boost/lib/libboost_system.a;/home/laplace/caffe-android-opencl/android_lib/boost/lib/libboost_thread.a;/home/laplace/caffe-android-opencl/android_lib/boost/lib/libboost_filesystem.a
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found GFlags: /home/laplace/caffe-android-opencl/android_lib/gflags/include
-- Found gflags (include: /home/laplace/caffe-android-opencl/android_lib/gflags/include, library: /home/laplace/caffe-android-opencl/android_lib/gflags/lib/libgflags_nothreads.a)
-- Found PROTOBUF: /home/laplace/caffe-android-opencl/android_lib/protobuf/lib/libprotobuf.a
-- Found PROTOBUF Compiler: /usr/bin/protoc
-- -- CUDA is disabled. Building without it...
-- Could not find ViennaCL include. Turning ViennaCL_FOUND off
trying to find OpenCL
-- Found OpenCL: /home/laplace/caffe-android-opencl/android_lib/opencl/libOpenCL.so
CMake Error at cmake/Dependencies.cmake:85 (message):
ViennaCL required for GREENTEA but not found.
Call Stack (most recent call first):
CMakeLists.txt:70 (include)

-- Configuring incomplete, errors occurred!

I download ViennaCL form http://viennacl.sourceforge.net/viennacl-download.html
then unzip it to /home/laplace/caffe-android-opencl/android_lib and change name to viennacl-hard.
Following the instruction in its readme to build, I still meet the same problem. The structure of viennacl is

---- ViennaCL-1.X.X
|
|-- auxiliary/ - (only in src-Edition) Auxiliary files (i.e. the OpenCL source code tree and the converter for the header files)
|
|-- build/ - Build directory for building the examples
|
|-- CL/ - The OpenCL headers
|
|-- cmake/ - Additional CMake configuration files
|
|-- doc/ - Documentation (LaTeX and doxygen)
|
|-- examples/ - Tutorial and benchmarking applications
|
|-- testdata/ - Test data for the tutorials and benchmarks
|
|-- benchmarks/ - A small benchmarking suite
|
|-- tutorial/ - Some tutorials explaining the usage of ViennaCL
|
|-- parameters/ - Parameter optimization environment
|
|-- external/ - External libraries
|
|-- libviennacl/ - Shared library for interfacing some BLAS functionality of ViennaCL from languages other than C++
|
|-- tests/ - Automated test suite using CTest
|
|-- viennacl/ - The library source code

Should the VIENNACL_ROOT in your script be changed to /build?
Or how to fix the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants