MCMrARM / mcpelauncher-linux

Please note this is a legacy repository, please go to: https://github.com/minecraft-linux/mcpelauncher-manifest/wiki
GNU General Public License v3.0
311 stars 44 forks source link

CMake Error at CMakeLists.txt #345

Open cheesykatie opened 6 years ago

cheesykatie commented 6 years ago

Ubuntu 16.04.4 LTS (on an Acer Chromebook 11 CB3-131 using Crouton). Followed everything in the ReadMe. Commands went smoothly but during cmake encountered the following error.

[...] -- Found X11: /usr/lib/i386-linux-gnu/libX11.so -- Found Protobuf: /usr/lib/i386-linux-gnu/libprotobuf.so
CMake Error at CMakeLists.txt:105 (add_subdirectory): The source directory

/home/kmkerschner/mcpelauncher-linux/gplay_api

does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:106 (set_target_properties): set_target_properties Can not find target to add properties to: gplaydl

-- Configuring incomplete, errors occurred! See also "/home/kmkerschner/mcpelauncher-linux/build/CMakeFiles/CMakeOutput.log". See also "/home/kmkerschner/mcpelauncher-linux/build/CMakeFiles/CMakeError.log".

codehz commented 6 years ago

run git submodule init && git submodule update, and try again

cheesykatie commented 6 years ago

Thank you. After doing this it then wanted a newer version for cmake so I removed the one that had installed and built the latest version. Now I am getting this error:

[...] -- Found Protobuf: /usr/lib/i386-linux-gnu/libprotobuf.so;-lpthread (found version "2.6.1") CMake Error at /usr/local/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR) (found version "2.6.1") Call Stack (most recent call first): /usr/local/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake-3.10/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) gplay_api/CMakeLists.txt:8 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/kmkerschner/mcpelauncher-linux/build/CMakeFiles/CMakeOutput.log". See also "/home/kmkerschner/mcpelauncher-linux/build/CMakeFiles/CMakeError.log".

galenzhao commented 6 years ago

lookup wiki or readme, you need protobuf lib