How to ignore gcc compiler pedantic errors in external library headers?

I recently added -pedantic and -pedantic-errors to my make gcc compile options to help cleanup my cross platform code. All was fine until it finds errors in external included header files. Is...

ImageMagick won't show Ghostscipt as delegate

Was trying to get ImageMagick to talk to Ghostscript using MacPorts in OSX Lion but it wouldn't have it. Used to have it working fine under Snow Leopard but something went amiss during Migration...

Converting text to mesh

I need to convert text (string+font) into mesh (vertices, indices, triangles etc), but I don't need to draw anything. I'll just get a string from one API and push it as vertices & indices to...

What is a simple example of using Pango to render text into an image using a FreeType font?

I want to render text using Pango, but I can't find example code that does not use Cairo. Can someone give me a simple example of Pango usage with a FreeType backend? This is how I think it should...

can't compile wine on 64 bit ubuntu

I have been trying to compile wine on Ubuntu 14.04 64-bit and I can't for the life of me figure out what package dependency I'm missing here. I followed along with the guide on winehq and was...

How to install php-redis extension using the official PHP Docker image approach?

I want to build my PHP-FPM image with php-redis extension based on the official PHP Docker image, for example, using this Dockerfile: php:5.6-fpm. The docs say that I can install extensions this...

Install node in Dockerfile?

I am user of AWS elastic beanstalk, and I have a little problem. I want to build my CSS files with less+node. But I don`t know how to install node in my dockerfile, when building with...

ImageMagick installation in Docker Alpine

So I have this Dockerfile that attempts to install ImageMagick the following way: FROM ruby:2.4-alpine ... RUN apk --update add imagemagick ... The point is that the container doesn't...

Running composer install within a Dockerfile

I'm trying to Dockerize my laravel app. The app is already built and in git, but I .gitignore my vendor folder. I've added a Dockerfile, which looks like this: FROM php:7.1-fpm-alpine RUN apk...

How run composer install from dockerfile in php container

Good day I have php container which seting up in Dockerfile I am trying to run composer install with this command WORKDIR '/app' RUN curl -sS https://getcomposer.org/installer | \ php...

PyTorch Cuda with anaconda not available

I'm using anaconda to regulate my environment, for a project i have to use my GPU for network training. I use pytorch for my project and i'm trying to get CUDA working. I installed cudatoolkit,...

Error relocating - symbol not found - building docker-fpm-alpine image

Trying to create an image (from a working one) I got this error, been googling the solution but couldn't find a proper one, I asume something's wrong with libraries. Don't fully understand what...

spacy Can't find model 'en_core_web_sm' on windows 10 and Python 3.5.3 :: Anaconda custom (64-bit)

what is difference between spacy.load('en_core_web_sm') and spacy.load('en')? This link explains different model sizes. But i am still not clear how spacy.load('en_core_web_sm') and...

How to suppress Clang warnings in third-party library header file in CMakeLists.txt file?

I'm currently trying to setup a project that will make use of multiple compilers (including Clang, MSVC, and GCC) using Visual Studio 2019's new CMake functionalities (notably using Clang and...

sdl2_ttf configure error finding free type 2 lib

I'm trying to install the SDL2_ttf library using the command line but not find how the configure process find the free type 2 previously installed. checking for FreeType -- version >= 7.0.1......

How to get glyph unicode using freetype?

I'm trying to use freetype to enumerate the glyphs (name and unicode) in a font file. For getting the name, I'm using FT_Get_Glyph_Name. But how can I get the glyph unicode value? I'm a newbie to...

OpenBSD 6.7 how to install xbase

I am updating our integration test environments to OpenBSD 6.7 (from 6.5) We use ansible to install all the packages on the target system (openbsd 6.7, Vagrant image...

Permission problem: How to setup permissions on docker for windows for use with Wordpress

The problem I'm trying to setup my developing environment using Docker for Windows for use with Wordpress. I'm using docker compose with a custom Dockerfile. This works perfectly on MacOS. Using...

Imagemagick: no images defined (for output filename)

I'm trying to to do a basic convert: $ convert image.png out.jpg but getting error convert-im6.q16: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3258. Why does it say "no...

Alpine ERROR: unsatisfiable constraints: py3-pandas (missing):

I have the following dockerfile: FROM alpine:latest ADD crontab.txt /crontab.txt ADD script.sh /script.sh COPY entry.sh /entry.sh ADD app /app RUN chmod 755 /script.sh /entry.sh RUN...

Why doesn't MapServer recognize shp file created from ogrtindex?

I am trying to create a MapServer layer from tif pyramid but always facing the same error : msDrawMap(): Image handling error. Failed to draw layer named 'ign_2020'.; msDrawRasterLayerLow():...

How to get rid of cryptography build error?

I am trying to build a dockerfile but the problem is when it trying to build specifically cryptography is not building. MY Dockerfile FROM python:3.7-alpine ENV PYTHONUNBUFFERED 1 RUN apk update...

Lambda docker base - unable to install matplotlib

I'm using docker-backed lambdas with the AWS-provided base image for python3.8. It looks like it tries to build matplotlib from scratch, then fails out with gcc related errors. The repro is...

Rootless docker causes "failed to resolve address for github.com"

In my dockerfile i'm installing cryptography python dependency however when building wheel from rootless docker i'm getting following error: ... generating cffi module...

How can I install php8.0-ssh2 from an Alpine Docker image

Here is the Dockerfile (see below) that I use for my projects. Could you explain to me how to install php8.0-ssh2 from this Dockerfile. FROM php:8.0.0-fpm-alpine ARG UID ARG GID RUN apk add...

i have a problem with installing matplotlib

i have a problem with installing matplotlib on my windows 10 machine PS C:\Users\moham> pip install matplotlib Collecting matplotlib Using cached matplotlib-3.4.3.tar.gz (37.9 MB) Preparing...

After conda update, python kernel crashes when matplotlib is used

I have create this simple env with conda: conda create -n test python=3.8.5 pandas scipy numpy matplotlib seaborn jupyterlab The following code in jupyter lab crashes the kernel : import...

spyder's kernel dies when I try to make a plot

I just updated spyder to 5.1.5 and all it takes is these 4 lines of code to break the kernel: import numpy as np import matplotlib.pyplot as plt arr = np.arange(0,100) plt.plot(arr) Other plots...

Python: matplotlib.pyplot.show() is not showing the plot

import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.show() input("Press enter to continue...") If I run the script above within VS Code, or even within command prompt, the plot canvas only...

Getting DLL error when running tensorflow/keras program on python gpu 3.8

I am trying to run my simple AI program but I keep getting this DLL error: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a...

Relevant tags