Git Product home page Git Product logo

lua-gd's People

Contributors

ittner avatar j-o-n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lua-gd's Issues

Will not compile in CentOS 6.8

Alot of build errors are reported when trying to compile it in CentOS 6.8, lua and luajit are installed and working.

root@server [/]# lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> 

error: 'LgdImageCreateFromPng' undeclared (when no PNG support)

Compile fail when library builded without PNG support. Small patch fix this:

@@ -2168,8 +2168,10 @@ static const luaL_Reg LgdFunctions[] =
      { "createFromGif",          LgdImageCreateFromGif },
      { "createFromGifStr",       LgdImageCreateFromGifPtr },
  #endif
+ #ifdef GD_PNG
      { "createFromPng",          LgdImageCreateFromPng },
      { "createFromPngStr",       LgdImageCreateFromPngPtr },
+ #endif
      { "createFromGd",           LgdImageCreateFromGd },
      { "createFromGdStr",        LgdImageCreateFromGdPtr },

When compile it on Mac OSX.

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gd.so] Error 1

64bit

Is it possible to get a 64bit version of this library for windows?

low compatibility with luarocks install

Hi,

your code is used in an example for the machine learning environment torch. However, your installation method expects lua5.1 in a default place and the pkg-config to be there. Therefore there have been some tweaks introduced to install this package.

kuz/DeepMind-Atari-Deep-Q-Learner@8466031

The standard torch installation installs lua or luajit in some local directory and depends on luarocks to install dependencies. I think the rockspec plus Makefile could be modified to have an easier install via luarocks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.