naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

Build error #204

Closed rien333 closed 4 years ago

rien333 commented 4 years ago

Hi, when I try to build the current git repo from arch linux (linux 5.6.3) I get the following error (towards the end of the log):

-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37")
-- Found JPEG: /usr/lib/libjpeg.so (found version "80")
CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (Xrender)
  does not match the name of the calling package (XRender).  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):
  modules/FindXRender.cmake:38 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:35 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Xrender: /usr/lib/libXrender.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/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
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3")
-- Found GLX: /usr/include
-- Looking for C++ include pthread.h
-- Looking for C++ include 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 the following ICU libraries:
--   uc (required)
-- Found ICU: /usr/include (found version "65.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/makepkg/maim-git/src/maim
Scanning dependencies of target maim
[ 75%] Building CXX object CMakeFiles/maim.dir/src/main.cpp.o
[ 75%] Building CXX object CMakeFiles/maim.dir/src/image.cpp.o
[ 75%] Building CXX object CMakeFiles/maim.dir/src/x.cpp.o
/tmp/makepkg/maim-git/src/maim/src/main.cpp: In function ‘slop::SlopOptions* getSlopOptions(cxxopts::Options&)’:
/tmp/makepkg/maim-git/src/maim/src/main.cpp:256:14: error: ‘class slop::SlopOptions’ has no member named ‘nodrag’
  256 |         foo->nodrag = options["nodrag"].as<bool>();
      |              ^~~~~~
make[2]: *** [CMakeFiles/maim.dir/build.make:109: CMakeFiles/maim.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/maim.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
naelstrof commented 4 years ago

You gotta update slop before updating maim, I probably should've implemented some backward compatibility-- sorry!

rien333 commented 4 years ago

Huh, interesting. For some reason the slop version from the arch repos is one behind, but the package itself has been updated in recent times.

rien333 commented 4 years ago

Seems to compile fine now?