mingw32

Qt's qmqtt comiplation issues on Windows 10

Deadly 提交于 2019-12-11 05:33:18
问题 I am trying to develop a simple POC using qmqtt but this module is not available in the Qt lib path. I have the latest Qt version installed, still it's not there. So, I am trying to compile it under Windows using mingw32 and I get undefined references from the qmqtt's source. Qt version:5.11.2 Below is the compilation log: E:\Xavier\qmqtt>mingw32-make cd src\ && ( if not exist Makefile E:\Xavier\Qt\5.11.2\mingw53_32\bin\qmake.exe -o Makefile E:\Xavier\qmqtt\src\src.pro ) && mingw32-make -f

openCV mingw-32 error in cmd

孤街浪徒 提交于 2019-12-11 05:25:29
问题 I've got an error. The error is occurred in cmd directory where openCV is when I use the command mingw32-make. My OS is win 7 64 bit. I followed this user guide: http://www.ti.com/lit/ug/dlpu042/dlpu042.pdf Any help is appreciated!Here is the error in cmd: C:\OpenCV>mingw32-make [ 0%] Built target gen-pkgconfig [ 2%] Built target zlib [ 5%] Built target libjpeg-turbo [ 8%] Built target libtiff [ 16%] Built target libwebp [ 19%] Built target libjasper [ 20%] Built target libpng [ 25%] Built

Mingw g++ does not recognize off_t when compiling with c++11

 ̄綄美尐妖づ 提交于 2019-12-10 14:49:51
问题 I have written the smallest possible test problem: #include <sys/types.h> int main(int argc, char** argv) { off_t l = 0; return 0; } The following works: g++ test.cpp But If I try to compile with c++11 I get: c:\test>g++ -std=c++11 test.cpp test.cpp: In function 'int main(int, char**)': test.cpp:5:2: error: 'off_t' was not declared in this scope test.cpp:5:8: error: expected ';' before 'l' test.cpp:6:9: error: 'l' was not declared in this scope Anyone can explain why this is happening? The

how to use a makefile for mingw on win32

主宰稳场 提交于 2019-12-10 13:59:43
问题 i seem to have forgotten what is typed on the command line when using a makefile for a c program on a win32 machine. what i remember is that i should type something like mingw32 -make . but that is not working atm. ive done all the necessary stuff like setting environment mingw variables. any help on the command? 回答1: A lot depends on the details of your installation, but I suspect the problem is the space between mingw32 and -make . You want to use the mingw32-make command, not the mingw32

git: 'ssh-keygen' is not a git command. See 'git --help'

最后都变了- 提交于 2019-12-10 12:19:31
问题 I was trying to follow the instructions on GitHub to generate an SSH key so I can push from my laptop to my GitHub account. I'm using Git on Windows 10 with mingw32, and I entered this command in Git Bash (not cmd): ssh-keygen -t rsa -b 4096 -C "your_email@example.com" This failed with git: 'ssh-keygen' is not a git command. See 'git --help'. Why would that be and how can I fix it? 回答1: Make sure of your %PATH% (in a CMD) before entering your git bash session. If your PATH is correct, then

Installing Primer3

杀马特。学长 韩版系。学妹 提交于 2019-12-08 03:31:19
问题 I need to install Primer3 for my research in Windows, and I really have no idea of how to go about it. I was following the instructions mentioned here. I'm getting to the part where I need to run mingw32-make TESTOPTS=--windows and I keep getting an error saying: 'mingw32-make' is not recognized as an internal or external command, operable program or batch file. Just for reference, I went into the minGW Installation manager and got the ming32-make packages, including the bin, doc, lang, and

Why does my cross-compiling fail?

若如初见. 提交于 2019-12-08 02:44:47
问题 I'm new to Linux programming and I'm trying to compile a c file including the GTK+ library. My file is called test.c and it's supposed to run on Windows computers. I'm using the command: i586-mingw32msvc-gcc `pkg-config --cflags gtk+-3.0` -o test test.c `pkg-config --libs gtk+-3.0` I get an awful error, I tried to figure out what went wrong by myself but didn't manage to understand what's going on here. This is the output: 回答1: You're almost certainly running pkg-config with the host metadata

Undefined reference to posix_memalign using mingw32

戏子无情 提交于 2019-12-07 21:31:00
问题 I'm using Debian Squeeze, cross compiling for windows targets using mingw32. For a Linux target, I can use posix_memalign to allocate aligned memory. I can't seem to find a way to get this to work for windows targets; I get errors about undefined references. I have tried several alternative functions, to no avail. Example Code: #include <stdio.h> #include <stdlib.h> #include <malloc.h> int main(void) { char *foo; /* works on linux */ posix_memalign(&foo, 1024, 1024); /* deprecated linux */

Building static library using Code::Block with MinGW

别来无恙 提交于 2019-12-07 18:50:04
问题 I am using Code::Blocks with MinGW32 on a Windows machine. And I am trying to build a static library. I created a dummy hello world project. There is one single main.c file in the project. However, when I build it, I got the following message. It seems that there is no errors or warnings. It is just that no lib file is generated. mingw32-gcc.exe -Wall -g -c C:\Users\yzhong52\Desktop\hello_static_lib\main.c -o obj\Debug\main.o cmd /c if exist bin\Debug\libhello_static_lib.a del bin\Debug

Struct packing and alignment with mingw

你说的曾经没有我的故事 提交于 2019-12-07 05:28:19
问题 I am emulating code from an embedded system (stm32, Keil µVision 5, MDK-ARM) on a PC (mingw32, 32bit arch). The alignment of the ARM compiler does not match my desktop mingw build: // ARM Code (ARM compiler uses __packed) typedef __packed struct _file { uint8_t var1; uint16_t var2; } FILE; // PC mingw gcc code trying to emulate layout above. typedef struct __attribute__((packed, aligned(1))) _file { uint8_t var1; uint16_t var2; } FILE; In the source I do the following: file.var1 = 0x22; file