mingw-cross-env-list
[Top][All Lists]
Advanced

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

Re: [Mingw-cross-env-list] Package proposal


From: Martin Müllenhaupt
Subject: Re: [Mingw-cross-env-list] Package proposal
Date: Wed, 02 Nov 2011 10:48:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

Hi Mark,

On 11/01/2011 09:28 AM, Mark Brand wrote:
> It would also be nice to have a "test-vtk.exe" program for vtk. The main
> reason is to demonstrate that linking works. Many of the other .mk files
> build these. A few are example programs that come with the package, but
> most are just minimal programs.

I'd like to supply that test, but I'm not certain which way to use for
gathering the linking information.
I only use cmake for my applications, which is of course well supported
by VTK. The tests I saw only use pkg-config, which seems to be the
preferred tool for mingw-cross-env, right?
So I could either try to patch VTK to generate a pkg-config .pc file.
Or I could write a test using a simple CMakeLists.txt file. What do you
prefer?

Although it would be easy for CMake to generate a package-config file, I
did not find a simple solution after a few minutes of googling. I guess
it's some kind of politics not to support this tool.

> I noticed some linking problems already in VTK/Examples/GUI/Qt. The
> generated makefiles are missing the -llcms dependency for -lmng, and
> -ljpeg is missing for -ltiff. Also saw a missing -lbz2 somewhere.

I think they are related to linking Qt. The Qt installation does not
export a cmake configuration file. I usually use a CMake script based on
https://lists.nongnu.org/archive/html/mingw-cross-env-list/2010-11/msg00069.html
which parses the Qt linking information from the lib/Qt*.prl files.

Based on this script, I just built VTK/Examples/GUI/Qt/SimpleView
without errors.

Martin Müllenhaupt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]