Coder Social home page Coder Social logo

[colmap] Build error on x64-linux about vcpkg HOT 8 OPEN

BowMonk avatar BowMonk commented on June 21, 2024
[colmap] Build error on x64-linux

from vcpkg.

Comments (8)

FrankXie05 avatar FrankXie05 commented on June 21, 2024

@BowMonk Thanks for posting this issue, have you installed glog:x64-linux?

from vcpkg.

BowMonk avatar BowMonk commented on June 21, 2024

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.

FrankXie05 avatar FrankXie05 commented on June 21, 2024
/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_replace_string("${CURRENT_PACKAGES_DIR}/include/${PORT}/export.h" "#ifdef GLOG_STATIC_DEFINE" "#if 1")

from vcpkg.

BowMonk avatar BowMonk commented on June 21, 2024

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.

BowMonk avatar BowMonk commented on June 21, 2024

Is there any other information you need from me for reproduction? Or is the above enough for now?

from vcpkg.

FrankXie05 avatar FrankXie05 commented on June 21, 2024

@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.

BowMonk avatar BowMonk commented on June 21, 2024

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.

FrankXie05 avatar FrankXie05 commented on June 21, 2024

@BowMonk You can try clearing the cache of vcpkg and try again.

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.