2024-08-06 03:02 AM
hello forum
I'm trying to use two examples at once, I'm looking for a script to save an image on an SD card as Jpeg
the examples are:
BSP
JPEG_EncodingUsingFs_DMA
I'm trying to import the JPEG_Encoding example into the BSP one,
While doing so, the compiler doesn't recognize the function JPEG_InitColorTables();
it's part of the jpeg_utils.c under #if (USE_JPEG_ENCODER==1). which I have defined in jpeg_utils_conf.h but the compiler still doesn't recognize it.
am I missing something?
2024-08-06 04:45 AM
Show the exact error messages and surrounding context.
Ensure the jpeg_utils.c file is getting compiled by adding its source directory to the source location paths.
Ensure the appropriate headers are being included by the files that are trying to use that function.
From your description, it's unclear if it's a compiler error or a linker error.
2024-08-06 04:55 AM - edited 2024-08-06 04:56 AM
Ive already made sure to include the paths in the includes section under the paths and symbols section.
this is the error I'm getting:
I was also trying to change the includs order of all the relevant files so that the USE_JPEG_ENCODER was defined before the jpeg_utils.h itself so that the jpeg_utils.c will have everything it needs while compilng
the complier finds the files but the JPEG_InitColorTables() function itself is still "locked"
2024-08-06 05:37 AM
Show the full contents of the Console tab after you try to clean and rebuild.
2024-08-06 05:47 AM
Apparently the "clean and rebuild" did the trick, I'll continue to try and "play" with everything a bit more and continue to update here if I have more issues
thank you very much!