Almamu / linux-wallpaperengine

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

Couldn't able to compile #57

Closed Spectre-hidN closed 2 years ago

Spectre-hidN commented 2 years ago

I have been trying to compile this but, I am getting error while trying to run the cmake .. command.

Error

Please help me to fix this problem! 🙏 I've already installed FFMPEG and other dependencies (libav*) but, still I'am getting this FFMPEG Library missing errors.

p0ryae commented 2 years ago

May I ask how you solved this problem?

flykule commented 2 years ago

May I ask how you solved this problem?

You need download ffmpeg source code first from ffmpeg.org,then unzip and:.

cd ffmpeg
./configure
make
sudo make install
EchoGroot commented 2 years ago

May I ask how you solved this problem?

You need download ffmpeg source code first from ffmpeg.org,then unzip and:.

cd ffmpeg
./configure
make
sudo make install

it is not work for me

after run cmake on debian

❯ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.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
-- 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.1
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (XRANDR)
  does not match the name of the calling package (Xrandr).  This can lead to
  problems in calling code that expects `find_package` result 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:12 (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") 
-- 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  
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") 
-- Found SDL_mixer: /usr/lib/x86_64-linux-gnu/libSDL_mixer.so (found version "1.2.12") 
-- Performing Test LZ4_GOOD_VERSION
-- Performing Test LZ4_GOOD_VERSION - Success
-- Found LZ4: /usr/lib/x86_64-linux-gnu/liblz4.so  
-- Found LZ4: /usr/lib/x86_64-linux-gnu/liblz4.so
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (FFMPEG)
  does not match the name of the calling package (FFmpeg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMakeModules/FindFFmpeg.cmake:23 (find_package_handle_standard_args)
  CMakeLists.txt:20 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Checking for module 'libavcodec'
--   Found libavcodec, version 59.26.100
-- Checking for module 'libavformat'
--   Found libavformat, version 59.22.100
-- Checking for module 'libavutil'
--   Found libavutil, version 57.24.101
-- Checking for module 'libswscale'
--   Found libswscale, version 6.6.100
-- Found FFMPEG or Libav: /usr/local/lib/libavcodec.a;/usr/local/lib/libavformat.a;/usr/local/lib/libavutil.a;/usr/local/lib/libswscale.a, /usr/local/include
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xxf86vm_LIB (ADVANCED)
    linked by target "wallengine" in directory /opt/linux-wallpaperengine/seccond/linux-wallpaperengine

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
Almamu commented 2 years ago

@EchoGroot your issue is different, FFMPEG is found properly, the library not being found in your case is xxf86vm required by x11.