1

我正在尝试构建 dolphin-emu ( https://code.google.com/p/dolphin-emu ),根据http://code.google.com上的说明运行 cmake 时出现以下错误/p/dolphin-emu/wiki/Linux_Build

我对cmake了解不多,基本的谷歌搜索也没有找到解决方案。

我正在运行 Linux Mint 12。

$ git clone https://code.google.com/p/dolphin-emu/ dolphin-emu
(...)
$ cd dolphin-emu
dolphin-emu$ mkdir Build
dolphin-emu$ cd Build
dolphin-emu/Build$ cmake ..
x86_64
OpenMP parallelization enabled
ALSA found, enabling ALSA sound backend
ao found, enabling ao sound backend
bluez found, enabling bluetooth support
PulseAudio found, enabling PulseAudio sound backend
-- Could NOT find OpenAL (missing:  OPENAL_LIBRARY OPENAL_INCLUDE_DIR) 
OpenAL NOT found, disabling OpenAL sound backend
-- checking for modules 'wayland-egl;wayland-client;wayland-cursor'
--   package 'wayland-egl' not found
--   package 'wayland-client' not found
--   package 'wayland-cursor' not found
Wayland support disabled
X11 support enabled
Xrandr found
-- checking for module 'xi>=1.5.0'
--   package 'xi>=1.5.0' not found
libav found, enabling AVI frame dumps
PortAudio not found, disabling mic support
Using static lzo from Externals
-- Could NOT find SDL2 (missing:  SDL2_LIBRARY SDL2_INCLUDE_DIR) 
Using shared SDL
-- checking for module 'libusb-1.0'
--   package 'libusb-1.0' not found
-- libusb-1.0 not found.
Could NOT find SFML (missing:  SFML_INCLUDE_DIR)
Using static SFML 1.5 from Externals
-- Could not find miniupnp
Using static miniupnpc from Externals
-- Could not find polarssl
Using PolarSSL from Externals
Using static SOIL from Externals
Using shared zlib
-- checking for one of the modules 'glew>=1.8'
Using static GLEW from Externals
-- Could NOT find wxWidgets (missing:  wxWidgets_FOUND) 
-- Could NOT find wxWidgets (missing:  wxWidgets_FOUND) 
Using static wxWidgets from Externals
gthread-2.0 found
pangocairo found
CMake Error at /usr/share/cmake-2.8/Modules/FindGettext.cmake:83 (ADD_CUSTOM_TARGET):
  add_custom_target cannot create target "translations" because another
  target with the same name already exists.  The existing target is a custom
  target created in source directory
  "/home/jasmuth/Downloads/dolphin-emu/Source/Core/DolphinWX".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  Source/Core/DolphinWX/CMakeLists.txt:181 (GETTEXT_CREATE_TRANSLATIONS)


-- Configuring incomplete, errors occurred!
4

1 回答 1

3

将 cmake 从 2.8.7(apt-get 附带)升级到 2.8.12(可通过源安装获得)解决了这个问题。

于 2013-11-04T01:51:17.277 回答