Re: Compiling on Windows...At ALL



Hi!,

El Tue, Nov 10, 2015 at 09:23:41AM -0800, Jason C. McDonald escribio:
On 11/10/2015 08:47 AM, Dr. Diether Knof wrote:> I have testet in
Windows XP 32 bit (in a virtual machine), there I need the > dwmapi.dll
for the 3er version. That dll first appears with Vista, so I took > the
(dummy) one from wine. > > Greetings > Diether

Yeah, I did notice that. I was finally able to successfully build in
Windows 7 64-bit using MSYS2, but I was only able to get the 64-bit
version. The 32-bit version still escapes me (more DLL errors). I'll
post that information once I get back to that task.

Well, today I tried to compile one application in Windows 10, and it
worked, so I figured to post here what I did:

- Install msys2, from https://msys2.github.io/

- Followed the instructions, including the first update, closed msys2
  prompt and opened it again.

- In the msys2 prompt, install gcc, gtkmm3 and pkg-config:

  pacman -S mingw-w64-i686-gcc mingw-w64-i686-gtkmm3 pkg-config

- Open the MINGW32 prompt, compile.


Attached is a simple program to demonstrate the compilation, I compiled
with the following command line:

  g++ -O2 -std=c++11 -Wall -o hbar-gtkmm \
       `pkg-config --cflags gtkmm-3.0`   \
       hbar-gtkmm.cc                     \
       `pkg-config --libs gtkmm-3.0`

  ./hbar-gtkmm.exe


Note that -std=c++11 is needed.


Hope it helps,

    Daniel.

Attachment: hbar-gtkmm.cc
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]