xinxinlx / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Symbol mangling in openjp2 codec #346

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am facing a problem of symbol conflict in a project. I want to use an 
OpenJpeg 2.0, but one of my dependencies drags an OpenJpeg 1.x version which 
contain conflicting symbols. 

The name mangling in OpenJPEG was enabled before (in a 1.x version) but in 2.0 
and 2.1 it has been disabled. The mangling header is never included in 
openjpeg.h. I have tried to re-activate this feature in the 2.1 version (only 
for the library openjp2). Please find attached the patch and the mangling file. 
The mangling file should be placed in src/lib/openjp2.

It seems to work fine with this patch, but I haven't checked with the other 
libs and binaries of OpenJpeg.  

Original issue reported on code.google.com by guillaum...@gmail.com on 14 May 2014 at 8:06

Attachments: