Re: command line utilities to join tiled images?

Florian Kainz <[email protected]> Tue, 29 Aug 2006 17:56:09 -0700
Newsgroups gmane.comp.video.openexr.user
Message-ID <[email protected]>
I don't have a machine where I can run cygwin right now,
so I can only guess what might be going on.  The error
message you are getting seems to indicate that cygwin
is missing support for either Posix semaphores or Posix
threads, and that OpenEXR's configure script doesn't
recognize this.

Please try this:

     In file config/OpenEXRConfig.h change line 15 from

         #define HAVE_POSIX_SEMAPHORES 1

     to

         #define HAVE_POSIX_SEMAPHORES 0

     Then, without running ./configure, type

         make clean
         make
         make check

     If this still fails, change line 7 in config/OpenEXRConfig.h from

         #define HAVE_PTHREAD 1

     to

         #define HAVE_PTHREAD 0

     Then, without running ./configure, type

         make clean
         make
         make check



Stephen Sloan wrote:
> Thanks so much Florian
>  
> I tried altering line 217 from "8.0" to "16.0" and it didn't allow the 
> make check to pass so I disabled the euler call with a return as 
> suggested. This allowed the ImathTest to pass. Then I got quite a ways 
> through IlmImfTest before it failed when trying to open a blank file:
>  
> Error -- caught exception: Cannot open image file "imf_test_rgba.exr". 
> Cannot initialize semaphore (No such file or directory).
> assertion "false" failed: file "testRgba.cpp", line 418
>  
> Then if i comment this out it still catches on the same issue (no such 
> file) in a later process. This is with a fresh download of cygwin so if 
> there is something obvious I'm doing wrong I'm all ears :-)
>  
> Thanks
> Steve 
>  
>  windows xp pro version 2002, service pack 2, hp workstation xw8200 dual 
> xeon 3.8g, 3+GB ram, nvidia quadro fx3450 
> 
>  
> On 8/29/06, *Florian Kainz* <[email protected] <mailto:[email protected]>> wrote:
> 
>     For older versions of Windows we had to disable the code
>     in testExtractEuler.cpp because it failed for no good reason.
>     We thought it was a compiler bug, but it could also be a
>     problem with some library that is used by both Visual C++
>     and cygwin.
> 
>     Try changing line 217 in testExtractEuler.cpp from
> 
>         float eps = 8.0 * limits<float>::epsilon();
> 
>     to
> 
>         float eps = 16.0 * limits<float>::epsilon();
> 
>     If make check still fails, disable the test by putting a return
>     statement at the beginning of function testExtractEuler(),
>     at line 240.  If make check succeeds after that, you can use
>     the OpenEXR libraries (they don't use Euler angles).  Just don't
>     call the Euler angle extraction functions in your own code unless
>     you figure out how to fix them.
> 
>     Florian
> 
> 
>     Stephen Sloan wrote:
>      > Good suggestion!
>      >
>      > the g++ I had was 3.4.4-1 - the only newer version I saw using the
>      > cygwin setup was 3.4.4-2 - I installed and it made without
>     erroring out!
>      >
>      > then I ran make check and all test passed until I got to
>     ImathTest which
>      > failed...
>      >
>      > Testing extraction of rotation angle from 3x3 matrices
>      > assertion "Imath::equal(angle, angleEx, eps)" failed: file
>      > "testExtractEuler.cpp", line 229
>      >
>      >
>      > On 8/29/06, *Alexander Stohr* < [email protected]
>     <mailto:[email protected]>
>      > <mailto: [email protected] <mailto:[email protected]>>>
>     wrote:
>      >
>      >     update g++ to something newer?
>      >
>      >     ----- Original Message -----
>      >     *From:* Stephen Sloan <mailto: [email protected]
>     <mailto:[email protected]> >
>      >     *To:* [email protected]
>     <mailto:[email protected]> <mailto: [email protected]
>     <mailto:[email protected]>>
>      >     *Sent:* Tuesday, August 29, 2006 9:29 PM
>      >     *Subject:* Re: [Openexr-user] command line utilities to join
>     tiled
>      >     images?
>      >
>      >
>      >     THanks for the suggestions guys - I'm trying to use pfscat from
>      >     pfstools which will cat images together either vertically or
>      >     horizontally - it will take two steps [combine horizontaly - then
>      >     combine those results vertically] instead of a single one but it
>      >     will work with openexr. However I'm having trouble getting
>     openexr
>      >     to compile under cygwin - has anyone succesfully compiled the
>     linux
>      >     version under cygwin? I get these errors:
>      >
>      >      g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../Half -I../Iex
>      >     -I../Imath -I../IlmThread -I../config -pipe -g -O2 -MT "" -MD
>     -MP
>      >     -MF .deps/ImfTimeCode.Tpo -c ImfTimeCode.cpp -DPIC -o
>      >     .libs/ImfTimeCode.o .libs/ImfTimeCode.o:1: sorry, unimplemented:
>      >     inter-module optimisations not implemented yet
>      >     make[1]: *** [ ImfTimeCode.lo] Error 1
>      >     make[1]: Leaving directory '/tmp/openexr- 1.4.0/IlmImf'
>      >     make: *** [all-recursive] Error 1
>      >
>      >     Thanks for any and all suggestions
>      >
>      >     I'm rendering in tiles from gelato which I then want to simply
>      >     combine to form the original image - and I'd rather not use a
>     shake
>      >     license for such a simple task if I can help it
>      >
>      >    
>     ------------------------------------------------------------------------
> 
>      >
>      >     _______________________________________________
>      >     Openexr-user mailing list
>      >     [email protected] <mailto:[email protected]>
>     <mailto: [email protected] <mailto:[email protected]>>
>      >     http://lists.nongnu.org/mailman/listinfo/openexr-user
>     <http://lists.nongnu.org/mailman/listinfo/openexr-user>
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
> 
>      >
>      > _______________________________________________
>      > Openexr-user mailing list
>      > [email protected] <mailto:[email protected]>
>      > http://lists.nongnu.org/mailman/listinfo/openexr-user
>     <http://lists.nongnu.org/mailman/listinfo/openexr-user>
> 
>