Hello everybody. I need some help. Could anyone give me a step-by-step instruction, how to istall jpgalleg for allegro 4.4.2? Thanks
Read the F***ing Manual provided with it ?
From memory it should be something like
I read the instruction, but it's written there "Place the make.exe program in a directory pointed by your $PATH environmental variable and you're done.". I don't understand, where exactly I have to put the make.exe file
Set your Environment Variables as explained here
Ok, I installed jpgalleg, but when I compile my project, compiler writes :
i:\gw\lib\crt2.o(.text+0x8) In function `_mingw_CRTStartup':
[Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__cpu_features_init'
What's the matter?
Are you using an IDE?
If you do, you're not linking correctly to the MinGW compiler.
If you don't, I have no idea, since I have always used an IDE.
You could also have a mess of different compilers there... or something. If you're sign Code::Blocks you should have something like this:
Post a full transcript of your compilation command and the results.
Don't know what those linker errors are exactly, but usually they mean that you are missing the lib file. It might be at the right place on your hard disk, but your project doesn't include it.
I use Dev-Cpp for my Allegro 4 projects. After compiling the jpgalleg library, I've moved the libjpgal.a file to the /lib directory under C:/mingw/ and the jpgalleg.h file to the /include directory.
In my project settings (Project->Project options->Parameters->Linker) I include the line -ljpgal there. If you have a project setup for Allegro, you should have -lalleg there. Add -ljpgal there on its own line, before -lalleg.
In Code::Blocks I guess it's Project->Project build options->Linker settings and the frame "Link libraries:"
If you just use command lines, I guess you have to compare how the makefile is written for a normal allegro project, or how you write the command line. Where you see the -lalleg thing, add before it the -ljpgal thing.
If this doesn't work, I guess your compilation of the jpgalleg library has failed.