Git Product home page Git Product logo

cget-recipes's Introduction

cget-recipes

Recipes for cget/

cget-recipes's People

Contributors

danmou avatar ericbackus avatar nedsociety avatar pfultz2 avatar thoughton avatar timsimpson avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cget-recipes's Issues

add a recipe for libuv

Please add a recipe for libuv. A cmake for that can be found here https://github.com/dacap/libuv-cmake . Can't directly use cgate install dacap/libuv-cmake , as the git download doesn't download the project included by git submodule. Likely after downloading , need to parse .gitmodules , & download the submodules in the respective directory. This is problem for any projects which uses git submodule. e.g. cget install Cylix/netflex@master

The sfml recipe is not working

It is trying to install to a non-user location:

-- Installing: /Library/Frameworks/FLAC.framework . 
CMake Error at cmake_install.cmake:55 (file):
  file INSTALL cannot make directory "/Library/Frameworks/FLAC.framework":
  Permission denied

config_file error when called with multiple arguments

I'm using ac2cmake as suggested by @pfultz2 in this PR and I get this error:

CMake Warning (dev) at cmake/cget-recipe-utils-config.cmake:390 (configure_file):
  configure_file called with unknown argument(s):
   matio/src/Makefile
   matio/getopt/Makefile
   matio/tools/Makefile
   matio/test/Makefile
   matio/documentation/Makefile

If I understand properly the following snipped passes all the parameters I've used when calling ac_config_file here directly to cmake's configure_file.

function(ac_config_file)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
configure_file(${ARGN})

which ends up violating configure_file's signature:

configure_file(<input> <output>
               [COPYONLY] [ESCAPE_QUOTES] [@ONLY]
               [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])

Any suggestions? Shall we do some sort of foreach(arg ${args}) and then call config_file with ${arg}, but if so how shall we construct the <input> or <output>?

XZ Recipe Build Error

I'm getting the following build errors on OS X when installing the XZ recipe. I'm able to build fine when running ./configure && make.

In file included from /Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:24:
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:93:3: error: unknown type name 'lzma_sha256_state'
                lzma_sha256_state sha256;
                ^
1 error generated.
make[2]: *** [CMakeFiles/lzma.dir/src/liblzma/check/crc32_fast.c.o] Error 1
make[2]: *** [CMakeFiles/lzma.dir/src/liblzma/check/crc64_fast.c.o] Error 1
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:127:1: error: redefinition of 'lzma_sha256_init'
lzma_sha256_init(lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:141:1: note: previous definition is here
lzma_sha256_init(lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:142:1: error: redefinition of 'lzma_sha256_update'
lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:148:1: note: previous definition is here
lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:169:1: error: redefinition of 'lzma_sha256_finish'
lzma_sha256_finish(lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:165:1: note: previous definition is here
lzma_sha256_finish(lzma_check_state *check)
^

cmake repository not found when using 'cget install pfultz2/cget-recipes'

I am unable to install cget-recipes on my windows subsystem for Linux (WSL) Debian distro. I follwed your instruction:

cget install pfultz2/get-recipes

However I received the following error:

Downloading https://github.com/pfultz2/cget-recipes/archive/HEAD.tar.gz
  [######################################################################]  100%
Extracting archive /home/oenomaus/cget/cget/build/tmp-613b70e38a744e1e82dfdad977d10b31/HEAD.tar.gz ...
Can't find file cmake
Failed to build package pfultz2/cget-recipes

I inspected this particular repository and found the sub-repository cmake is of the form cmake/cget-recipe-utils. I suspect the instruction provided above is outdated and has not yet been updated. Please correct me if I am wrong.

Take care.

curl on Windows can not find LibreSSL and libssh2

I have tried to install curl on Windows using cget but for some reasons, it can not find LibreSSL and libssh2.
Other dependencies were installed just fine.
Please let me know if you need further information.
Thanks.

google/benchmark recipe doesn't build

I do the following:

cget install pfultz2/cget-recipes
cget install google/benchmark

The configuration of google/benchmark fails for me. The output looks like this:

Downloading https://github.com/google/benchmark/archive/master.tar.gz

Extracting archive /home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/master.tar.gz ...
-- The CXX compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Failed to find LLVM FileCheck
-- Found Git: /usr/bin/git (found version "2.17.1") 
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_CXX_FLAG_STD_CXX11
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Looking for Google Test sources
-- Looking for Google Test sources in /home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/benchmark-master/googletest
CMake Error at CMakeLists.txt:34 (message):
  Did not find Google Test sources! Either pass correct path in
  GOOGLETEST_PATH, or enable ALLOW_DOWNLOADING_GOOGLETEST, or disable
  BENCHMARK_ENABLE_GTEST_TESTS / BENCHMARK_ENABLE_TESTING.


CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:1685 (get_property):
  get_property could not find TARGET googletest.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  CMakeLists.txt:54 (ExternalProject_Get_Property)


CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:1687 (message):
  External project "googletest" has no SOURCE_DIR
Call Stack (most recent call first):
  CMakeLists.txt:54 (ExternalProject_Get_Property)


-- Configuring incomplete, errors occurred!
See also "/home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/build/third_party/googletest/CMakeFiles/CMakeOutput.log".
CMake Error at cmake/GoogleTest.cmake:13 (message):
  CMake step for googletest failed: 1
Call Stack (most recent call first):
  CMakeLists.txt:273 (include)


-- Configuring incomplete, errors occurred!
See also "/home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/build/CMakeFiles/CMakeOutput.log".
See also "/home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/build/CMakeFiles/CMakeError.log".
Command failed: ['/usr/bin/cmake', '-DCMAKE_TOOLCHAIN_FILE=/home/eric/.cget/cget/cget.cmake', '/home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/benchmark-master', '-DCGET_CMAKE_DIR=/usr/local/lib/python3.6/dist-packages/cget/cmake', '-DCGET_CMAKE_ORIGINAL_SOURCE_FILE=/home/eric/.cget/cget/build/tmp-19ad95b023fe482d9d985eac13a9a366/benchmark-master/__cget_original_cmake_file__.cmake', '-DBUILD_TESTING=Off', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX=/home/eric/.cget/cget/pkg/google__benchmark/install']
Failed to build package google/benchmark

I'm using WSL (Windows Subsystem for Linux), which is a Linux-like build environment. But based on the error, I believe the install would fail on all platforms.

To make it work, I think the best solution is to add "-DBENCHMARK_ENABLE_GTEST_TESTS=OFF" to the recipe. This removes the requirement for google test, but still leaves the rest of the benchmark test suite (which is most of the test suite).

An alternative would be to add "-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON", which makes benchmark download and compile its own copy of google test.

I would be happy to submit a pull request if you like either of these solutions. Or, you might prefer to just do it yourself since it's a one-line fix...

Failed to install boost

Hi, the boost link seems no long reachable. Should I report it here?

 $ cget install boost
Downloading https://github.com/boost/boost/archive/HEAD.tar.gz
  [----------------------------------------------------------------------]    0%
Unexpected error: <class 'ZeroDivisionError'>
division by zero
Failed to build package boost

May I ask one more question? Should I request a different version of package here? For example I'd like to use the armadillo 8.3 while cget has an older version 7.8. Thank you very much!


Updated: It seems that I should run cget install pfultz2/cget-recipes before cget install boost. However, the previous command gives the same error but I can access it in a browser.

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.