• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 585 586 587 588 589 ... 1198 Next »

CMAKE entry need to be expanded
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
CMAKE entry need to be expanded
02-26-2014, 02:54 AM
#1
toddbailey Offline
Junior Member
**
Posts: 14
Threads: 2
Joined: Feb 2014
Photo 
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
Find
Reply
02-26-2014, 03:14 AM
#2
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,959
Threads: 4
Joined: Sep 2013
The command is "cmake .." The dots are part of the command
Find
Reply
02-26-2014, 03:25 AM (This post was last modified: 02-26-2014, 09:19 AM by mbc07.)
#3
toddbailey Offline
Junior Member
**
Posts: 14
Threads: 2
Joined: Feb 2014
(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
Find
Reply
02-26-2014, 03:30 AM
#4
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,959
Threads: 4
Joined: Sep 2013
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?
Find
Reply
02-26-2014, 04:07 AM (This post was last modified: 02-26-2014, 04:07 AM by Shonumi.)
#5
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,513
Threads: 55
Joined: Dec 2011
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).
Website Find
Reply
02-26-2014, 12:01 PM (This post was last modified: 02-26-2014, 12:04 PM by toddbailey.)
#6
toddbailey Offline
Junior Member
**
Posts: 14
Threads: 2
Joined: Feb 2014
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 $
Find
Reply
02-26-2014, 12:39 PM
#7
rokclimb15 Offline
Senior Member
****
Posts: 383
Threads: 4
Joined: Jul 2013
What does cmake -v output in your terminal?
Find
Reply
02-26-2014, 01:17 PM
#8
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,513
Threads: 55
Joined: Dec 2011
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
Website Find
Reply
02-26-2014, 02:07 PM
#9
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,959
Threads: 4
Joined: Sep 2013
(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
Find
Reply
02-27-2014, 01:01 AM
#10
toddbailey Offline
Junior Member
**
Posts: 14
Threads: 2
Joined: Feb 2014
(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
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode