[SOLVED] Generic error while rebuilding Lazarus IDE on Linux Mint lazarus / 32-Linux ---------------------------------------------------------------------- JD · 2018-01-25 11:27 Hi there everyone, I just tried to rebuild my Lazarus IDE on Linux Mint and I cannot do it because the compiler gives me the following error Code: [Select]Build IDE: Exit code 512, Errors: 1 lazarus.pp(161,1) Error: Error while linking Any ideas how I can fix this problem? Thanks for your assistance, JD ---------------------------------------------------------------------- marcov · 2018-01-25 11:48 Install whatever library is missing, that should be visible in the lines above those lines, usually something like ld: library not found for -lxxx ---------------------------------------------------------------------- JD · 2018-01-25 11:52 Quote from: marcov on January 25, 2018, 12:48:40 pmInstall whatever library is missing, that should be visible in the lines above those lines, usually something like ld: library not found for -lxxx Sorry but that is all I have from the compiler. See screenshot ---------------------------------------------------------------------- balazsszekely · 2018-01-25 12:01 See point 3 from here: http://wiki.lazarus.freepascal.org/BGRA_Installation_on_Linux . You may not need all those libraries, but usually installing them fix the linking error. ---------------------------------------------------------------------- marcov · 2018-01-25 12:15 Right click on the messages and configure your filters, retry ---------------------------------------------------------------------- JD · 2018-01-25 13:49 Quote from: marcov on January 25, 2018, 01:15:45 pmRight click on the messages and configure your filters, retry Great trick marcov! I did it and it gave me a message saying /usr/bin/ld: cannot find -lGL I then went to the link suggested by GetMem, searched for the GL text on the page, found it and installed just the following via the terminal sudo apt-get install libgl1-mesa-dev and it solved the problem.  I explained the steps in case any other person has the same problem. Many thanks, marcov & GetMem, JD