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

How to tell maim build where to find slop? #166

Open feuGeneA opened 5 years ago

feuGeneA commented 5 years ago

I built maim and slop from source, but I had to do a bit of a hack to get it to work.

I didn't want to install slop into my main system, so I installed it to prefix /opt/maim.

But then when I went to build maim I couldn't figure out how to tell cmake where to find slop. Ultimately what I did was to just edit maim's CMakeLists file, adding in /opt/maim/include to target_link_libraries, and /opt/maim/lib/libslopy.so.7.4 /opt/maim/lib/libslopy.so to target_link_libraries.

Please provide for or document a way to tell the maim build where to find slop.

naelstrof commented 5 years ago

I would love to know! I'm pretty sure CMake lets you just manually specify the slop library in the graphical UI.

I'm not very good with CMake so I thought that was normal.