User forums > Using Code::Blocks
Compile gtkm3 project on windows
stahta01:
You will likely have to install mingw-w64-x86_64-pkg-config
Tim S.
rebraoul:
Looking at your test code, it is exactly the same as the one I tested and return errors. Yours compiles and works, mine not... still returning the same errors. see below the log:
--- Code: ----------------- Build: Debug in testgtkmm (compiler: GNU GCC Compiler)---------------
x86_64-w64-mingw32-g++.exe -Wall -mms-bitfields -pthread -mms-bitfields -IC:/dev/msys32/mingw64/include/gtkmm-3.0 -IC:/dev/msys32/mingw64/lib/gtkmm-3.0/include -IC:/dev/msys32/mingw64/include/atkmm-1.6 -IC:/dev/msys32/mingw64/include/gdkmm-3.0 -IC:/dev/msys32/mingw64/lib/gdkmm-3.0/include -IC:/dev/msys32/mingw64/include/giomm-2.4 -IC:/dev/msys32/mingw64/lib/giomm-2.4/include -IC:/dev/msys32/mingw64/include/pangomm-1.4 -IC:/dev/msys32/mingw64/lib/pangomm-1.4/include -IC:/dev/msys32/mingw64/include/glibmm-2.4 -IC:/dev/msys32/mingw64/lib/glibmm-2.4/include -IC:/dev/msys32/mingw64/include/gtk-3.0 -IC:/dev/msys32/mingw64/include/cairo -IC:/dev/msys32/mingw64/include -IC:/dev/msys32/mingw64/include/pango-1.0 -IC:/dev/msys32/mingw64/include/fribidi -IC:/dev/msys32/mingw64/include -IC:/dev/msys32/mingw64/include/atk-1.0 -IC:/dev/msys32/mingw64/include/cairo -IC:/dev/msys32/mingw64/include/cairomm-1.0 -IC:/dev/msys32/mingw64/lib/cairomm-1.0/include -IC:/dev/msys32/mingw64/include/cairo -IC:/dev/msys32/mingw64/include/pixman-1 -IC:/dev/msys32/mingw64/include -IC:/dev/msys32/mingw64/include/freetype2 -IC:/dev/msys32/mingw64/include -IC:/dev/msys32/mingw64/include/harfbuzz -I/mingw64/include -IC:/dev/msys32/mingw64/include/libpng16 -IC:/dev/msys32/mingw64/include/sigc++-2.0 -IC:/dev/msys32/mingw64/lib/sigc++-2.0/include -IC:/dev/msys32/mingw64/include/gdk-pixbuf-2.0 -IC:/dev/msys32/mingw64/include/libpng16 -IC:/dev/msys32/mingw64/include -IC:/dev/msys32/mingw64/lib/libffi-3.2.1/include -IC:/dev/msys32/mingw64/include/glib-2.0 -IC:/dev/msys32/mingw64/lib/glib-2.0/include -IC:/dev/msys32/mingw64/include -g -std=c++14 -m64 -IC:\dev\msys32\mingw64\include\gtkmm-3.0 -c C:\Work\Programmation\Essais\EssaiGtkmStahta01\main.cpp -o obj\Debug\main.o
x86_64-w64-mingw32-g++.exe -LC:\Work\Programmation\Pplot\plplot-5.14.0.tar\plplot-5.14.0 -o bin\Debug\testgtkmm.exe obj\Debug\main.o -LC:/dev/msys32/mingw64/lib -lgtkmm-3.0 -latkmm-1.6 -lgdkmm-3.0 -lgiomm-2.4 -lpangomm-1.4 -lglibmm-2.4 -lgtk-3 -lgdk-3 -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm -ldwmapi -lsetupapi -lcfgmgr32 -lz -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lgio-2.0 -lcairomm-1.0 -lcairo -lsigc-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -m64
--- End code ---
stahta01:
--- Quote from: rebraoul on January 31, 2019, 08:21:40 am ---Looking at your test code, it is exactly the same as the one I tested and return errors. Yours compiles and works, mine not... still returning the same errors. see below the log:
--- End quote ---
I saw no error in the build log. What type of error are you getting? Build Error or Run-time error?
I suggest trying my project to see if it works for you.
Tim S.
stahta01:
Are you trying to build 64 bit or 32bit? Because you look like you are mixing them!
If building 64 bit, Uninstall msys2 32 bit and then install msys2 64 bit!
C:/dev/msys32
Edit: MSys2 64 bit can be used to create and run both 32 bit and 64 bit programs.
My guess is that MSys2 32 bit can be used to create 32 bit and 64 bit programs; but, can only run 32 bit programs.
Edit2: I have used an MSys2 64 bit installation to create 32 bit apps and it works rather well.
But, I have never tried using MSys2 32 bit installation to make 64 bit apps!
Tim S.
Navigation
[0] Message Index
[*] Previous page
Go to full version