maim icon indicating copy to clipboard operation
maim copied to clipboard

Symbol Lookup Error

Open softgrass opened this issue 8 years ago • 12 comments

When I run main (any part of the command), I get this error maim: symbol lookup error: maim: undefined symbol: _ZN4slop13SlopSelectionC1Effffi I am running Ubuntu 17.10 and I installed maim using apt-get install

softgrass avatar Oct 22 '17 00:10 softgrass

Make sure you have slop installed and that it has the library slopy.

You might want to try installing manually from instructions in the readme

naelstrof avatar Oct 22 '17 01:10 naelstrof

I manually installed slop. When I tried installing maim (using the instruction from the README) I get the following error:

-- Found the following ICU libraries:
--   uc (required)
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:
XCOMPOSITE_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/liam/maim
   used as include directory in directory /home/liam/maim
   used as include directory in directory /home/liam/maim
   used as include directory in directory /home/liam/maim
   used as include directory in directory /home/liam/maim
   used as include directory in directory /home/liam/maim
   used as include directory in directory /home/liam/maim
XCOMPOSITE_LIBRARY (ADVANCED)
    linked by target "maim" in directory /home/liam/maim

-- Configuring incomplete, errors occurred!
See also "/home/liam/maim/CMakeFiles/CMakeOutput.log".
See also "/home/liam/maim/CMakeFiles/CMakeError.log".

softgrass avatar Oct 22 '17 12:10 softgrass

You need to install the xcomposite libraries.

naelstrof avatar Oct 24 '17 19:10 naelstrof

since when? what packages?

moodboom avatar Nov 08 '17 02:11 moodboom

fwiw, the webm video capture works fine, it's just the png that is crashing on me. ubuntu 17.10. was working previously (ubuntu 17.04 maybe?).

moodboom avatar Nov 08 '17 02:11 moodboom

Running ubuntu 17.10 as well and getting the same error:

lyze@mini:~$ maim
maim: symbol lookup error: maim: undefined symbol: _ZN4slop13SlopSelectionC1Effffi

lyze@mini:~$ sudo apt install maim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
maim is already the newest version (5.4.64-1.1).

lyze@mini:~$ sudo apt install slop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
slop is already the newest version (7.3.49-1).

lyze@mini:~$ sudo apt install libxcomposite1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxcomposite1 is already the newest version (1:0.4.4-2).

lyze237 avatar Nov 08 '17 08:11 lyze237

I have the same issue as @lyze237. Building from source was the only thing that fixed the issue for me.

A few libraries I had to install to get the build to work on Ubuntu 17.10 (YMMV):

sudo apt-get install libjpeg-dev libgl1-mesa-dev

I used slop from the repo so I only did the following (from README.md) to build:

git clone https://github.com/naelstrof/maim.git
cd maim
cmake -DCMAKE_INSTALL_PREFIX="/usr" ./
make && sudo make install

danclien avatar Nov 13 '17 21:11 danclien

Looks like need more libs for Ubuntu to compile sudo apt install libjpeg-dev libgl1-mesa-dev cmake libicu-dev libxrandr-dev libxfixes-dev libglm-dev libxcomposite-dev

iturdikulov avatar Dec 09 '17 18:12 iturdikulov

Built from source as well. Thanks. On top of those packages mentioned by inomoz, I also needed sudo apt install zlib1g-dev libpng-dev on Ubuntu 17.10

joshmorel avatar Dec 17 '17 18:12 joshmorel

Built from source, all is well here:

cd ~/apps && git clone https://github.com/naelstrof/maim.git && cd maim
cmake -DCMAKE_INSTALL_PREFIX="/usr" ./
sudo apt install libjpeg-dev libxcomposite-dev libxrandr-dev libglm-dev
make && sudo make install

moodboom avatar Jan 05 '18 20:01 moodboom

also having this issue with maim on ubuntu 17.10 from repository

chasebolt avatar Feb 05 '18 18:02 chasebolt

Same here, ubuntu server 17.10. Maim from Ubuntu's official repository!

j3ky avatar Feb 07 '18 20:02 j3ky