How to build a GIMP plug-in with Visual Studio? - visual-studio-2010

I am going to develop an application for android using the GEGL library of GIMP. I am using visual studio 10. how to build the plugin with visual studio? what are the steps? how to run a GIMP project and debug?
I have also come across GIMPVS. please enlighten me about this.
Also, can anybody suggest any tutorial for developing APIs in C using GEGL library?

You will need to be a bit more specific :)
When I compile GIMP plugins on windows, I simply download the libgimp headers and lib files from the gimp-win sourceforge project (they don't seem to be available for 2.6 though, try asking on the GIMP irc, download the gtk+ headers and libs from the gtk+ site, and compile as I would compile any other program.
I guess you can do the same for GEGL, although you'd probably have to compile gegl yourself since I don't remember seeing any gegl distribution for windows. In order to compile GEGL, you will need
a mingw/msys environment
Binaries and Development headers of Gtk+ and babl (You may have to compile babl yourself).
You can refer to the GEGL website for instructions about that. Again, more details on what you are trying to achieve would help :) You can refer to my website on the page about compiling gimp on windows, to find instructions which will help you compile gegl and friends on windows.

Related

Setting up QtCreator cross compiler for ARM on Windows

I need to develop Qt and command line software for the BeagleBone Black and Raspberry Pi-2. Ideally I wish to use QtCreator as I am accustomed to it, but in any case I need to use QtDesigner for GUI work.
I have spent days trawling through articles, going around in circles and getting nowhere.
The Raspberry Pi-2 has Raspbian/Jessie installed together with Qt 5.2.3. I can design, compile and run Qt desktop applications on this. Of course compilation is slow and not really usable for development work.
To try and keep matters simple, I downloaded qt-opensource-windows-x86-android-5.3.2.exe and installed that on my Windows 7 (64-bit) system. My belief is that this Qt install is the same version as the Qt on the Pi-2 and already contains the ARM7 library files required for cross-compiling. All that should be needed is a cross-compiler for Windows/ARM?
Windows/QtCreator complained in Tools > Options > Qt Versions about the Qt 5.3 for Android armv7 stating "No compiler can produce code for this Qt version...".
For a Windows/ARM cross-compiler I downloaded and installed Yagarto (yagarto-bu-2.23.1_gcc-4.7.2-c-c++_nl-1.20.0_gdb-7.5.1_eabi_20121222.exe). I figured I then just need to set the QtCreator compiler path in Tools > Options > Compilers and then things would start working. This is not the case.
Clearly I am missing something important and have managed to become confused by the number of not-quite-relevant articles I have read.
Is Yagarto the cross-compiler I need in this situation?
How do I define the compiler in QtCreator and get rid of the error?
Is there an easier way to set-up this stuff?
Thank you.
Details:
QtCreator 3.2.1 (Qt 5.3.2)
Windows 7 64-bit service pack 1
Edit:
I have just tried again using the GCC ARM Embedded ToolChain and GNU Make for Windows. The result is the same in that I cannot seem to configure the settings for QtCreator ARM7 and make it happy.

Compile Qt 5.2 application with the compiler MSVC2008

I have developed an application using Qt 5.2 which has be to be compiled in Visual studio 2008. But i found on the following link that the oldest MSVC compiler that can be used with Qt5 is MSVC2010.
Link
Is it possible to compile Qt 5.2 application with MSVC 2008 ?
Thank you for any pointers.
You will need one of three solutions:
1) Drop MS2008 and use a modern compiler
2) Use an older Qt that supports VS2008 (some Qt4 version)
3) Compile Qt5 with old compiler and hope the best
I would try to do 1) even if it means some effort. You should always try to stay up to date (and the longer you wait the more difficult it gets). If this isn't possible I would probably try 2) since it gives you an oudated but at least stable Qt. 3) is the worst solution at my opionion since anything could happen... without good chances to cleanly solve appearing compatibility issues.
As the http://download.qt-project.org/official_releases/qt/5.2/5.2.1/ (but also your link) shows there is no official package for Qt 5.2 with MSVC2008. However, this does not mean you should not try to compile it.
Just download the source from http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/ and try to compile it. I see in the mkspec directory an entry for win32-msvc2008 so in theory it should work, however I cannot guarantee that it will compile flawlessly.
But I am very curious how did you manage to
developed an application using Qt 5.2 which has be to be compiled in Visual studio 2008
Maybe you should upgrade your compiler to get the full benefits that come with it.

