bnosac/image

installation error

flovv opened this issue · 2 comments

flovv commented

Hi,
I get an error trying to install darknet.

devtools::install_github("bnosac/image", subdir = "image.darknet", build_vignettes = TRUE)

```detector.o:detector.c:(.text+0x17cb):undefined reference topthread_join'
detector.o:detector.c:(.text+0x1844): undefined reference to `pthread_join'
detector.o:detector.c:(.text+0x18c1): more undefined references to `pthread_join' follow
collect2: ld returned 1 exit status
keine DLL erzeugt
ERROR: compilation failed for package 'image.darknet'

  • removing 'C:/Users/fteschner/Documents/R/win-library/3.2/image.darknet'
    Error: Command failed (1)```
R version 3.2.4 Revised (2016-03-16 r70336)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dlib_1.0

loaded via a namespace (and not attached):
 [1] httr_1.2.1      R6_2.2.0        tools_3.2.4     withr_1.0.2     curl_2.5        memoise_1.1.0   Rcpp_0.12.10   
 [8] git2r_0.18.0    digest_0.6.12   devtools_1.12.0```

I think you should use Linux. The package image.darknet package is using darknet https://github.com/pjreddie/darknet commit a0fb6b4 which is not for Windows.

Closing as no active feedback given in last month.