Closed GoodTekken closed 2 years ago
Could you tell me how you installed ifm3d? Did you build from source or use apt?
Use apt below:
$ sudo apt-get update $ sudo apt-get install ifm3d-camera \ ifm3d-framegrabber \ ifm3d-swupdater \ ifm3d-image \ ifm3d-opencv \ ifm3d-pcicclient \ ifm3d-tools \ ifm3d-python3 \ ifm3d-pcl-viewer \
@GoodTekken ,are you using glog from the Ubuntu apt-repository or do you have a local installation from source or do you have glog included into your code base. There is an issue if you mix the versions of glog.
Many Thanks. @lola-masson @graugans ,It can work now when I specify the library below.
#glog
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../lib/x86_64-linux-gnu/release/ -lglog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../lib/x86_64-linux-gnu/debug/ -lglog
else:unix:` LIBS += -L$$PWD/../../../../lib/x86_64-linux-gnu/ -lglog
INCLUDEPATH += $$PWD/../../../../lib/x86_64-linux-gnu
DEPENDPATH += $$PWD/../../../../lib/x86_64-linux-gnu
Hello, I have the same issue with ERROR: something wrong with flag 'logtostderr' in file 'src/logging.cc'. One possibility: file 'src/logging.cc' is being linked both statically and dynamically into this executable..
But I cannot pass the compile even if follow the step.
The version of QT is 5.14.2, and I found that if I just use the <glog/logging.h> with another code individual it can pass compile. But when I add the auto cam = ifm3d::Camera::MakeShard() it will be error.
My ubuntu is 20.04, and ifm3d is 0.18.0, So I doubt that if anything compatibility with the ifm3d library.