[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] Compiling on MinGW
From: |
Florian Kainz |
Subject: |
Re: [Openexr-devel] Compiling on MinGW |
Date: |
Tue, 19 Dec 2006 20:33:16 -0800 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041207) |
I must admit that I don't know anything about minGW, but maybe
the following helps:
The IlmThread library will be built even if you disable threading.
It will contain dummy implementations for threads, mutexes and
semaphores. Creating a thread always throws an exception, and
attempts to lock mutexes and semaphores always succeed.
The IlmImf library should work even with the dummy IlmThread
implementation, as long as you don't enable threading. You should
be able to compile and link the IlmImfTest executable. When you
run the executable, any tests that involve multithreading will
fail, but that doesn't necessarily mean that the IlmImf library
is broken. The tests should run to completion if you comment out
all calls to setGlobalThreadCount() in test*.cpp.
Alternatively, can your application be linked against DLLs from a
native Windows build? OpenEXR comes with Visual C++ project files,
and threading does work on Windows.
Florian
Paul Gregory wrote:
Hi All,
I've been trying to get OpenEXR to compile on MinGW for some time now so
that we (the Aqsis team) can release a version of Aqsis that supports
OpenEXR on both Windows and Posix. However, as others have found on this
list, it doesn't seem that OpenEXR is well setup to compile on MinGW.
The main stumbling block I've hit so far is threading, I've tried to
fool it into using the Win32 threading code, no joy, I've tried to
install and get it to use the Win32 port of pthreads, again no joy. The
wierdest of all is that --disable-threading doesn't actually seem to
disable threading, it still tries and fails to build the IlmThread
project of ilmbase. I've hit these problems with both the stable 1.4.0
source archive, and the newer split 1.5.0 of OpenEXR and 0.9.0 IlmBase
source archive.
If anyone has any suggestions on how to get this all to compile on
MinGW/MSYS, it would be most appreciated.
Thanks
--
Paul Gregory
http://www.aqsis.org
------------------------------------------------------------------------
_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel