bugOpenEXR - Bugs: bug #34100, MinGW : compile fail

 
 

bug #34100: MinGW : compile fail

Submitter:  Dominique638 <dominique638>
Submitted:  Tue 23 Aug 2011 05:00:59 AM UTC
   
 
Category:  build/install Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Aug 2011 05:00:59 AM UTC, original submission:  

Hello,

When building ilmbase-1.0.1 / IlmThread on MinGW, lot of error are sent.

MinGW is working on Windows but use pthread. So a lot of sources as:

#if defined _WIN32 || defined _WIN64
mutable CRITICAL_SECTION _mutex;
#elif HAVE_PTHREAD
mutable pthread_mutex_t _mutex;
#endif

must be rewriten as:

#if HAVE_PTHREAD
mutable pthread_mutex_t _mutex;
#elif defined _WIN32 || defined _WIN64
mutable CRITICAL_SECTION _mutex;
#endif

Thanks,

Dominique

Dominique638 <dominique638>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #23848:  IlmThread_mingw.7z added by dominique638 (4KiB - application/octet-stream)
file #23849:  IlmThread_mingw.7z added by dominique638 (4KiB - application/octet-stream)
file #23850:  IlmThreadSemaphorePosixCompat.cpp added by dominique638 (4KiB - application/octet-stream)
file #23851:  IlmThreadSemaphore.h added by dominique638 (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dominique638 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-23 dominique638 Attached File- Added IlmThread_mingw.7z, #23848
        Attached File- Added IlmThread_mingw.7z, #23849
        Attached File- Added IlmThreadSemaphorePosixCompat.cpp, #23850
        Attached File- Added IlmThreadSemaphore.h, #23851

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code