User forums > Help
wxWidgets libjpeg problem
Knx:
I've compiled wxWidgets 2.8.3.
But when I try to compile a wx project on C::B I get a lot of errors
--- Code: ---:: === test, Debug ===
:C:\CodeBlocks\wx\build\msw\..\..\src\common\imagjpeg.cpp:205: undefined reference to `jpeg_resync_to_restart'
:C:\CodeBlocks\wx\build\msw\..\..\src\common\imagjpeg.cpp:238: undefined reference to `jpeg_std_error'
:C:\CodeBlocks\wx\build\msw\..\..\src\common\imagjpeg.cpp:252: undefined reference to `jpeg_destroy_decompress'
:C:\CodeBlocks\wx\build\msw\..\..\src\common\imagjpeg.cpp:257: undefined reference to `jpeg_CreateDecompress'
...
--- End code ---
Will this patch work?
I found it on wiki
How I "install" it?
Biplab:
Most probably, the patch will not work.
Possible reason of that error is missing jpeg headers.
Are you compiling wxWidgets with C::B? Or you're compiling a wxWidgets project?
Knx:
I've already compiled wxWidgets
--- Code: ---mingw32-make -f makefile.gcc
--- End code ---
It took 10minutes+
I'm trying to compile a new wxWidgets project inside C::B.
TDragon:
No need for a patch, just add "wxjpeg" to your link libraries. Since you didn't specify "MONOLITHIC=1" when building wxWidgets, the default multilib version was built. When using the multilib version of wxWidgets, most programs need wxbase at least and usually the utility libraries (wxpng, wxtiff, wxjpeg, wxzlib, wxexpat, wxregex) and platform libraries as well. (For Windows, wxmsw_core, wxmsw_adv, and the rest).
Knx:
What's wxjpeg?
If I compile with MONOLITHIC=1 I won't need to do anything right? I'll try it then.
Navigation
[0] Message Index
[#] Next page
Go to full version