MantisBT - CMake
View Issue Details
0014230CMakeCMakepublic2013-06-19 01:012013-11-04 09:33
fiyawerx 
 
normalminoralways
closedno change required 
Apple MacOS X10.8.3
CMake 2.8.11.1 
 
0014230: Unknown CMake command "cmake_parse_arguments"
It appears in versions 2.8.11.1 and 2.8.11, when trying to compile (in my case this was with Plex Home Theatre / XBMC) This error shows. If you remove 2.8.11.x and install 2.8.10, it works as expected.
I'm not sure what info will help here, as I'm not very familiar with CMake, but I noticed others on the forum mentioning having the same issue. This also occurs when installed via brew (homebrew) on OsX, which downloads the .tar.gz as well as when using the darwin installer.
No tags attached.
Issue History
2013-06-19 01:01fiyawerxNew Issue
2013-06-19 08:56Brad KingNote Added: 0033324
2013-06-19 09:35fiyawerxNote Added: 0033325
2013-06-19 09:47fiyawerxNote Edited: 0033325bug_revision_view_page.php?bugnote_id=33325#r1191
2013-06-19 09:57Brad KingNote Added: 0033326
2013-06-19 10:16fiyawerxNote Added: 0033329
2013-06-19 10:18Brad KingNote Added: 0033330
2013-06-19 10:18Brad KingStatusnew => resolved
2013-06-19 10:18Brad KingResolutionopen => no change required
2013-11-04 09:33Robert MaynardNote Added: 0034372
2013-11-04 09:33Robert MaynardStatusresolved => closed

Notes
(0033324)
Brad King   
2013-06-19 08:56   
The command is a macro that is supposed to be provided by including the CMakeParseArguments module. Whether the command is available depends on the calling context.

Does the error message have a context (file location, call stack, etc.)?

Also please post a link to the forum discussion you mention.
(0033325)
fiyawerx   
2013-06-19 09:35   
(edited on: 2013-06-19 09:47)
I'm not very experienced with this, so I will try to give you any info you need. The forum post is here, but may be members only: http://forums.plexapp.com/index.php/topic/54497-build-plexht-from-source/ [^]

The project being built is here:
https://github.com/plexinc/plex-home-theater-public [^]

On OsX, what I've done to build it based on the instructions in the post is:
Install XCode from the app store.
Install homebrew from here: http://mxcl.github.io/homebrew/ [^]
Once that is installed, install xz, gnu-tar, ninja, wget and cmake via "brew install"

Create a build directory (in my case mkdir build; cd build) and run the following command:
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DPLEX_SKIP_BUNDLING=1 -DCMAKE_INSTALL_PREFIX=output /Users/fiyawerx/phtpc/
(phtpc is where my git source is)

I have uploaded the full output of the command here - http://pastebin.ca/2402349 [^]

 I currently have the 2.8.11-Darrwin img installed from the cmake.org site files folder. If you use brew I believe you get 2.8.11.1, which has the same error. If I remove that and install the 2.8.10-Darwin pkg it will work and I can post that output if you'd like as well.

Please let me know what else I can do to provide more information.

(0033326)
Brad King   
2013-06-19 09:57   
Thanks for the links and output. The key output is this:

CMake Error at plex/CMakeModules/CMakeFunctions.cmake:165 (cmake_parse_arguments):
  Unknown CMake command "cmake_parse_arguments".
Call Stack (most recent call first):
  lib/libdvd/libdvdnav/CMakeLists.txt:9 (plex_find_headers)

Reading the source it looks like the CMakeFunctions.cmake module defines a macro that calls cmake_parse_arguments, but it does not include(CMakeParseArguments) first. This worked at most by accident with earlier CMake versions. Add the line

 include(CMakeParseArguments)

at the top of plex/CMakeModules/CMakeFunctions.cmake in the project source tree.
(0033329)
fiyawerx   
2013-06-19 10:16   
Brad, that worked. Sorry for this report, and thank you! I will let the developer know what the response was.
(0033330)
Brad King   
2013-06-19 10:18   
Great, thanks for reporting back.
(0034372)
Robert Maynard   
2013-11-04 09:33   
Closing resolved issues that have not been updated in more than 4 months.