RSS/Atom feed Twitter
Site is read-only, email is disabled

Building GIMP plugins on Windows using msdev compiler/linker ...

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Building GIMP plugins on Windows using msdev compiler/linker ... steve@advance-software.com 26 Oct 16:12
  Building GIMP plugins on Windows using msdev compiler/linker ... Manish Singh 26 Oct 19:43
steve@advance-software.com
2008-10-26 16:12:02 UTC (about 16 years ago)

Building GIMP plugins on Windows using msdev compiler/linker ...

Hi guys,

build plug-ins that work with the "native" Windows GIMP.

At this time, this is all I want to do. I have no requirement to build the app right now.

Cygwin as a tools environment on win32 is fine. The mozilla project uses a similar setup
and it works nicely. Tor mentions a couple of others.

The issue is not the tools, but the compiler/linker. When building on win32, you want to
identify this is the case and pick up a 'standard' compiler - usually msdev, so that you
build against the standard runtime, select appropriate compile/linker flags and don't end
up with Cygwin dependencies. Whether moving your entire build system to a cross platform
build solution is "easy" or not, remains to be seen. It is certainly possible - evidence
- the mozilla build system.

Regarding volunteering. No, thanks. No-one enjoys this work. It is tedious and dull.
Way too busy, anyway. Sorry.

Use the mingw toolchain instead, and MSYS to run configure scripts and as

interactive
shell.

I tried this, *finally* managed to get the thing to compile after lots more messing
about.

When I tried linking against an MSDEV generated openjpeg lib, I got various linker
errors.

I tried rebuilding OpenJPEG using MINGW/MSYS and it came up with missing include files
and a missing library.

I'll stick with the Cygwin dependencies for now ... at least it builds !

Next step. I'm done with messing around with overly complex makefiles and incomplete
tools. I'll figure out the required libraries and create an MSDEV project file.

"should have taken" in an ideal world.

Well, yes.

I don't think it can be changed at this stage, in case there really are

some packages
out there where the location of the .pc file is not $prefix/{lib,share}/pkconfig.

Well, Unix pkg-config could be enhanced to assume a default location, which could be
overridden if the prefix= entry is specified in the file. That way, you have complete
backwards compatibility and can go through and remove the prefix= line from .pc files,
one at a time with testing to make sure nothing breaks. Anyone who wants a different
configuration (which is likely the exception) can add a prefix= line to their local file.
This should keep everyone happy.

The prefix line is present in the .pc files ....

Yuk.

Best regards,

Steve.

-------------------------------------------------------------------- mail2web LIVE ? Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE

Manish Singh
2008-10-26 19:43:45 UTC (about 16 years ago)

Building GIMP plugins on Windows using msdev compiler/linker ...

On Sun, Oct 26, 2008 at 11:12:02AM -0400, steve@advance-software.com wrote:

Cygwin as a tools environment on win32 is fine. The mozilla project uses a similar setup
and it works nicely. Tor mentions a couple of others.

Please don't spread misinformation. Mozilla switched to MSYS from cygwin for Firefox 3.x years ago, because cygwin sucked.

The issue is not the tools, but the compiler/linker. When building on win32, you want to
identify this is the case and pick up a 'standard' compiler - usually msdev, so that you
build against the standard runtime, select appropriate compile/linker flags and don't end
up with Cygwin dependencies. Whether moving your entire build system to a cross platform
build solution is "easy" or not, remains to be seen. It is certainly possible - evidence
- the mozilla build system.

As said before, Mozilla doesn't use cygwin anymore. And the rest of the build system is considered a horrible pile of unwieldly crap, but would take several man-months to redo, so nothing gets done about it.

Regarding volunteering. No, thanks. No-one enjoys this work. It is tedious and dull.
Way too busy, anyway. Sorry.

Then you admit it's not as easy as you claim.

So far all your criticisms are invalidated because you don't have your facts straight.

-Yosh