Git Product home page Git Product logo

conan-premake's Introduction

Premake4 generator for Conan C/C++ Package manager https://conan.io

It is a **generator package**, it is not embeded in the main conan.io codebase,
but an independent package. Read http://docs.conan.io for mor info.

conan-premake's People

Contributors

memsharded avatar danimtb avatar

Stargazers

Zhao Xiaohong avatar Jin Qing avatar Richard Dally avatar Jay Sistar avatar Dmitry Ledentsov avatar

Watchers

James Cloos avatar Michael Keck avatar  avatar  avatar

conan-premake's Issues

lua syntax error on generation

Hi. When using this conanfile.txt:

[requires]
Poco/1.7.3@lasote/stable
[email protected]@memsharded/testing

[generators]
Premake

[options]
Poco:shared=True
OpenSSL:shared=True

[imports]
bin, *.so -> ./bin # Copies all dll files from the package "bin" folder to my project "bin" folder

conan install works fine, but when I try to execute:

premake5 gmake

it throws error:

Error: /home/user/project/premake4.lua:3: error loading module 'conanpremake' from file './conanpremake.lua':
/home/user/project/conanpremake.lua:57: '=' expected near '-'

The problem are this lines:

conan_includedirs_electric-fence = {"/home/user/.conan/data/electric-fence/2.2.0/lasote/stable/package/21ace02f4960dd0c1d50bd3abe1537054de08157/include"}
conan_libdirs_electric-fence = {"/home/user/.conan/data/electric-fence/2.2.0/lasote/stable/package/21ace02f4960dd0c1d50bd3abe1537054de08157/lib"}
...

It seems that lua doesn't like variable identifiers like that.

Unable to find 'PremakeGen/0.1@memsharded/testing'

Hi, I am trying to execute the provided demo as I want to use Premake in Conan. At first I had the error:

\conan-premake-master\example>conan install .
Hello/0.1@memsharded/testing: Not found in local cache, looking in remotes...
Hello/0.1@memsharded/testing: Trying with 'conan-center'...
ERROR: Failed requirement 'Hello/0.1@memsharded/testing' from 'PROJECT'
ERROR: Unable to find 'Hello/0.1@memsharded/testing' in remotes

It seems that it can't find the example code. I resolved this by removing the references from Hello in the dependencies (from conanfile.txt and main.cpp) which is not a problem for now as I don't need that package anyway. Unfortunately, running the command again gave me the similar error:

\conan-premake-master\example>conan install .
PremakeGen/0.1@memsharded/testing: Not found in local cache, looking in remotes...
PremakeGen/0.1@memsharded/testing: Trying with 'conan-center'...
ERROR: Failed requirement 'PremakeGen/0.1@memsharded/testing' from 'PROJECT'
ERROR: Unable to find 'PremakeGen/0.1@memsharded/testing' in remotes

The package indeed doesn't exist on: https://bintray.com/conan/conan-center. However, https://docs.conan.io/en/latest/integrations/premake.html says packages are available. What am I doing wrong? What things can I do to solve this? Is this project still supported/used by people?

--

Edit: I just want to add that I use windows 10 and premake (4 and 5) are definitely installed. Visual studio 2015 is also installed. I have virtually no experience with conan, so I guess if something is wrong, it will likely be that.
Maybe I need to run additional commands. I basically installed conan and ran install on the example (after trying and failing to write my own).
Many thanks in advance.

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.