Menu

Improved Makefile for Ubuntu

bbosen
2020-12-16
2023-01-07
  • bbosen

    bbosen - 2020-12-16

    Thanks to Daniel Barland, we have learned of improvements in LAC's Makefile that seem to help Ubuntu compilation efforts. In his post (in the "Welcome to Ubuntu" thread), he refers to our YouTube video playlist showing exactly how we downloaded, compiled, installed, and tested LAC on a brand new Ubuntu system in September of 2020. Here is the YouTube playlist to which he refers:

    https://www.youtube.com/watch?v=7pgCJ5QLj6A&list=PL1IYes9MY6lLv_g8KUGIHWgpirjnzyi2i

    Here is the text of Daniel's original post containing his improved PlayList:

    ========== BEGIN ==========
    For those running Ubuntu 18.04LTS, things may be a little different from 20.04LTS as shown in the video playlist. You must still install the needed libraries, but successful compilation (Lac08p38) with 18.04LTS required a couple of tiny tweaks of the provided Makefile, as shown below. My 18.04 installation is using gcc 7.5.0, make 4.1, and glibc 2.27 on AMD64. The tweaks needed are to remove g++ PIE flag and that the linker requires libraries to be appended at the end of the compiler call.

    Makefile:

    OBJS=3ds.o aiobject.o audio.o cockpit.o common.o conf.o dirs.o effects.o fileloader.o FlightModel.o gl.o glland.o land.o loader_tga.o main.o mathtab.o menu.o mission.o model.o NetworkApi.o object.o objload.o pilots.o vertexarray.o
    
    LIBS=`pkg-config --libs SDL_mixer` -lglut -lGL -lGLU
    
    Lac08p38: $(OBJS)
    g++ -o Lac08p38 $(OBJS) $(LIBS)
    cp Lac08p38 bin/Release/Lac08p38
    chmod +x bin/Release/Lac08p38
    
    clean:
    @rm -f *.o
    @rm Lac08p38
    

    Further information can be found in our "Compiling and installing LAC" forum here:

    https://sourceforge.net/p/linuxaircombat/discussion/compilinglac/

    ================ END =============

     

    Last edit: bbosen 2020-12-17
  • bbosen

    bbosen - 2022-12-23

    As of this writing in November of2022, Ubuntu Linux users are advised to use the "Codeblocks"method of compiling Linux Air Combat, instead of relying on our "makefile".

    Learn about CodeBlocks and LAC here:

    https://sourceforge.net/p/linuxaircombat/discussion/ubuntuandlac/thread/bdabd60d2d/

     
  • bbosen

    bbosen - 2023-01-07

    Update 07Jan2022:

    Recent changes seem to have complicated this situation. We are working on it in our compiling forum. The best available info can now be found here:

    https://sourceforge.net/p/linuxaircombat/discussion/compilinglac/thread/65a66b9fbe/

     

Log in to post a comment.

MongoDB Logo MongoDB