Re: Compiling on Windows...At ALL



Hey guys,
If you have problems compiling gtkmm, have a look at Visual-Studio-gtkmm wiki


For gtkmm with gcc and code blocks see this


On Thu, Nov 19, 2015 at 4:40 PM, Daniel Serpell <dserpell gmail com> wrote:
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.


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list




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