YuvalNirkin / face_swap

End-to-end, automatic face swapping pipeline
GNU General Public License v3.0
825 stars 203 forks source link

libraries may not be found correctly #50

Closed Haylemicheal closed 4 years ago

Haylemicheal commented 4 years ago

i got a warning while buildning the cmake file on the cafee installation procedure "cmake -DCPU_ONLY=ON -DBUILD_python=OFF -DBUILD_python_layer=OFF -DCMAKE_INSTALL_PREFIX=/usr/local .. "

The output says "CMake Warning at examples/CMakeLists.txt:11 (add_executable): Cannot generate a safe runtime search path for target convert_mnist_siamese_data because files in some directories may conflict with libraries in implicit directories: runtime library [libglog.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /anaconda3/envs/faceswap/lib

runtime library [libgflags.so.2.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /anaconda3/envs/faceswap/lib

runtime library [libleveldb.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /anaconda3/envs/faceswap/lib Some of these libraries may not be found correctly.

YuvalNirkin commented 4 years ago

Life is too short to worry about warnings :wink: More importantly does it work?

Haylemicheal commented 4 years ago

It doesn't work. I got an error while making the "make all -j8" instruction in the caffee compilation process. The error says: CMakeFiles/caffe.bin.dir/caffe.cpp.o: In function train()': caffe.cpp:(.text+0x23df): undefined reference togoogle::protobuf::RepeatedPtrField<std::cxx11::basic_string<char, std::char_traits, std::allocator > >::Add()' caffe.cpp:(.text+0x305d): undefined reference to `google::protobuf::RepeatedPtrField<std::cxx11::basic_string<char, std::char_traits, std::allocator > >::Clear()' caffe.cpp:(.text+0x3515): undefined reference to google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Clear()' caffe.cpp:(.text+0x3524): undefined reference togoogle::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::Add()' ../lib/libcaffe.so.1.0.0: undefined reference to google::protobuf::internal::ArenaImpl::AllocateAlignedAndAddCleanup(unsigned long, void (*)(void*))' ../lib/libcaffe.so.1.0.0: undefined reference toboost::thread::start_thread_noexcept()' ../lib/libcaffe.so.1.0.0: undefined reference to google::protobuf::RepeatedField<float>::Add(float const&)' ../lib/libcaffe.so.1.0.0: undefined reference togoogle::protobuf::internal::AddDescriptors(google::protobuf::internal::DescriptorTable const*)' ../lib/libcaffe.so.1.0.0: undefined reference to google::protobuf::RepeatedField<unsigned int>::~RepeatedField()' ../lib/libcaffe.so.1.0.0: undefined reference toboost::thread::detach()' ../lib/libcaffe.so.1.0.0: undefined reference to boost::detail::thread_data_base::~thread_data_base()' ../lib/libcaffe.so.1.0.0: undefined reference togoogle::protobuf::internal::WireFormatLite::UInt32Size(google::protobuf::RepeatedField const&)' ../lib/libcaffe.so.1.0.0: undefined reference to boost::filesystem::path::replace_extension(boost::filesystem::path const&)' ../lib/libcaffe.so.1.0.0: undefined reference togoogle::protobuf::RepeatedField::~RepeatedField()' ../lib/libcaffe.so.1.0.0: undefined reference to `google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::Get(int) const'

clmrie commented 4 years ago

@YuvalNirkin Hi sir! Could you please tell me how could I get the "face_swap_export.h" file ?

YuvalNirkin commented 4 years ago

@Haylemicheal You are apparently missing the protobuf library. @clmrie It is generated in the make process.

clmrie commented 4 years ago

@YuvalNirkin Thank you for answer. Could you explain me how to do the "make process"? Sorry for the nooby questions.

YuvalNirkin commented 4 years ago

Follow the installation guide: https://github.com/YuvalNirkin/face_swap/wiki/Ubuntu-Installation-Guide