Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error in image.darknet package #27

Open
lscnu opened this issue May 6, 2024 · 0 comments
Open

Compilation error in image.darknet package #27

lscnu opened this issue May 6, 2024 · 0 comments

Comments

@lscnu
Copy link

lscnu commented May 6, 2024

I'm encountering a compilation error when attempting to install the image.darknet package using the devtools::install_github function in R. The error message I'm seeing is:

php
Copy code
deconvolutional_layer.c:85:14: error: incompatible function pointer types assigning to 'void (*)(struct layer, int, float, float, float)' from 'void (deconvolutional_layer, float, float, float)' (aka 'void (struct layer, float, float, float)') [-Wincompatible-function-pointer-types]
l.update = update_deconvolutional_layer;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [deconvolutional_layer.o] Error 1
ERROR: compilation failed for package ‘image.darknet’

Steps to Reproduce:

Run the following code in R:
R
Copy code
devtools::install_github("bnosac/image", subdir = "image.darknet", build_vignettes = TRUE)
Expected Behavior:
I expect the image.darknet package to be installed without encountering any compilation errors.

Actual Behavior:
The compilation process fails with the error message mentioned above.

System Information:

R Version: 024.04.0+735
Operating System: [Your operating system]
Compiler: [If applicable]
Additional Information:

I have tried updating R and the devtools package, but the issue persists.
I have also attempted to set compiler flags (CFLAGS and CPPFLAGS) to "std=gnu99", but it did not resolve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant