Skip to content

Compilation error in image.darknet package #27

@lscnu

Description

@lscnu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions