Comments (4)
You need to run CMake in the MINGW64 / MSYS2
shell not MSYS / MSYS2
. You may need to install the mingw-w64-x86_64-cmake
package. See our MinGW github action for reference:
glog/.github/workflows/windows.yml
Lines 179 to 186 in cafba58
from glog.
Could you please provide the full output of cmake --build build --verbose
?
from glog.
This is the complete output
$ cmake --build build --verbose
Change Dir: '/c/Users/xxx/Documents/glog/build'
Run Build Command(s): /usr/bin/cmake.exe -E env VERBOSE=1 /usr/bin/make.exe -f Makefile
/usr/bin/cmake.exe -S/c/Users/xxx/Documents/glog -B/c/Users/xxx/Documents/glog/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake.exe -E cmake_progress_start /c/Users/xxx/Documents/glog/build/CMakeFiles /c/Users/xxx/Documents/glog/build//CMakeFiles/progress.marks
/usr/bin/make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/c/Users/xxx/Documents/glog/build'
/usr/bin/make -f CMakeFiles/glog_internal.dir/build.make CMakeFiles/glog_internal.dir/depend
make[2]: Entering directory '/c/Users/xxx/Documents/glog/build'
cd /c/Users/xxx/Documents/glog/build && /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles" /c/Users/xxx/Documents/glog /c/Users/xxx/Documents/glog /c/Users/xxx/Documents/glog/build /c/Users/xxx/Documents/glog/build /c/Users/xxx/Documents/glog/build/CMakeFiles/glog_internal.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/c/Users/xxx/Documents/glog/build'
/usr/bin/make -f CMakeFiles/glog_internal.dir/build.make CMakeFiles/glog_internal.dir/build
make[2]: Entering directory '/c/Users/xxx/Documents/glog/build'
[ 3%] Building CXX object CMakeFiles/glog_internal.dir/src/demangle.cc.obj
/mingw64/bin/CC.exe -DGFLAGS_IS_A_DLL=0 -DGLOG_NO_SYMBOLIZE_DETECTION -DGLOG_USE_GFLAGS -DGLOG_USE_GLOG_EXPORT -DGOOGLE_GLOG_IS_A_DLL -I/c/Users/xxx/Documents/glog/src -I/c/Users/xxx/Documents/glog/build -I/usr/local/include -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/glog_internal.dir/src/demangle.cc.obj -MF CMakeFiles/glog_internal.dir/src/demangle.cc.obj.d -o CMakeFiles/glog_internal.dir/src/demangle.cc.obj -c /c/Users/xxx/Documents/glog/src/demangle.cc
In file included from C:/Users/xxx/Documents/glog/src/demangle.cc:44:
C:/Users/xxx/Documents/glog/src/utilities.h:61:12: fatal error: port.h: No such file or directory
61 | # include "port.h"
| ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/glog_internal.dir/build.make:76: CMakeFiles/glog_internal.dir/src/demangle.cc.obj] Error 1
make[2]: Leaving directory '/c/Users/xxx/Documents/glog/build'
make[1]: *** [CMakeFiles/Makefile2:861: CMakeFiles/glog_internal.dir/all] Error 2
make[1]: Leaving directory '/c/Users/xxx/Documents/glog/build'
make: *** [Makefile:166: all] Error 2
from glog.
Thanks for your guidance, it helps a lot.
I am indeed using MINGW64/MSYS2. It should be caused by not installing the software package mingw-w64-x86_64-cmake. Because I did not encounter this problem when compiling other projects normally, I did not take it into consideration.
All in all, thank you very much
from glog.
Related Issues (20)
- [proposal] Provide pre-defined JSON log sink in glog HOT 2
- [Emscripten][Ubuntu 22.04.3 LTS] Use of undeclared identifier 'SYS_write' HOT 3
- building phase in Ubuntu 23.10 : /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPI HOT 3
- error in including <glog/logging.h> after installing glog according to the official tutorial HOT 2
- namespace "google" has no member "InitGoogleLogging" HOT 1
- FetchContent support HOT 4
- Customizing the Log Line Prefix HOT 2
- Can not build app integrating glog using CMake . HOT 3
- Using call_once could lead to infinite loop in fatal signal handler ? HOT 9
- bazel compilation with emscripten failed HOT 3
- HAVE_SYMBOLIZE missing on linux with bazel
- How do you solve this problem during installation? HOT 1
- Apply max_log_file constraint when timestamp_in_log_file=false
- Flag GLOG_v failed to set in Mac environment and resulting in incorrect printing of logs HOT 1
- why compile can not pass.it ocurrs the errors as follow。 HOT 3
- Cannot log to logcat on Android since 0.7.0 HOT 1
- Abseil or glog: what's the maintenance status? HOT 1
- Cmake --build build Error HOT 2
- Bazel build: Fix ignoring unknown option '-std=c++14' for Windows builds
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 glog.