Dolphin, the GameCube and Wii emulator - Forums

Full Version: CMAKE entry need to be expanded
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
HI All,

The cmake entry in building dolphin need to be expanded.

cmake .. tells me nothing on how to use. on built in help and google searches didn't really me much nor explain options switches etc.
I experimented for about an hour with out any success.

can some post working examples of what works and expand on the how to build for Linux section.
It's best to not assume the user has a full understanding of how cmake works and how to utilize it.


thanks
The command is "cmake .." The dots are part of the command
(02-26-2014, 03:14 AM)KHg8m3r Wrote: [ -> ]The command is "cmake .." The dots are part of the command
As part of my experimentations, I tried 'cmake ..' without success
Well yeah, that's not supposed to work. Cname is just short for canonical name. It doesn't build things.

http://code.google.com/p/dolphin-emu/wiki/Linux_Build
Did you follow this exactly?
cmake is the actual command you're running, the two periods ".." refer to the directory one level above the current one. CMake will look for a CMakeList.txt file there, so that's what the command is doing in a nutshell.

If you need to know more about CMake, like setting up custom install directories or enabling various options, just google for existing CMake documentation. Most of the info isn't on the Google Code wiki because it would duplicate existing documentation that already exists online.

Though it would be useful if it mentioned things like how to make a debug-fast build (I always forget what parameters I need to set).
Like I stated earlier, in the section on running cmake make needs to be expanded.
I followed the steps verbaten.

when I run cmake .. from the build folder I created earlier, I get the following error.

todd@mythtv ~/dolphin-emu/Build $ cmake ..
CMake Error at Core/Common/CMakeLists.txt:50 (enable_precompiled_headers):
Unknown CMake command "enable_precompiled_headers".


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
todd@mythtv ~/dolphin-emu/Build $
What does cmake -v output in your terminal?
toddbailey Wrote:Like I stated earlier, in the section on running cmake make needs to be expanded.

By that logic, Dolphin's Linux build wiki entry should cover all possible errors that will come up with cmake. However, if you have everything set up correctly before you try to build Dolphin, that's literally all you have to run, cmake .. Something on your end is wrong, which is why you're running into trouble. It's nothing to do with not knowing CMake's documentation. If you've ever used other projects that use CMake to build, you'll often see that the build and install instructions basically go like "cmake .. && make && make install" in the README.txt because, if everything is in order, that's really all you need to run.

It might be that you're not using a current enough version of CMake (as rokclimb15 suspects) but you wanted to sidestep the issue instead of actually solving it, you could very well just delete lines 65-86 of the CMakeLists.txt
(02-26-2014, 12:01 PM)toddbailey Wrote: [ -> ]CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

This is your issue. I had the same problem. Update your version of cmake
(02-26-2014, 02:07 PM)KHg8m3r Wrote: [ -> ]
(02-26-2014, 12:01 PM)toddbailey Wrote: [ -> ]CMake Warning (dev) in CMakeLists.txt:



todd@mythtv ~/dolphin-emu/Build $ cmake -v
CMake Error: The source directory "/home/todd/dolphin-emu/Build/-v" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
todd@mythtv ~/dolphin-emu/Build $ pwd
/home/todd/dolphin-emu/Build



todd@mythtv ~/dolphin-emu/Build $ cmake -version
cmake version 2.8.11.2


I just installed so it should be the latest version
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

This is your issue. I had the same problem. Update your version of cmake
Pages: 1 2