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

Can not compile the library #9

Open
kislenko-artem opened this issue May 15, 2023 · 2 comments
Open

Can not compile the library #9

kislenko-artem opened this issue May 15, 2023 · 2 comments

Comments

@kislenko-artem
Copy link

Hello!

I tried compile project using Docker, but every time I got error.

In file included from libde265.cc:2:
libde265-all.inl:8:10: fatal error: alloc_pool.cc: No such file or directory
    8 | #include "alloc_pool.cc"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:69: build-static] Error 1

I tried to install: libde265-dev / libde265-0 / imagemagick

if I try to compile libde265 fro sources I got error

vendor/github.com/adrium/goheif/libde265/libde265.go:8:11: fatal error: libde265/de265.h: No such file or directory
    8 | // #include "libde265/de265.h"
      |           ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:69: build-static] Error 1

What I do wrong?
Thanks.

@cention-mujibur-rahman
Copy link

I am having same problem, while trying to compile goheif from sources I got error.
, what would be the reason?

# github.com/adrium/goheif/libde265
vendor/github.com/adrium/goheif/libde265/libde265.go:8:11: fatal error: libde265/de265.h: No such file or directory
    8 | // #include "libde265/de265.h"
      |           ^~~~~~~~~~~~~~~~~~
compilation terminated.

@KelwinTan
Copy link

KelwinTan commented Jun 9, 2023

this is most probably due to go mod issue, where if you check in the vendor directory of the project, all the non-golang code from the libde265/libde265 library are not imported completely, as there is no golang file found in the libde265/libde265 package

issue: golang/go#26366 (comment)

To solve this: i manually copied the libde265 package into the vendor package file

you could add this command in your Dockerfile

cp -a libde265/libde265  vendor/$YOUR_PROJECT/libde265/

this solution worked for me 👍🏼

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

3 participants