JPEG support with ijg - getting access violation

前端 未结 7 1246
余生分开走
余生分开走 2021-01-06 12:00

I was recently trying to update my game to store graphics in compressed formats (JPEG and PNG).

Whilst I ended up settling on a different library, my initial attempt

7条回答
  •  孤街浪徒
    2021-01-06 12:28

    This question is almost 10 years now, but exactly the same what author posted happened to me today (I'm using Visual Studio 2013).

    Initially I tried to use the libjpeg library from GnuWin32: http://gnuwin32.sourceforge.net/packages/jpeg.htm and was getting the same error. Then noticed this is a "version 6b" of libJpeg, which is quite old now (2005) What worked for me was installing libJpeg through nuget pacakge manager:

    Install-Package libjpeg -Version 9.2.0.1

提交回复
热议问题