vcpkg 로 설치하려고 했는데,, 
왜인지 모르게 자꾸 libtiff 관련 issue가 떴다..

그래서 새로 설치하려고 

https://www.google.com/search?q=freeimage+github&oq=Freeimage+github&gs_lcrp=EgZjaHJvbWUqBwgAEAAYgAQyBwgAEAAYgAQyCAgBEAAYFhgeMgYIAhBFGDwyBggDEEUYPDIGCAQQRRg80gEIMjMwMWowajeoAgCwAgA&sourceid=chrome&ie=UTF-8

 

🔎 freeimage github: Google 검색

 

www.google.com

링크를 들어가 여러개 보니 웬걸,, lib가 여러개인거 아닌가,,

그래서 제일 star가 많은 곳으로 들어가 설치를 해도 에러,,

자꾸 의존성 issue가 났음,,

그래서 vcpkg홈페이지에 들어가 보니

https://sourceforge.net/projects/freeimage/

 

FreeImage

Download FreeImage for free. FreeImage is a library project for developers who would like to support popular graphics image formats (PNG, JPEG, TIFF, BMP and others). Some highlights are: extremely simple in use, not limited to the local PC (unique FreeIma

sourceforge.net

이 링크가 나오는게 아닌가,,

그래서 https://freeimage.sourceforge.io/

 

The FreeImage Project

What is FreeImage? FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. FreeImage is easy to use, fast, multit

freeimage.sourceforge.io

이 링크로 들어가 download를 했는데 

웬걸

 ISO C++17 does not allow dynamic exception specifications
 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc)

동적 예외 명세가 있는 것이 아닌가,,!!!!

그래서 throw (IEX_NAMESPACE::MathExc)를 그냥 noexcept(false)로 고치고

tmpnam를 mkstemp 이걸로 고치고

 

sudo make 
sudo make install

로 해결,,

 

멀고도 험하다,, C++길,,