如何在MINGW上免费编译Qt,同时静态编译mingw或Microsoft C++ express,而不是Studio.对于QT和mingw/mc++,我必须在本地提供哪些dll,以及如何也没有外部依赖?我正在XP VM上编译
我更喜欢mingw,由于linux-windows的兼容性,以及我在mingw编译的Qt程序的工作目录中需要什么dll来发布,而不是一台没有安装Qt或mingw的pc。
我正在使用Ubuntu,我想将我的项目编译成Linux和Windows。通过谷歌搜索,我找到了MinGW。我设置了makefile来为两个操作系统构建我的项目,Windows和Linux的参数完全相同。Linux的构建可以工作,但是当我运行Windows时,我会得到以下错误:
src/gl3w/glcorearb.h:616:10: fatal error: KHR/khrplatform.h: No such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilat
我正在尝试使用Mingw在Linux上交叉编译一个应用程序,并遇到以下错误消息:
db.h:14:20: fatal error: db_cxx.h: No such file or directory
我知道这是由Berkeley-DB包含文件不在Mingw包含树下引起的。
我的问题是:如何获取Berkeley-DB源文件并将其安装在Mingw include文件树下?
我正试图在windows上安装。包包含一个Tar.Gz文件,并包含一个Configure文件。所以使用安装软件包是必要的,因为包是设计为安装在Linux上的。
我安装了MinGW和MSYS。我已经确保C:\MinGW\msys\1.0\etc\fstab包含行C:\MinGW /mingw (加上它下面的空行)。
我的问题:我仍然不能让窗口运行Configure文件。当我在CMD中输入./Configure时,就会得到错误'.' is not recognized as an internal or external command, operable program or
安装QT平原没有问题,但是当您需要用MySQL驱动程序插件重新编译QT时呢?令人困惑。当我运行配置时,Qt会注册我的MySQL驱动程序,但是当我尝试运行mingw32-make时,这个令人厌恶的东西会出现在我的命令提示符上:
g++.exe: ....corelibcodecsqisciicodec.cpp: No such file or directory
g++.exe: no input files
mingw32-make[2]: *** [tmp/obj/release_shared/qisciicodec.o] Error 1
mingw32-make[2]: Leaving d
我正在安装快板,以帮助我编译C++游戏和动画。我需要安装一个Make程序来让球滚动。我安装了CMake并试图将它连接到我的FreeBASIC编译器。我的CMake文件在FreeBASIC文件中,并试图让他们交谈。我使用了这个命令,它附带了关于如何安装CMake $ cmake ..的说明。
但那不管用。我得到了以下错误
CMake Error: The source directory "/home/miesrah/Downloads/FreeBASIC-0.90.1-linux/cmake-2.8.12.2-Linux-i386" does not appear to con
我想在PyInstaller上安装MinGW,但是用pip安装失败了。distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module如何正确安装它?如果这是不可能的,我还有其他选择吗?我正在尝试从Linux版本构建一个Python应用程序。
成功安装theano之后,我使用:
import theano
它只是给我一个警告:
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will
default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano fl
是否可以只安装x86_64-w64-mingw32-gcc?我只需要一个命令,mingw-w64安装就超过800 is .我正在使用Debian,但我刚刚尝试过的其他Linux版本也是如此。
$ sudo apt-get install mingw-w64 -V --no-install-recommends
...
The following NEW packages will be installed:
binutils-mingw-w64-i686 (2.31.1-11+8.3)
binutils-mingw-w64-x86-64 (2.31.1-11+8.3)
g++
我在linux上用g++运行一个程序,一切都很好。如果我使用x86_64-w64-mingw32-g++进行编译,它就会与error: ‘std::thread’ has not been declared一起崩溃。
我的代码崩溃的部分相当简单:
#include <thread>
int main()
{
int cores = std::thread::hardware_concurrency();
}
我了解到mingw使用win32线程,我希望它使用posix线程。版本是:
:~$ x86_64-w64-mingw32-g++ -v
Using built-in
我想我已经安装了所有必要的包。我不知道是什么导致我的问题,我不能成功地编译最新稳定的python。 ./configure --host=i686-w64-mingw32 --build=x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-w64-mingw32
checking for python3.7... python3.7
checking for python interpreter for cross build...
我有一个在Linux、MacOs和Windows上很好地构建和工作的golang库。当我试图在amd64 Windows上为386构建它时,问题就出现了。我已经安装了最新的golang和mingw,这使得amd64构建工作得很好,但没有安装386:
PS > gcc -v
gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.2.0
PS > go version
go version go1.18.3 windows/amd64
PS > $Env:GOOS = "windows
我有一个SFML应用程序,我想从Linux为Windows编译它。到目前为止,我已经用g++和-lsmfl-graphics -lsfml-window -lsfml-system编译了
现在我已经安装了g++-mingw-w64-x86-64,我必须用'/usr/bin/x86_64-w64-mingw32-g++'编译
现在它说SFML/.../...hpp: No such file or directory
我读到需要给它库的.so文件的位置。
我从来没见过,典型的在哪里?SFML安装在/usr/local/include/SFML中。
-L'/location