Almamu / linux-wallpaperengine

Wallpaper Engine backgrounds for Linux!
GNU General Public License v3.0
1.67k stars 61 forks source link

Could NOT find SDL_mixer #54

Closed t0mtee closed 2 years ago

t0mtee commented 3 years ago

I'm trying to use cmake .. to build this repo but I am getting this:

-- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Using X11 for window creation -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Checking for module 'xrandr' -- Found xrandr, version 1.5.2 CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed tofind_package_handle_standard_args(XRANDR) does not match the name of the calling package (Xrandr). This can lead to problems in calling code that expectsfind_packageresult variables (e.g.,_FOUND`) to follow a certain pattern. Call Stack (most recent call first): CMakeModules/FindXrandr.cmake:64 (find_package_handle_standard_args) CMakeLists.txt:15 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found XRANDR: /usr/lib/x86_64-linux-gnu/libXrandr.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found GLEW: /usr/include (found version "2.1.0") -- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") -- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS) Call Stack (most recent call first): /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.18/Modules/FindSDL_mixer.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:21 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/osoa/Desktop/linux-wallpaperengine/build/CMakeFiles/CMakeOutput.log". See also "/home/osoa/Desktop/linux-wallpaperengine/build/CMakeFiles/CMakeError.log". `

I have installed all the SDL_mixer packages I can find but this won't change. Sorry if this a stupid question, I am new to Linux.

Zophirel commented 2 years ago

same thing it says Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS) and if i try to clone the repository by git clone --recurse-submodules git@github.com:Almamu/linux-wallpaperengine.git it says `Cloning into 'linux-wallpaperengine'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. `

Almamu commented 2 years ago

I'm trying to use cmake .. to build this repo but I am getting this:

-- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Using X11 for window creation -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Checking for module 'xrandr' -- Found xrandr, version 1.5.2 CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed tofind_package_handle_standard_args(XRANDR) does not match the name of the calling package (Xrandr). This can lead to problems in calling code that expectsfind_packageresult variables (e.g.,_FOUND`) to follow a certain pattern. Call Stack (most recent call first): CMakeModules/FindXrandr.cmake:64 (find_package_handle_standard_args) CMakeLists.txt:15 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found XRANDR: /usr/lib/x86_64-linux-gnu/libXrandr.so -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so -- Found GLEW: /usr/include (found version "2.1.0") -- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") -- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS) Call Stack (most recent call first): /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.18/Modules/FindSDL_mixer.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:21 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/osoa/Desktop/linux-wallpaperengine/build/CMakeFiles/CMakeOutput.log". See also "/home/osoa/Desktop/linux-wallpaperengine/build/CMakeFiles/CMakeError.log". `

I have installed all the SDL_mixer packages I can find but this won't change. Sorry if this a stupid question, I am new to Linux.

What distro are you using? You have to install the -dev/-devel packages of SDLMixer, it'll depend on the distro you're using.

same thing it says Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS) and if i try to clone the repository by git clone --recurse-submodules git@github.com:Almamu/linux-wallpaperengine.git it says `Cloning into 'linux-wallpaperengine'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. `

What distro are you running? About the error on the clone, that's because your machine's ssh key is not setup in your github account. You can use the https version of the link for the clone

git clone https://github.com/Almamu/linux-wallpaperengine.git
t0mtee commented 2 years ago

I’m using PopOS

Almamu commented 2 years ago

I’m using PopOS

According to my searches, the packages you'll need for SDLMixer should be:

libsdl-mixer1.2
libsdl-mixer1.2-dev
t0mtee commented 2 years ago

I’m using PopOS

According to my searches, the packages you'll need for SDLMixer should be:

libsdl-mixer1.2
libsdl-mixer1.2-dev

ah that was it, i had the first version but not the dev version. thanks!