Comments (10)
@BowMonk Thanks for posting this issue, have you installed glog:x64-linux
?
from vcpkg.
Yes I have. It was also installed during the original full setup for vcpkg, and I also tried installing it separately. Nothing changed.
Would it be useful to provide the logs for the glog installation?
Just to inform about the specific glog version
libgoogle-glog-dev is already the newest version (0.5.0+really0.4.0-2).
The following packages were automatically installed and are no longer required:
docker-ce-rootless-extras libaccinj64-11.5 libcub-dev libcudart11.0 libcufft10 libcufftw10 libcupti-dev libcupti-doc
libcupti11.5 libcurand10 libcusparse11 libnppc11 libnppial11 libnppicc11 libnppidei11 libnppif11 libnppig11
libnppim11 libnppist11 libnppisu11 libnppitc11 libnpps11 libnvidia-cfg1-530 libnvidia-extra-530 libnvjpeg11
libnvrtc-builtins11.5 libnvrtc11.2 libnvtoolsext1 libnvvm4 libslirp0 libthrust-dev libvdpau-dev node-html5shiv
nvidia-cuda-gdb nvidia-cuda-toolkit-doc nvidia-firmware-535-535.154.05 nvidia-firmware-535-535.161.07
nvidia-opencl-dev ocl-icd-opencl-dev opencl-c-headers opencl-clhpp-headers slirp4netns
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 178 not upgraded.
And through vcpkg:
./vcpkg install glog:x64-linux
Computing installation plan...
The following packages are already installed:
glog:[email protected]#1
glog:x64-linux is already installed
All i did was clone the vcpkg repo, bootstrap, then run the install command, where colmap is the only place it fails.
Also, should I tag everytime I update here or just comment? Not sure how it goes since it's the first time I've had to submit an issue.
from vcpkg.
/home/bowmonk/nerf/Hierarchical-Localization/vcpkg/installed/x64-linux/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
60 | # error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
| ^~~~~
Thanks for the information, we don't include this header file logging.h
by default under linux
. I see that your compilation options also pass -DGLOG_USE_GLOG_EXPORT
. Can you provide your header file export.h
?
#if defined(GLOG_USE_GLOG_EXPORT)
# include "glog/export.h"
#endif
#if !defined(GLOG_EXPORT) || !defined(GLOG_NO_EXPORT)
# error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
#endif
vcpkg/ports/glog/portfile.cmake
Line 41 in 90a5b03
from vcpkg.
This is the export file under: home\bowmonk\nerf\Hierarchical-Localization\vcpkg\installed\x64-linux\include\glog\export.h
#ifndef GLOG_EXPORT_H
#define GLOG_EXPORT_H
#if 1
# define GLOG_EXPORT
# define GLOG_NO_EXPORT
#else
# ifndef GLOG_EXPORT
# ifdef GOOGLE_GLOG_IS_A_DLL
/* We are building this library */
# define GLOG_EXPORT
# else
/* We are using this library */
# define GLOG_EXPORT
# endif
# endif
# ifndef GLOG_NO_EXPORT
# define GLOG_NO_EXPORT
# endif
#endif
#ifndef GLOG_DEPRECATED
# define GLOG_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef GLOG_DEPRECATED_EXPORT
# define GLOG_DEPRECATED_EXPORT GLOG_EXPORT GLOG_DEPRECATED
#endif
#ifndef GLOG_DEPRECATED_NO_EXPORT
# define GLOG_DEPRECATED_NO_EXPORT GLOG_NO_EXPORT GLOG_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef GLOG_NO_DEPRECATED
# define GLOG_NO_DEPRECATED
# endif
#endif
#endif /* GLOG_EXPORT_H */
Hope this is the right export file.
And regarding logging.h, am I supposed to deal with that separately? Again, I haven't made any changes on top of just running the vcpkg command, so not sure why there would be extra things being required (or maybe I'm just really confused)
from vcpkg.
Is there any other information you need from me for reproduction? Or is the above enough for now?
from vcpkg.
@BowMonk Judging from the documents you provided, everything is normal.
This condition should not be triggered. Some other places may interfere with the judgment of this condition. 😢
#if !defined(GLOG_EXPORT) || !defined(GLOG_NO_EXPORT)
from vcpkg.
Alright thank you! Just want to clarify, you've been unable to reproduce this error and you think something else in my setup is causing the issue? It ran with no issues for you?
from vcpkg.
@BowMonk You can try clearing the cache of vcpkg and try again.
from vcpkg.
Pinging @BowMonk for response, could you please test PR #39006 resolve this issue or not?
from vcpkg.
Can't test at the moment, however I will try in a week or so.
from vcpkg.
Related Issues (20)
- [openssl] Build error on x64-android HOT 3
- [numcpp] change boost dependencies to a feature
- [libsystemd] Build error on x64-linux HOT 1
- [qt5-webengine] Build error on x86-windows [Windows detecting a virus and causing the build to fail] HOT 3
- [pcl] Build error on x64-linux-dynamic HOT 1
- [cpp-httplib] update to 0.16.0
- [fastrtps2.14.0] <Debug mode crashes>
- [GDCM] update to 3.0.24
- [fastrtps2.14.0] <Missing fast-discovery-serverd-1.0.1.exe during construction> HOT 1
- [qt] update to 6.7.2 HOT 2
- Incorrect documentation when using manifest mode with CMake HOT 5
- [protobuf] Build error on x64-windows HOT 2
- Build error on x64-windows HOT 3
- [ceres] Build error on x64-windows HOT 1
- [ceres] Build error on x64-windows: Overload in 'extern "C"' HOT 2
- [ffmpeg] Unclear error when building in path with spaces in manifest mode HOT 2
- [sqlite3] Lack of DB recovery feature. HOT 2
- Can't Reuse Binary Cache genearte from Linux on a macos host for abi mismatch HOT 7
- Qt include issues with Vcpkg & Visual Studio 2022 HOT 15
- [boost-core] Build error on x64-windows HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcpkg.