cost 166 ms
使用 cmake 为 msys2/mingw64 构建 gRPC 和 openssl 作为依赖项失败,引用未定义 - Building gRPC and openssl as dependency with cmake for msys2/mingw64 fails with undefined references

我正在尝试使用更改的文件树结构和我自己的带有 msys2/mingw64 的 CMakeLists.txt 构建 grpc helloworld 示例。 我想使用 add_subdirectory 从源构建 grpc 作为 static 库,并从源递归地构建 grpc 的依赖项。 这样做我得到了未定 ...

在为 PDCurses 编译此示例代码时,为什么仅未定义对 endwin() 的引用? - Why is only the reference to endwin() not defined, when compiling this example code for PDCurses?

在为 PDCurses 编译示例 hello-world.c 时,linker 似乎无法找到 endwin() function。 注释掉包含endwin()的行,代码编译正常并且程序运行。 这是示例代码,取自此处(来自 source/pdce0.c):#include <curses.h& ...

gcc /g++ 生成 windows 可执行文件,仅在 msys2 bash 上创建 output,而不在其他终端上创建 - gcc /g++ produces windows executables that only create output on msys2 bash, not on other terminals

我有三台机器在 Windows 10 上运行 VSCode,并为 C++ 设置了 msys2 / mingw64 /gcc。 还安装了 Microsoft Compiler cl.exe 和 Visual Studio 构建工具。 他们通过 Github 共享彼此的代码。 在一台机器上,我在 Win ...

2023-01-12 22:26:51   1   46    c++ / gcc / msys2  
msys64/ucrt64/include/vips/vips8:35:10: 致命错误: glib-object.h: 没有这样的文件或目录#include<glib-object.h></glib-object.h> - msys64/ucrt64/include/vips/vips8:35:10: fatal error: glib-object.h: No such file or directory #include <glib-object.h>

我正在尝试使用 mingw32-make 进行编译,但显示以下错误: makefile 是: 而且文件太大所以我会显示错误在哪里(第 7 行包括 &lt;vips/vips8&gt;: 我感谢您的帮助。 现在我正在使用 Msys UCRT64 开发 windows 11,我最后尝试的是使用pac ...

使用 MSYS MinGW 64 安装 matplotlib 为 Python - Install matplotlib for Python with MSYS MinGW 64

我想使用 MSYS MinGW x64 为 Python 安装 matplotlib。 命令 以前失败过。 然后我做了一些更改,现在我想再次尝试上面的命令,但我只收到这些错误消息: 我的问题:如何删除缓存文件,以便再次收到有意义的错误消息。 或者还有另一种方法可以使用 MSYS MinGW x64 ...

由于运行时错误缺少 Qt5OpenGL.dll 和 Qt5Test.dll,无法运行 OpenCV-App - Can't run OpenCV-App because of runtime error missing Qt5OpenGL.dll and Qt5Test.dll

我想使用 cmake 构建的 OpenCV 库构建一个应用程序。首先我下载了 opencv4.5.5 的源代码。 我在该文件夹中创建了一个子文件夹 mingwbuild,从那里我可以执行命令“cmake ../ -G”MinGW Makefiles“然后我运行命令”mingw32-make ins ...

git for windows 和 WSL 中的 git 之间的功能差异 - Functional differences between git for windows and git in WSL

据我了解,用于 Windows 的 git 附带了一个本地 Windows 平台二进制文件,它可以从基于 msys2 的 bash 仿真进行连接,只是为了隐藏平台差异。 还可以在 WSL2 中使用 linux 二进制文件,它依赖于整个 WSL 兼容层。 通过 WSL 使用 git 和通过 git b ...

README.md 文件的符号链接 - Symlink for README.md file

我正在尝试在我的 GitHub 存储库中创建一些符号链接。 文件结构如下: 如何实施? 我尝试使用以下命令在上面提到的所需位置创建符号链接,使用 Git Bash。但是,运气不好。 我不知道我做错了什么。 谁能帮我? ...

我编译时在MYSYS2中设置了rpath为gcc,但是程序运行时找不到,这是为什么呢? - I set the rpath with gcc in MYSYS2 when compiling, but the program can't find it when running, so why?

在我的工作目录中有main.c和一个名为lib的文件夹,里面有libtest.dll 。 我用 $ gcc main.c -ltest -L./lib -Wl,-rpath=./lib 编译,编译过程没有问题(没有warning和error)。 但是当我运行a.exe时系统提醒 D:/MYSY2/ ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM