NatronGitHub / Natron

Open-source video compositing software. Node-graph based. Similar in functionalities to Adobe After Effects and Nuke by The Foundry.
http://NatronGitHub.github.io
GNU General Public License v2.0
4.56k stars 333 forks source link

error: undefined symbol: google::kLogSiteUninitialized #807

Open Martinfx opened 2 years ago

Martinfx commented 2 years ago

Make sure to follow our issue report guidelines

Natron version

v2.5.0-alpha.2

Operating system

FreeBSD 13.1

System specs

CPU: AMD Ryzen 5 1600 Six-Core Processor (3200.28-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX> Structured Extended Features=0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA> XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr,IBPB> SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 8231763968 (7850 MB)

Did you install Natron using the official installer?

Custom installation path

No response

What were you trying to do?

Normal test compilation and make port to freshport back

What did you expect to happen? What happened instead?

Normal compilation but undefined symbol

clang++ -Wl,-rpath,'$ORIGIN/../lib',-z,origin -pthread -Wl,-rpath,/usr/local/lib/qt5 -o Tests gtest-all.o gmock-all.o BaseTest.o Hash64_Test.o Image_Test.o Lut_Test.o KnobFile_Test.o Curve_Test.o Tracker_Test.o wmain.o   -L/usr/local/lib -L/usr/home/maxfx/Documents/Natron/Tests/../Gui/ -lGui -L/usr/home/maxfx/Documents/Natron/Tests/../Engine/ -lEngine -L/usr/home/maxfx/Documents/Natron/Tests/../HostSupport/ -lHostSupport -L/usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/ -lLibMV -L/usr/home/maxfx/Documents/Natron/Tests/../libs/openMVG/ -lopenMVG -L/usr/home/maxfx/Documents/Natron/Tests/../libs/ceres/ -lceres -L/usr/home/maxfx/Documents/Natron/Tests/../libs/glog/ -lglog -L/usr/home/maxfx/Documents/Natron/Tests/../libs/gflags/ -lgflags -L/usr/home/maxfx/Documents/Natron/Tests/../libs/qhttpserver/build/ -lqhttpserver -L/usr/home/maxfx/Documents/Natron/Tests/../libs/hoedown/build/ -lhoedown -L/usr/home/maxfx/Documents/Natron/Tests/../libs/libtess/ -ltess -lX11 -lpython3.8 -lcrypt -ldl -lintl -lutil -lm -lboost_serialization -lexpat -lcairo -lpthread -lfontconfig -lfreetype -Llib -lpyside2.cpython-38 -lshiboken2.cpython-38 -lexecinfo /usr/local/lib/qt5/libQt5OpenGL.so /usr/local/lib/qt5/libQt5Widgets.so /usr/local/lib/qt5/libQt5Gui.so /usr/local/lib/qt5/libQt5Network.so /usr/local/lib/qt5/libQt5Concurrent.so /usr/local/lib/qt5/libQt5Core.so -lGL   
ld: error: undefined symbol: google::kLogSiteUninitialized
>>> referenced by track_region.cc
>>>               track_region.o:(libmv::(anonymous namespace)::PixelDifferenceCostFunctor<libmv::(anonymous namespace)::TranslationWarp>::PearsonProductMomentCorrelationCoefficient(double const*) const) in archive /usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/libLibMV.a
>>> referenced by track_region.cc
>>>               track_region.o:(libmv::(anonymous namespace)::PixelDifferenceCostFunctor<libmv::(anonymous namespace)::TranslationWarp>::PearsonProductMomentCorrelationCoefficient(double const*) const) in archive /usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/libLibMV.a
>>> referenced by track_region.cc
>>>               track_region.o:(ceres::AutoDiffCostFunction<libmv::(anonymous namespace)::PixelDifferenceCostFunctor<libmv::(anonymous namespace)::TranslationWarp>, -1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0>::Evaluate(double const* const*, double*, double**) const) in archive /usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/libLibMV.a

Step-by-step reproduction instructions

  1. I did this https://github.com/NatronGitHub/Natron/blob/RB-2.5/INSTALL_FREEBSD.md
  2. qmake-qt5
  3. gmake

Additional details

No response

rodlie commented 2 years ago

Just guessing:

Is it trying to link against glog installed through ports (/usr/local/lib)?

Martinfx commented 2 years ago

I have installed glog in /usr/local/lib

devernay commented 2 years ago

-L/usr/local/lib should come after all the natron-specific libraries (last one is -ltess. My guess is that you have that in your links flags, and you should remove it from there and make sure it comes just after -ltess on that link line

arrowd commented 2 years ago

But it is Natron's build system that arranges compiler flags that way?