Gtkmm 3.0 library for Windows

Can someone give me a link where i can download a gtkmm 3.0 library for development without need to build it by myself?
thanks
http://live.gnome.org/gtkmm/MSWindows
That is the best I could find. It stops at 2.8, tough.
http://mail.gnome.org/archives/gtkmm-list/2011-April/msg00077.html
That is an email to the gtkmm mailing list from the windows installer developer. It seems that the dev doesn't have much time for it right now (or at least didn't on April 28, 2011).
Not much help, but that seems to be the state of gtk+ and gtkmm on windows right now.
The original question is old, but I post here for future visitors.
Apparently the link specified in senshikaze's answer is broken.
Windows installer (for both runtime and development stuff) is available from ftp.gnome.org
32-bit
64-bit
I built the gtkmm binaries over official gtk 3.6.4 binaries.
For 32 bit version you can download the binaries that I created, and there is also the (simple) procedure to create them yourself if you need 64 bit, everything on http://www.giuspen.com/2014/02/build-gtkmm-3-6-0-windows-binaries-on-official-gtk-3-6-4-bundle/
Gtk 3.0 library for windows is at hand from http://www.gtk.org/download/win32.php/
And you could find more optional dependence on http://win32builder.gnome.org/
But Gtkmm 3.0 hasn't have an official release, but some volunteer make it, I find a good one, http://sourceforge.net/projects/tview/files/gtkmm_bin_3_6.7z/download
I created a blog on how to install latest gtkmm on Windows (step by step) here:
http://gtkmm-installation.blogspot.com/
UPDATE:
I have just compiled everything with Visual Studio, You can download my gtkmm3 development binaries for Windows x64 from my GitHub page, I also made a wiki entry on how to compile everything on your own with Visual Studio.
All of the Visual Studio projects to compile everything can also be found on GitHub.
You can install it with vcpkg.

Compiling OpenCV on Windows 7 64bit

I'm trying to get OpenCV working on Windows 7 64bit.
I tried installing the vs2008.exe installer bundle from the OpenCV website but it produced errors when trying to compile, I Google'd these and it appears that installer is no good for 64bit versions of Windows 7, bugger.
I've tried having a crack at compiling using CMake, but really having no luck, does anyone know of a way to get OpenCV installed on here so I can use it in VS2010?
Cheers
Managed to solve it, in the 'release' folder which CMake creates I was opening the wrong file with VS2010, I opened the project file and then had it run a build.
Then I changed the parameters in my project which wanted to use OpenCV to look in release for the appropriate files, needed a bit of fiddling but I think I have it now.
For anyone else interested in a guide how to compile OpenCV with TBB support in Visual Studio 2010, I created a video tutorial for it: http://www.youtube.com/watch?v=XeBhwbRoKvk
(although this is for Windows 7 32 bit)

Build GTK with Windows SDK

how can I compile gtk (itself) with Windows SDK ?
Building in Visual Studio is still quite a lot of work. I've done it, but I don't have reproducible steps for you right now. However, if you have a Linux machine around and are willing to cross-compile I have written up directions on how to build GTK+ for Win32 by cross-compiling.
http://live.gnome.org/Cross%20compiling%20GTK%2B%20for%20Win32
It's also possible to build using MSYS in the command-line on Windows, but that's also a major pain in the ass to get setup. It's also really, really slow. Cross-compiling from Linux is, at a minimum, ten times faster. I'm not 100% sure but it seems to be because if you build using the standard build system then there is a lot of process spawning, which is quite expensive in Win32 compared to Linux.
However, if you want to go this way then install MSYS and pull down the source for glib, atk, cairo, pango, and gtk+.. then try to build using the standard Linux way:
1/ untar the source tarball
2/ in the source's root directory do: ./configure
3/ make
There will undoubtedly be other dependencies that you need to install, such as libpng and libjpeg.
Try the HexChat builds. They use Visual Studio 2010 and come with some prepared scripts and solutions to make your life much easier. Oh and you get binary downloads as well.
http://gtk.hexchat.org/
GTK can be compiled under Cygwin or Microsoft Visual C++.
Did you try this installation method? Look the Microsoft Windows section...
Hope it helps!

Resources