Closed universewill closed 6 years ago
I'm getting similar issues with unresolved external symbols for google::Flagregisterer on my Win10 - latest github code - MSVC 2017 -T v140 cuda 9.2.
I get ...
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl google::FlagRegisterer::FlagRegisterer(char const *,char const *,char const *,char const *,void *,void *)" (__imp_??0FlagRegisterer@google@@QEAA@PEBD000PEAX1@Z) referenced in function "void __cdecl fLB::dynamic initializer for o_3d''(void)" (??__Eo_3d@fLB@@YAXXZ)
... on the examples when I try and link against the versions of gflags and glog that I've installed via VCPKG rather than the bundled versions in the zip files. I'm trying to build a vcpkg port and am trying to see if I can link the building of openpose against other vcpkg-able libraries.
Building openpose with the bundled libs works fine, its just when I'm trying to use my other versions that I get this error. Perhaps the original poster is accidentally linking against other versions in their /lib directory?
That is because your Conda package is messing with your linker search paths. Conda likely has a newer version of GLOG that may not be compatible with Caffe. Try to remove Conda from your search path
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I hava a same condition with you ,dou you solve it?
my enviroment: ubuntu16.04 , cuda9.0, cudnn7.0.5, python3.6
OpenPose version: Latest GitHub code
General configuration: Installation mode: cmake .. with python option turned on gcc version: 5.4.0
cmake version: 3.11.1
I encounter 'undefined reference to google::FlagRegisterer' error when run 'make -j
nproc
' command. However, i already installed libgflags-dev libgoogle-glog-dev using apt-get. Besides, how to turn the BUILD_python and USE_OPENCV option on while buiding caffe? I use a ubuntu server with no gui.I add user root to run make -j
nproc
, and the error is gone. Can anyone tell me why?Here is the print log: