Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

SDL2-mixer does not install correctly #159

Description

@ryanpcmcquen

.replit:

language = "c"
run = "([ $(which sdl-config) ] && make && ./basque) || install-pkg libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev"

Everything appears to install correctly:

 ([ $(which sdl-config) ] && make && ./basque) || install-pkg libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
clang -Wall -Wextra -std=c99 source/basque.c '-Wl,-rpath,$ORIGIN' `$(which sdl2-config) --cflags --libs` -l SDL2_image -l SDL2_mixer -l SDL2_ttf -o basque
In file included from source/basque.c:1:
In file included from source/initialization.h:1:
In file included from source/mechanics.h:1:
In file included from source/map.h:1:
source/types.h:3:10: fatal error: 'SDL2/SDL_mixer.h' file not found
#include <SDL2/SDL_mixer.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
Makefile:39: recipe for target 'basque' failed
make: *** [basque] Error 1
-----> Updating apt caches
       Ign:1 https://storage.googleapis.com/download.dartlang.org/linux/debian stable InRelease
       Get:2 https://storage.googleapis.com/download.dartlang.org/linux/debian stable Release [941 B]
       Get:3 https://deb.nodesource.com/node_10.x bionic InRelease [4,584 B]
       Get:4 https://storage.googleapis.com/download.dartlang.org/linux/debian stable Release.gpg [819 B]
       Get:5 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease [5,143 B]
       Get:6 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
       Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
       Get:8 http://ppa.launchpad.net/avsm/ppa/ubuntu bionic InRelease [15.4 kB]
       Ign:9 https://dl.bintray.com/nxadm/rakudo-pkg-debs bionic InRelease
       Get:10 https://dl.bintray.com/nxadm/rakudo-pkg-debs bionic Release [1,840 B]
       Get:11 https://dist.crystal-lang.org/apt crystal InRelease [2,496 B]
       Get:13 https://dl.bintray.com/nxadm/rakudo-pkg-debs bionic Release.gpg [821 B]
       Get:14 http://ppa.launchpad.net/bartbes/love-stable/ubuntu bionic InRelease [20.7 kB]
       Get:15 https://deb.nodesource.com/node_10.x bionic/main amd64 Packages [766 B]
       Get:12 https://packagecloud.io/cs50/repo/ubuntu trusty InRelease [23.2 kB]
       Get:16 https://storage.googleapis.com/download.dartlang.org/linux/debian stable/main amd64 Packages [2,765 B]
       Get:17 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
       Get:18 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease [15.9 kB]
       Get:19 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages [48.9 kB]
       Get:20 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
       Get:21 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic InRelease [21.3 kB]
       Get:22 https://dl.bintray.com/nxadm/rakudo-pkg-debs bionic/main amd64 Packages [3,063 B]
       Get:23 https://dist.crystal-lang.org/apt crystal/main amd64 Packages [447 B]
       Get:24 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [884 kB]
       Get:25 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu bionic InRelease [15.4 kB]
       Get:26 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
       Get:27 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1,038 kB]
       Get:28 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
       Get:29 http://ppa.launchpad.net/avsm/ppa/ubuntu bionic/main amd64 Packages [425 B]
       Get:31 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [9,558 B]
       Get:32 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [100 kB]
       Get:30 https://packagecloud.io/cs50/repo/ubuntu trusty/main amd64 Packages [2,415 B]
       Get:33 http://ppa.launchpad.net/bartbes/love-stable/ubuntu bionic/main amd64 Packages [885 B]
       Get:34 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic/main amd64 Packages [35.1 kB]
       Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
       Get:36 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
       Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,413 kB]
       Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,336 kB]
       Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [27.1 kB]
       Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [116 kB]
       Get:41 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [8,286 B]
       Get:42 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [8,432 B]
       Get:43 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic/main amd64 Packages [1,976 B]
       Get:44 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu bionic/main amd64 Packages [5,025 B]
rm: cannot remove '/var/cache/apt/archives/partial/*.deb': Permission denied
       Fetched 18.5 MB in 4s (4,247 kB/s)
       Reading package lists...
-----> Fetching .debs for libsdl2-dev
       Reading package lists...
       Building dependency tree...
       0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 249 not upgraded.
       Need to get 683 kB of archives.
       After this operation, 0 B of additional disk space will be used.
       Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libsdl2-dev amd64 2.0.8+dfsg1-1ubuntu1.18.04.4 [683 kB]
       Fetched 683 kB in 1s (730 kB/s)
       Download complete and in download only mode
W: --force-yes is deprecated, use one of the options starting with --allow instead.
-----> Fetching .debs for libsdl2-image-dev
       Reading package lists...
       Building dependency tree...
       The following NEW packages will be installed:
         libsdl2-image-dev
       0 upgraded, 1 newly installed, 0 to remove and 249 not upgraded.
       Need to get 68.6 kB of archives.
       After this operation, 245 kB of additional disk space will be used.
       Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-image-dev amd64 2.0.3+dfsg1-1 [68.6 kB]
       Fetched 68.6 kB in 0s (161 kB/s)
       Download complete and in download only mode
W: --force-yes is deprecated, use one of the options starting with --allow instead.
-----> Fetching .debs for libsdl2-mixer-dev
       Reading package lists...
       Building dependency tree...
       The following additional packages will be installed:
         fluidr3mono-gm-soundfont libsdl2-mixer-2.0-0
       The following NEW packages will be installed:
         fluidr3mono-gm-soundfont libsdl2-mixer-2.0-0 libsdl2-mixer-dev
       0 upgraded, 3 newly installed, 0 to remove and 249 not upgraded.
       Need to get 18.9 MB of archives.
       After this operation, 24.1 MB of additional disk space will be used.
       Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 fluidr3mono-gm-soundfont all 2.315-4 [18.7 MB]
       Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-mixer-2.0-0 amd64 2.0.2+dfsg1-2 [58.4 kB]
       Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-mixer-dev amd64 2.0.2+dfsg1-2 [73.6 kB]
       Fetched 18.9 MB in 2s (9,982 kB/s)
       Download complete and in download only mode
W: --force-yes is deprecated, use one of the options starting with --allow instead.
-----> Fetching .debs for libsdl2-ttf-dev
       Reading package lists...
       Building dependency tree...
       The following additional packages will be installed:

But then compilation fails:

clang -Wall -Wextra -std=c99 source/basque.c '-Wl,-rpath,$ORIGIN' `$(whic
h sdl2-config) --cflags --libs` -l SDL2_image -l SDL2_mixer -l SDL2_ttf -
o basque
In file included from source/basque.c:1:
In file included from source/initialization.h:1:
In file included from source/mechanics.h:1:
In file included from source/map.h:1:
source/types.h:3:10: fatal error: 'SDL2/SDL_mixer.h' file not found
#include <SDL2/SDL_mixer.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
Makefile:39: recipe for target 'basque' failed
make: *** [basque] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions