NVIDIA / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
672 stars 263 forks source link

Compile Error 0.17 #527

Closed rotorliu closed 6 years ago

rotorliu commented 6 years ago

When compile nvcaffe 0.17, I get errors as follows:

CXX/LD -o .build_release/tools/caffe.bin .build_release/tools/caffe.o: In function train()': caffe.cpp:(.text+0x4ab8): undefined reference tocaffe::P2PManager::P2PManager(boost::shared_ptr, int, caffe::SolverParameter const&)' .build_release/tools/caffe.o: In function time()': caffe.cpp:(.text+0x5d2f): undefined reference tocaffe::Timer::Timer()' caffe.cpp:(.text+0x5d44): undefined reference to caffe::Timer::Timer()' caffe.cpp:(.text+0x5d59): undefined reference tocaffe::Timer::Timer()' caffe.cpp:(.text+0x5f87): undefined reference to caffe::Timer::Timer()' caffe.cpp:(.text+0x5f9f): undefined reference tocaffe::Timer::Timer()' .build_release/tools/caffe.o:caffe.cpp:(.text+0x6099): more undefined references to `caffe::Timer::Timer()' follow collect2: error: ld returned 1 exit status Makefile:654: recipe for target '.build_release/tools/caffe.bin' failed make: *** [.build_release/tools/caffe.bin] Error 1

drnikolaev commented 6 years ago

@rotorliu thank you. Please paste the command you invoke.

rotorliu commented 6 years ago

cd caffe make

rotorliu commented 6 years ago

The environment is ngc container. There is a caffe in it.

drnikolaev commented 6 years ago

What version of the container do you run? And why do you need to build caffe? It's built already.

rotorliu commented 6 years ago

The version of the container is NVCaffe 18.07-py2 I want to add Focal Loss support。 So I need rebuild caffe。

rotorliu commented 6 years ago

I fixed this! I remove the old lib and remake. It's OK

drnikolaev commented 6 years ago

Thank you for confirming