Comments (3)
pls manully apply below patch to solve ubuntu build issue.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f1477c..df60102 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,9 +30,7 @@ add_definitions(-DCAFFE_VERSION=${CAFFE_TARGET_VERSION})
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
include(ExternalProject)
-if(MSVC)
include(GNUInstallDirs)
-endif()
include(cmake/Utils.cmake)
include(cmake/Targets.cmake)
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index 3e3eae4..76cdd02 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -276,11 +276,7 @@ else()
set(MKLDNN_LIBRARIES_NAME "libmkldnn.so")
endif()
-if(APPLE OR WIN32)
-set(LIBDIR lib)
-else()
-set(LIBDIR lib64)
-endif()
+set(LIBDIR ${CMAKE_INSTALL_LIBDIR})
if(DEFINED ENV{MKLDNNROOT})
from caffe.
Thanks for your response!
So there should be two modifications, right? One is /CMakeLists.txt, another is /cmake/Dependencies.cmake.
But I only find one line difference in Dependencies.cmake file.
After modify this line, the error phenomena is the same.
(1)
add_definitions(-DCAFFE_VERSION=${CAFFE_TARGET_VERSION})
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
include(ExternalProject)
if(MSVC)
include(GNUInstallDirs)
endif()
include(cmake/Utils.cmake)
include(cmake/Targets.cmake)
(2)
if(MSVC)
set(MKLDNN_LIBRARIES_NAME "mkldnn.lib")
else()
set(MKLDNN_LIBRARIES_NAME "libmkldnn.so")
endif()
if(APPLE OR WIN32)
set(LIBDIR lib)
else()
set(LIBDIR lib64)
endif()
set(LIBDIR ${CMAKE_INSTALL_LIBDIR}) ######## I only add this line
if(DEFINED ENV{MKLDNNROOT})
from caffe.
+include(GNUInstallDirs)
in CMakeLists.txt after include(ExternalProject)
from caffe.
Related Issues (20)
- fasterrcnn bug
- How to convert .xml file into train.txt and val.txt for LMDB conversion in caffe training for object detection? HOT 1
- Strangle fault, if investigate ssd.
- how to set up the test process with intel caffe
- 8bit quantization calibrator and fine-tuning
- pooled_height_ is undefined HOT 1
- Xbyak::Error
- Release Mode: Application Crash
- Failed to Build caffe with Makefile HOT 2
- Failed while compiling matcaffe HOT 1
- cannot find -l1
- Not able to use this caffe version in multi threading environment.
- All Travis CI pull request tests are failing or erroring with the current version of code
- Allow user to control warnings-as-errors behaviour
- CMake bug prevents successful rebuild
- python Net API is Invalid
- memory leak with vaviable input size
- not able to run docker, fails on "caffe": executable file not found in $PATH: unknown.
- how to calculate the mAP with this version of Caffe
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 caffe.