lua-gd icon indicating copy to clipboard operation
lua-gd copied to clipboard

How to compile and install lua-gd?

Open RoPe93 opened this issue 7 years ago • 2 comments

There is no instructions on how to compile lua-gd after downloading. Please provide some.

RoPe93 avatar Jan 17 '18 14:01 RoPe93

If you are in windows, it is included in the LuaForWindows package.

This is how i did it on my RaspberryPi running Raspian.

  1. Install GD with sudo apt-get install libgd-dev (this will also install all dependencies)
  2. Remove it again, sudo apt-get remove libgd-dev
  3. Download the latest release from https://libgd.github.io/pages/downloads.html (I used libgd-2.2.5.tar.gz)
  4. Extract somewhere.
  5. Go to that folder with a terminal.
  6. ./configure
  7. make
  8. sudo make install
  9. Download Lua-gd from here and extract it.
  10. Go to that folder
  11. make
  12. sudo make install

And now i can do gd = require("gd") and it works. I had some trial and error in the middle but I think i got all the main steps. Good luck!

Andols0 avatar Jan 31 '18 16:01 Andols0

THIS HELPED THANK YOU!

AntonyBarnard avatar May 21 '23 17:05 AntonyBarnard