|
Having problems building monolith |
Michael Weiss
Member #223
April 2000
|
I am trying to build the allegro monolith library on ubuntu 22.04. I have followed the instructions from SiegeLord here: https://github.com/liballeg/allegro_wiki/wiki/Install-Allegro-from-source-on-Ubuntu I can build Allegro successfully following the instructions exactly, but I want to build the monolith. I got it to work a few years ago and I am not sure what I am doing differently this time. So what I do differently to create the monolith is: mkdir build after these commands I run: ccmake .. Then change: but when I type 'c' and configure I get this error: CMake Error at CMakeLists.txt:1238 (install): In my notes from years ago I used ccmake to turn off many things I did not need. Now when I try that I get various errors about targets that don't exist. What am I doing wrong?
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Use a single cmake build tool. Because they will all use the same CMakeCache.txt, which you may need to delete by now. Yes, you were doing it right, you should be able to accomplish the same thing by passing options to cmake on the command line. Like so : cmake -DWANT_MONOLITH=On -DCMAKE_BUILD_TYPE=Debug ..
EDIT My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Michael Weiss
Member #223
April 2000
|
Ok I will experiment with that, Thanks. I am not familiar with cmake and ccmake at all. I just tried to blindly follow the instructions, but when something unexpected happened I had no idea what to do. I started from scratch a few times. Deleted everything. The next time I try, will just use one or the other. Edit: I got it to work: I could not get ccmake to work at all. So I just use cmake and pass it all the options. Something else I was doing wrong: Funny thing, from my notes from a few years ago, I was using ccmake and it worked. Anyway I like passing the options to cmake better tham manually setting them with ccmake. Here is the final procedure than worked for me: git clone https://github.com/liballeg/allegro5.git
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
There's nothing wrong with using ccmake or cmake-gui, just make sure you know what you're doing to the cache for cmake. EDIT My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|