cost 81 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 的依賴項。 這樣做我得到了未定 ...

C++ 為什么找不到 MSYS2 MINGW UCRT x64 gdb 命令

[英]C++ Why is MSYS2 MINGW UCRT x64 gdb command not found

因此,我嘗試檢查 Mingw-w64 工具是否已正確安裝,gcc、g++ 是否已正確安裝,但 gdb 是否已正確安裝。 我打算在 windows 10 中使用 Visual studio 代碼。在https://code.visualstudio.com/docs/cpp/config-mingw# ...

在為 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& ...

在 msys2 之外運行 gtk2 程序 shell

[英]Running a gtk2 program outside the msys2 shell

如果我提請您注意有關不再支持的舊 GTK2 的問題,請原諒。 我需要在 windows 上編譯一個用 C/GTK2 編寫的程序。 Glade-2 和 DEVc++ 是一個很好的解決方案,但 pango 庫已經過時並且缺少許多功能。 我使用 MSYS2 成功編譯,但是在 shell 之外運行的程序 ...

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  
從 c 語言的字符串工具中隱藏字符串

[英]Hiding strings from strings tool in c language

目標是聲明 char arrays 在使用像strings這樣的工具時不顯示方法 方法 2 在 linux 上工作正常,但在 windows 上這是無用的代碼,我得到visibility attribute not supported in this configuration; ignored [ ...

VCPKG package 安裝在帶有分號的錯誤路徑上失敗

[英]VCPKG package installation fails on wrong path with semicolon

我是 MSYS2、VCPKG 和 CMAKE 的新手。我想通過 MSYS2/UCRT64 和 VCPKG 在 Windows 上構建 package MSDFGEN。到目前為止我做了什么: 安裝 Visual Studio Community Edition + 安裝 MSYS2 + 啟動 UCRT ...

如何永久更改 MSYS2 路徑?

[英]How do I permanently change the MSYS2 PATH?

我想將/mingw64/bin永久添加到 MSYS2 PATH。 我試過了: export PATH=$PATH:/mingw64/bin 它一直有效,直到我退出。 在我重新啟動 MSYS2 之后,路徑已重置為之前的狀態。 我需要做什么才能將/mingw64/bin添加到 PATH,以便在我退出並 ...

2022-12-28 14:47:31   1   8    path / 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 ...

無法在 Eclipse (Win10) 中啟動調試器

[英]Failed to start debugger in Eclipse (Win10)

我正在嘗試從 Windows 10 下的 Eclipse 調試 Fortran 控制台應用程序。 使用來自 MSYS2 的編譯器,構建和運行工作正常。 但是,啟動調試器會產生: 最終啟動順序錯誤: 正確找到了 gdb.exe,但似乎二進制文件的路徑以/c/Windows/system32/為前綴,並 ...

我如何在 gcc 中使用外部庫?

[英]How do I use an external library with gcc?

我正在嘗試編譯這段代碼:#include &lt;GLFW/glfw3.h&gt; int main() { glfwInit(); glfwTerminate(); return 0; } 在 Windows 10 的 MSYS2 中使用此命令:gcc -Wall ...

2022-12-21 12:30:25   2   43    c / gcc / msys2  
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 ...

在 windows 機器上安裝 numpy 和 pip

[英]Installing numpy with pip on windows machine

我一直在嘗試安裝 pip 有一段時間了。 我的 python 版本是python 3.9.11 ,我的 pip 版本是pip 22.3.1 。 我無法安裝numpy 、 opencv-python或任何其他與此相關的庫。 我唯一能夠做到的是imutils 。 當我嘗試安裝 wil pip 22.3 ...

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