Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Installing Allegro 5 along with Allegro 4

This thread is locked; no one can reply to it. rss feed Print
Installing Allegro 5 along with Allegro 4
AceBlkwell
Member #13,038
July 2011

Has anyone installed Allegro 5 over Allegro 4? Does one negate the other or will they both be available? I don't mean program a single program with both.

I'm wanting to graduate on to 5 but have a few things I may continue updating with 4 I didn't know it this was possible? If the files had different names or if 5 would overwrite 4 preventing any quick updates to my programs with out re installing 4.

Thanks
Ace

beoran
Member #12,636
March 2011

I have installed Allegro 4 and Allegro 5 next to each other on Linux and I was able to link both into the same program. The example of my WIP project https://gitlab.com/beoran/a4a5 shows how you can do this using CMake for the build system. So yes, wat you want to do is possible, but keep in mind that using both A4 and A5 API in one program will be a complicated matter

AceBlkwell
Member #13,038
July 2011

Thanks for the reply. Sounds good, I'll give it a shot. I was wanting the ability to update program A with Allegro 4 but later start program B with Allegro 5. Sounds like I can in Linux. I wonder if Windows is as forgiving. Guess we will find out.

Thanks Again
Ace

Edgar Reynaldo
Member #8,592
May 2007
avatar

The libraries live in different places, and use different names. Headers for allegro5 go in allegro5/, and headers for 4 go in allegro.

There should be no problem installing both libraries at the same time. Using them both at the same time could prove problematic though.

Go to: