Skip to content

Commit

Permalink
fix caffe issue
Browse files Browse the repository at this point in the history
  • Loading branch information
atenpas committed Jan 28, 2018
1 parent ef1a242 commit bf5461e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ find_path(GENERATOR_LIB_INCLUDE_DIR gpg/grasp.h)
include_directories(${GENERATOR_LIB_INCLUDE_DIR})

# CAFFE
IF(NOT EXISTS ${CAFFE_DIR})
SET(CAFFE_DIR "$ENV{CAFFE_DIR}")
SET(CAFFE_DIR "/home/andreas/software/caffe/build")
ENDIF()
MESSAGE("CAFFE_DIR: " ${CAFFE_DIR})
# IF(NOT EXISTS ${CAFFE_DIR})
# SET(CAFFE_DIR "$ENV{CAFFE_DIR}")
# SET(CAFFE_DIR "/home/andreas/software/caffe/build")
# ENDIF()
# MESSAGE("CAFFE_DIR: " ${CAFFE_DIR})
find_package(Caffe)
include_directories(${Caffe_INCLUDE_DIRS})
add_definitions(${Caffe_DEFINITIONS})
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,10 @@ Clouds**](http://arxiv.org/abs/1706.09911). Conditionally accepted for IJRR.
* GCC 4.8: The package [might not compile](https://github.com/atenpas/gpd/issues/14#issuecomment-324789077) with
GCC 4.8. This is due to [a bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58251) in GCC. **Solution:** Upgrade to
GCC 4.9.

* During `catkin_make`, you get this error: *[...]/caffe/include/caffe/util/cudnn.hpp:8:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory*. **Solution:**

# In the directory you installed Caffe to
protoc src/caffe/proto/caffe.proto --cpp_out=.
mkdir include/caffe/proto
mv src/caffe/proto/caffe.pb.h include/caffe/proto

0 comments on commit bf5461e

Please sign in to comment.