错误现象:

--   package 'minigui' not found
CMake Error at CMakeLists.txt:38 (MESSAGE):
  MiniGUI is not properly installed on the system.  You need

          MiniGUI Ver 3.0.x or later for building this package.
          Please configure and install MiniGUI Ver 3.0.x first.


-- Configuring incomplete, errors occurred!

 

分析:

pkg-config变量里面不包含minigui的安装路径

 

解决:

export PKG_CONFIG_PATH=/home/etouch/install/minigui/lib/pkgconfig/:$PKG_CONFIG_PATH
之后再执行cmake ./

 

参考:

https://www.cnblogs.com/chris-cp/p/3580002.html