Imported target "SDL2_mixer::SDL2_mixer" includes non-existent path

Issue #313 resolved
Ishaan Subramanya created an issue

Hello,

I am using ECWolf: v1.4.1
OS: Manjaro *Arch based* 64-bit

When I run

$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DGPL=ON
-- Using system zlib, includes found at /usr/include
-- Using system libbz2, includes found at /usr/include
-- Using system libjpeg, includes found at /usr/include
-- Using system SDL2
-- Using system SDL2_mixer
-- Using system SDL2_net
-- Configuring done
CMake Error in src/CMakeLists.txt:
  Imported target "SDL2_mixer::SDL2_mixer" includes non-existent path

    "//include/SDL2"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I have also run

$ sudo pacman -S --needed gcc make cmake sdl2 sdl2_mixer sdl2_net git \
zlib bzip2 libjpeg-turbo gtk2 sdl sdl_mixer sdl_net

Please help.

Comments (6)

  1. Braden Obrzut

    Works fine for me starting with the docker.io/manjarolinux/base container running the exact commands you gave. Something seems wrong with your SDL2_mixer install since that path would ultimately come from the configuration that’s installed by that package.

    Unrelated but by the way ECWolf uses gtk3 now.

    Easiest fix would be to do check out the submodules (git submodule update --init --recursive) and then add -DINTERNAL_SDL_MIXER=ON -DINTERNAL_SDL_MIXER_CODECS=ON to your cmake call and just use the vendored copies of the libraries.

  2. Ishaan Subramanya reporter

    Same error.

    -- Using system zlib, includes found at /usr/include
    -- Using system libbz2, includes found at /usr/include
    -- Using system libjpeg, includes found at /usr/include
    -- Using system SDL2
    -- Configuring SDL2_mixer 2.6.2
    -- Found FluidSynth: /usr/lib/libfluidsynth.so
    -- Using vendored libogg
    -- Configuring libogg 1.3.5
    -- Looking for include file inttypes.h
    -- Looking for include file inttypes.h - found
    -- Looking for include file stdint.h
    -- Looking for include file stdint.h - found
    -- Looking for include file sys/types.h
    -- Looking for include file sys/types.h - found
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of int16_t
    -- Check size of int16_t - done
    -- Check size of uint16_t
    -- Check size of uint16_t - done
    -- Check size of u_int16_t
    -- Check size of u_int16_t - done
    -- Check size of int32_t
    -- Check size of int32_t - done
    -- Check size of uint32_t
    -- Check size of uint32_t - done
    -- Check size of u_int32_t
    -- Check size of u_int32_t - done
    -- Check size of int64_t
    -- Check size of int64_t - done
    -- Check size of short
    -- Check size of short - done
    -- Check size of int
    -- Check size of int - done
    -- Check size of long
    -- Check size of long - done
    -- Check size of long long
    -- Check size of long long - done
    -- Using vendored opus
    -- Opus library version: 0.8.0
    -- Found Git: /sbin/git (found version "2.39.2")
    -- Opus package version: 1.3.1-21-ged37f9f9
    -- Opus project version: 1.3.1
    -- Looking for floor in m
    -- Looking for floor in m - found
    -- Looking for lrintf in m
    -- Looking for lrintf in m - found
    -- Looking for lrint in m
    -- Looking for lrint in m - found
    -- Looking for cpuid.h
    -- Looking for cpuid.h - found
    -- Check SIMD support by compiler
    -- Looking for xmmintrin.h
    -- Looking for xmmintrin.h - found
    -- Performing Test SSE1_SUPPORTED
    -- Performing Test SSE1_SUPPORTED - Success
    -- Looking for emmintrin.h
    -- Looking for emmintrin.h - found
    -- Performing Test SSE2_SUPPORTED
    -- Performing Test SSE2_SUPPORTED - Success
    -- Looking for smmintrin.h
    -- Looking for smmintrin.h - found
    -- Performing Test SSE4_1_SUPPORTED
    -- Performing Test SSE4_1_SUPPORTED - Success
    -- Looking for immintrin.h
    -- Looking for immintrin.h - found
    -- Performing Test AVX_SUPPORTED
    -- Performing Test AVX_SUPPORTED - Success
    -- Performing Test STACK_PROTECTION_STRONG_SUPPORTED
    -- Performing Test STACK_PROTECTION_STRONG_SUPPORTED - Success
    -- The following features have been enabled:
    
     * STACK_PROTECTOR, Use stack protection
     * FLOAT_API, compile with the floating point API (for machines with float library)
     * X86_MAY_HAVE_SSE, does runtime check for SSE1 support
     * X86_MAY_HAVE_SSE2, does runtime check for SSE2 support
     * X86_MAY_HAVE_SSE4_1, does runtime check for SSE4_1 support
     * X86_MAY_HAVE_AVX, does runtime check for AVX support
     * X86_PRESUME_SSE, assume target CPU has SSE1 support
     * X86_PRESUME_SSE2, assume target CPU has SSE2 support
    
    -- The following OPTIONAL packages have been found:
    
     * FluidSynth
    
    -- The following REQUIRED packages have been found:
    
     * Git, fast, scalable, distributed revision control system, <https://git-scm.com/>
       required to set up package version
    
    -- The following features have been disabled:
    
     * USE_ALLOCA, Use alloca for stack arrays (on non-C99 compilers)
     * CUSTOM_MODES, Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
     * BUILD_PROGRAMS, Build programs
     * FIXED_POINT, compile as fixed-point (for machines without a fast enough FPU)
     * INSTALL_PKG_CONFIG_MODULE, install PkgConfig module
     * INSTALL_CMAKE_CONFIG_MODULE, install CMake package config module
     * X86_PRESUME_SSE4_1, assume target CPU has SSE4_1 support
     * X86_PRESUME_AVX, assume target CPU has AVX support
    
    -- Using vendored opusfile
    -- Opus package version from git repo: 0.12-14-g37415ed
    -- Opus project version: 0.12
    -- Looking for lrintf in m
    -- Looking for lrintf in m - found
    -- Looking for lrintf
    -- Looking for lrintf - found
    -- Enabled ogg music: using stb_vorbis
    -- Using vendored libflac
    -- Looking for alloca.h
    -- Looking for alloca.h - found
    -- Looking for byteswap.h
    -- Looking for byteswap.h - found
    -- Looking for dlfcn.h
    -- Looking for dlfcn.h - found
    -- Looking for inttypes.h
    -- Looking for inttypes.h - found
    -- Looking for memory.h
    -- Looking for memory.h - found
    -- Looking for stdlib.h
    -- Looking for stdlib.h - found
    -- Looking for strings.h
    -- Looking for strings.h - found
    -- Looking for string.h
    -- Looking for string.h - found
    -- Looking for sys/ioctl.h
    -- Looking for sys/ioctl.h - found
    -- Looking for sys/param.h
    -- Looking for sys/param.h - found
    -- Looking for sys/stat.h
    -- Looking for sys/stat.h - found
    -- Looking for termios.h
    -- Looking for termios.h - found
    -- Looking for unistd.h
    -- Looking for unistd.h - found
    -- Looking for x86intrin.h
    -- Looking for x86intrin.h - found
    -- Looking for clock_gettime
    -- Looking for clock_gettime - found
    -- Looking for getopt_long
    -- Looking for getopt_long - found
    -- Looking for iconv
    -- Looking for iconv - found
    -- Looking for lround
    -- Looking for lround - found
    -- Looking for setenv
    -- Looking for setenv - found
    -- Looking for sinf
    -- Looking for sinf - found
    -- Using vendored libmodplug
    -- Performing Test HAVE_VISIBILITY_DEFAULT
    -- Performing Test HAVE_VISIBILITY_DEFAULT - Success
    -- Performing Test HAVE_VISIBILITY_HIDDEN
    -- Performing Test HAVE_VISIBILITY_HIDDEN - Success
    -- Performing Test HAVE_NO_UNDEFINED
    -- Performing Test HAVE_NO_UNDEFINED - Success
    -- Using system FluidSynth
    -- Dynamic fluidsynth: libfluidsynth.so.3.1.3
    -- Using internal SDL2_mixer
    -- Using system SDL2_net
    -- Configuring done
    CMake Error in src/CMakeLists.txt:
      Imported target "SDL2_net::SDL2_net" includes non-existent path
    
        "//include/SDL2"
    
      in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
    
      * The path was deleted, renamed, or moved to another location.
    
      * An install or uninstall procedure did not complete successfully.
    
      * The installation package was faulty and references files it does not
      provide.
    
    
    
    -- Generating done
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    

  3. Braden Obrzut

    Technically I used podman so it’s podman run --rm -it docker.io/manjarolinux/base but sub podman with docker and that should work too. Then I ran your pacman command, cloned the repo, made the build directory, and ran cmake and it was fine.

  4. Log in to comment