I am trying to install vips-8.9.2 on UCRT64 for windows 11. And after "./configure" I got:
configure: creating ./config.status
config.status: creating vips.pc
config.status: creating vips-cpp.pc
config.status: creating Makefile
config.status: creating libvips/include/vips/version.h
config.status: creating libvips/include/Makefile
config.status: creating libvips/include/vips/Makefile
config.status: creating libvips/Makefile
config.status: creating libvips/arithmetic/Makefile
config.status: creating libvips/colour/Makefile
config.status: creating libvips/colour/profiles/Makefile
config.status: creating libvips/conversion/Makefile
config.status: creating libvips/convolution/Makefile
config.status: creating libvips/deprecated/Makefile
config.status: creating libvips/foreign/Makefile
config.status: creating libvips/freqfilt/Makefile
config.status: creating libvips/histogram/Makefile
config.status: creating libvips/draw/Makefile
config.status: creating libvips/iofuncs/Makefile
config.status: creating libvips/morphology/Makefile
config.status: creating libvips/mosaicing/Makefile
config.status: creating libvips/create/Makefile
config.status: creating libvips/resample/Makefile
config.status: creating cplusplus/include/Makefile
config.status: creating cplusplus/include/vips/Makefile
config.status: creating cplusplus/Makefile
config.status: creating tools/Makefile
config.status: creating tools/batch_crop
config.status: creating tools/batch_image_convert
config.status: creating tools/batch_rubber_sheet
config.status: creating tools/light_correct
config.status: creating tools/shrink_width
config.status: creating test/Makefile
config.status: creating test/variables.sh
config.status: creating test/test-suite/Makefile
config.status: creating test/test-suite/helpers/Makefile
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating doc/libvips-docs.xml
config.status: creating po/Makefile.in
config.status: creating fuzz/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
* build options
native win32: yes
native OS X: no
open files in binary mode: yes
enable debug: no
enable deprecated library components: yes
enable docs with gtkdoc: no
gobject introspection: yes
enable radiance support: yes
enable analyze support: yes
enable PPM support: yes
* optional dependencies
use fftw3 for FFT: yes
Magick package: MagickCore
Magick API version: magick7
load with libMagick: yes
save with libMagick: yes
accelerate loops with orc: yes
(requires orc-0.4.11 or later)
ICC profile support with lcms: yes (lcms2)
file import with niftiio: no
file import with libheif: yes
file import with OpenEXR: yes
file import with OpenSlide: yes
(requires openslide-3.3.0 or later)
file import with matio: yes
PDF import with PDFium no
PDF import with poppler-glib: yes
(requires poppler-glib 0.16.0 or later)
SVG import with librsvg-2.0: yes
(requires librsvg-2.0 2.34.0 or later)
zlib: yes
file import with cfitsio: yes
file import/export with libwebp: yes
(requires libwebp, libwebpmux, libwebpdemux 0.6.0 or later)
text rendering with pangoft2: yes
file import/export with libpng: yes (pkg-config libpng >= 1.2.9)
(requires libpng-1.2.9 or later)
support 8bpp PNG quantisation: yes
(requires libimagequant)
file import/export with libtiff: yes (pkg-config libtiff-4)
file import/export with giflib: yes (found by search)
file import/export with libjpeg: yes (pkg-config)
image pyramid export: yes
(requires libgsf-1 1.14.26 or later)
use libexif to load/save JPEG metadata: yes
But when try to execute make, I got this:
svgload.c:377:10: fatal error: librsvg/librsvg-features.h: No such file or directory
377 | #include <librsvg/librsvg-features.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:694: svgload.lo] Error 1
make[3]: Leaving directory '/home/Marco Moreno/dd/vips-8.9.2/libvips/foreign'
make[2]: *** [Makefile:875: all-recursive] Error 1
make[2]: Leaving directory '/home/Marco Moreno/dd/vips-8.9.2/libvips'
make[1]: *** [Makefile:629: all-recursive] Error 1
make[1]: Leaving directory '/home/Marco Moreno/dd/vips-8.9.2'
make: *** [Makefile:536: all] Error 2
I´ve tried to change librsvg/rsvg-features.h name into librsvg/librsvg-features.h, and the file is on this path:"C:\msys64\ucrt64\include\librsvg-2.0\librsvg"
I will appreciate yor Help.
Also I have these warning when configure is executed:
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
Related
I have a monorepo with multiple languages and artifacts and I want to transition to Bazel.
We want to build docker images using our existing Dockerfiles, using a genrule - to avoid translating all dockerfiles to docker-rules (at least at this point).
We know it's not Bazel's best practice, but we assumed it can allow us easy transition.
I'm testing with this Dockerfile
FROM alpine:3.8
ENTRYPOINT ["echo"]
CMD ["Hello Bazel!"]
I tried following this post, but when running the docker build command (even out of Bazel) I'm getting this -
> tar -czh . | docker build -t hello-bazel -
[+] Building 0.1s (2/2) FINISHED
=> [internal] load remote build context 0.0s
=> ERROR copy /context / 0.1s
------
> copy /context /:
------
failed to solve with frontend dockerfile.v0: failed to read dockerfile: Error processing tar file(gzip: invalid header):
I tried using a genrule with the basic docker build command -
genrule(
name = "gc-hello-bazel",
srcs = ["Dockerfile"],
outs = ["imagesha.txt"],
cmd = "docker build -t hello-bazel -f $(location Dockerfile) . > $#",
tools = ["Dockerfile"],
)
But the build fails with
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open Dockerfile: no such file or directory
in case it matters, this is my directory structure:
-WORKSPACE
-<some-root-dirctories>
-<a-root-directory>
-<subdir>
-<subsubdir1>
-my_docker
-Dockerfile
-BUILD.bazel
What am I doing wrong?
TL;DR: I'm looking for a working example of docker build with Dockerfile and Bazel's Genrule
This is not an exact answer to your question as it uses a rule rather than a genrule. But I think it should solve your underlying problem.
Under bazelbuild/rules_docker there is a (non-hermetic) rule for building docker images from a Dockerfile.
To use it you will need to add the following to your WORKSPACE file;
# file: //WORKSPACE
http_archive(
name = "io_bazel_rules_docker",
sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf",
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"],
)
Then in your build file you can add the following;
# file: BUILD.bazel
load("#io_bazel_rules_docker//contrib:dockerfile_build.bzl", "dockerfile_image")
dockerfile_image(
name = "my_non_hermetic_image",
dockerfile = ":Dockerfile",
)
I'm following the instructions on the Amazon Connect Streams github to use the AWS Connect Streams: https://github.com/amazon-connect/amazon-connect-streams
When I follow the github
$ git clone https://github.com/aws/amazon-connect-streams
$ cd amazon-connect-streams
$ make
I receive the error:
make: *** No rule to make target `all'. Stop.
I've tried renaming the makefile (currently Makefile with no extension), running it as Sudo, verifying the components the Makefile is asking for are in the correct folders, and checking folder permissions.
Could anybody advise further checking I could do?
The Makefile contains a default goal though the default goal was not specified.
The Makefile needed all: $(OUTPUT_JS) to be added.
Is this the right Make file code if I want to deploy my Golang server on Amazon AWS EC2 with this configuration:
Im not allowed to embed image so click here to see the image
Here is the Make File Code:
Shipping package
Assumes user is on MacOS, if other OS, please change PROTO_ROOT_DIR to the path of protobuf installation PROTO_ROOT_DIR = $(shell brew
--prefix)/Cellar/protobuf/3.6.0/include PROJECT_NAME = hello-grpc
Dart requires you to manually ship all google provided proto files too.
_gendart: #mkdir -p model/gen/ship/dart #protoc -I=model/protodefs --dart_out=grpc:model/gen/ship/dart model/protodefs/.proto #protoc -I$(PROTO_ROOT_DIR) --dart_out=model/gen/ship/dart $(PROTO_ROOT_DIR)/google/protobuf/.proto
_gengo: #mkdir -p model/gen #protoc -I=model/protodefs --go_out=plugins=grpc:model/gen model/protodefs/*.proto
gen: _gengo _gendart
build: get gen #env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build
-ldflags '-w -extldflags "-static"' -o build/${PROJECT_NAME}_linux_amd64 . #env GOARCH=amd64 go build
-ldflags '-w -extldflags "-static"' -o build/${PROJECT_NAME}_macosx_amd64 .
get: #go get -u github.com/golang/dep/cmd/dep #dep ensure
install: get gen #cp config_template.json config.json
My confusion is that for building files for Amazon AWS EC2 with the above configuration I need to use (assuming my server go file name is main):
GOOS=linux GOARCH=amd64 go build -o main
But in the Make file this "GOARCH=386" is mentioned in this line:
build: get gen #env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build
What could be the right make file code when Im building Go gRPC Server on Mac OS for the above mentioned Amazon AWS EC2 instance
Please help me :(
Help please - what is the cause of this error?
Note: my application works well locally.
Preparing to deploy application...DONE
Uploading bundle for application: 2363487...Detecting system locale ... DONE
Deploying bundle: 3194815 for application: 2363487 ...
Waiting for task: 737583366
building: Parsing manifest
building: Building image: 3571613
building: Installing system dependencies
building: Fetching packages
building: Installing packages
building: Installing files
building: Pushing image: 3571613
deploying: Starting instances
rollforward: Activating new instances
unstaging: Stopping old instances
Application successfully deployed to https://khol-ben.shinyapps.io/mindshare/
Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
(Using default: en_US)
I'm using jenkins to run my tests and do some cr on the code.
From the jenkins localhost, i'm running the following command with my incoming project
cmake --build MyProject/cmake-build-debug --target MyProject -- -j 2
But i am getting the following error:
Error: could not load cache
I have all my dependencies installed, and when i run cmake . in MyProject folder i get :
-- Configuring done
-- Generating done
-- Build files have been written to: /var/jenkins_home/workspace/Main_build/MyProject
What could i do to possibly fix this? what is the issue?
Thanks.
EDIT:
I'm adding the console output to the jenkins
> git checkout -f f7ee4c3501c93aa34ee31a65c0c19de51d16f908
FATAL: Could not checkout f7ee4c3501c93aa34ee31a65c0c19de51d16f908
hudson.plugins.git.GitException: Command "git checkout -f
f7ee4c3501c93aa34ee31a65c0c19de51d16f908" returned status code 128:
stdout:
stderr: fatal: cannot create directory at 'MyProject/CMakeFiles/3.13.2': Permission denied
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$900(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2341)
Caused: hudson.plugins.git.GitException: Could not checkout f7ee4c3501c93aa34ee31a65c0c19de51d16f908
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2365)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1236)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Finished: FAILURE