conda-forge / occt-feedstock

A conda-smithy repository for occt.
BSD 3-Clause "New" or "Revised" License
4 stars 21 forks source link

FreeImage is missing in 7.4 #40

Closed frmdstryr closed 4 years ago

frmdstryr commented 4 years ago

Issue:

FreeImage seems to be missing in occt 7.4, this causes V3d_Viewer.Dump to always save bmp images.

See https://git.dev.opencascade.org/gitweb/?p=occt.git;a=blob;f=src/Image/Image_AlienPixMap.cxx;h=5d4d8a9b620bf9cc3c20dd3fccfcaeae70bd5b44;hb=fd47711d682be943f0e0a13d1fb54911b0499c31


Environment (conda list):

$ conda list | grep occt
occt                      7.4.0                h9121d39_2    conda-forge

If I look at libTKService in occt-7.4 FreeImage is not there:

$ nm -gDC ../envs/occt-7.4/lib/libTKService.so | grep FreeImage 

But with occt-7.2 it is:

$ nm -gDC ../envs/occt-7.2/lib/libTKService.so | grep FreeImage 
                 U FreeImage_AdjustGamma
                 U FreeImage_AllocateT
                 U FreeImage_ColorQuantize
                 U FreeImage_ConvertTo24Bits
                 U FreeImage_ConvertToType
                 U FreeImage_FIFSupportsReading
                 U FreeImage_FlipVertical
                 U FreeImage_GetBits
                 U FreeImage_GetBPP
                 U FreeImage_GetColorType
                 U FreeImage_GetFIFFromFilename
                 U FreeImage_GetFileType
                 U FreeImage_GetHeight
                 U FreeImage_GetImageType
                 U FreeImage_GetPitch
                 U FreeImage_GetWidth
                 U FreeImage_Load
                 U FreeImage_Save
                 U FreeImage_Unload
frmdstryr commented 4 years ago

Working now, thank you @looooo !