madhums / madhums/node-imager

installation error

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
267
Forks
60
PR merge metrics
No merged PRs in 30d

Description

install_github("dahtah/imager")
Downloading github repo dahtah/imager@master
Installing imager
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
'/private/var/folders/c1/1c9zflnx7937x6nrh4tst_dm0000gn/T/RtmpJacwHO/devtools5eb22d9f388b/dahtah-imager-345279d'
--library='/Users/subinoybiswas/R_package' --install-tests

  • installing source package ‘imager’ ...
    Warning in .write_description(db, file.path(outDir, "DESCRIPTION")) :
    Unknown encoding with non-ASCII data: converting to ASCII
    ** libs
    llvm-g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/opt/X11/lib -I/usr/X11R6/include -I/usr/local/include -I"/Users/subinoybiswas/R_package/Rcpp/include" -fPIC -mtune=core2 -g -O2 -c RcppExports.cpp -o RcppExports.o
    llvm-g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/opt/X11/lib -I/usr/X11R6/include -I/usr/local/include -I"/Users/subinoybiswas/R_package/Rcpp/include" -fPIC -mtune=core2 -g -O2 -c colourspace.cpp -o colourspace.o
    CImg.h: In member function ‘cimg_library::CImg& cimg_library::CImg::RGBtosRGB() [with T = double]’:
    colourspace.cpp:63: instantiated from here
    CImg.h:19851: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
    /usr/include/architecture/i386/math.h:343: note: candidate 1: double pow(double, double)
    /usr/include/c++/4.2.1/cmath:357: note: candidate 2: float std::pow(float, float)
    CImg.h: In member function ‘cimg_library::CImg& cimg_library::CImg::sRGBtoRGB() [with T = double]’:
    colourspace.cpp:71: instantiated from here
    CImg.h:19834: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
    /usr/include/architecture/i386/math.h:343: note: candidate 1: double pow(double, double)
    /usr/include/c++/4.2.1/cmath:357: note: candidate 2: float std::pow(float, float)
    make: *** [colourspace.o] Error 1
    ERROR: compilation failed for package ‘imager’
  • removing ‘/Users/subinoybiswas/R_package/imager’
    Error: Command failed (1)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking whether the reported R installation and the referenced CImg.h and colourspace.cpp belong to this repository, since the issue URL is for node-imager while the log installs dahtah/imager. Reproduce the compilation error if the sources are present; done means the package installs successfully without the ambiguous pow overload error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, r
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.