[CMake] Unknown CMake command: "_Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS".

2018-11-10 Thread Heng Zhou
Environment:
- Windows 10
- CMake 3.12.4
- Boost 1.68.0 installed from pre-compiled binary
"boost_1_68_0-msvc-14.0-64.exe" downloaded from
https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_projects_boost_files_boost-2Dbinaries_1.68.0_&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=P9ZPbJehUz3WrP9d5HF3ig&m=y_dArCwaPPPEMXAhzXGHIXtIHnvmBjSk-KKWHHowVh0&s=A4TV6vHIws_vrs4gnW-pc70Z_nLlRHyBUL8uBmTkXWg&e=.

Problem:
When calling find_package(Boost COMPONENTS ...), FindBoost.cmake reports
error:
CMake Error at C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1535
(_Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS):
  Unknown CMake command
  "_Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS".
Call Stack (most recent call first):
-- omitted --

So does the problem occur only when CMake is working with Boost 1.68.0
pre-compiled
binary? How to fix it? Should I downgrade Boost or upgrade CMake? Please
let me know if you need other information for troubleshooting. Thanks.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] unknown cmake command

2018-09-09 Thread Eric Noulard
Le dim. 9 sept. 2018 à 06:52, Robert Finch  a écrit :

> Hi, cmake is new to me. I’m attempting to use cmake to build a backend for
> LLVM. CMake fails with an ‘unknown cmake command’ error. It doesn’t seem to
> be able to find or execute modules or macros. I tried setting the
> CMAKE_MODULE_PATH, LLVM_CMAKE_DIR, LLVM_DIR, and LLVM_TABLEGEN variables. I
> wonder if this would be a problem spawning executables ? Security ? Nothing
> is written to the log file. tablegen is in the path and can be run
> manually, but cmake fails to run it. Cmake successfully built and installed
> LLVM.  The file cmake fails with is Cmakelists.txt. The OS is Windows 10
> pro build 1803.
>

If the project is public is would be easier to help you if you point out
the repo of the project.
You should at least provide the full CMake error message your are getting
along with CMake version and CMake generator you use (VIsual Studio,
etc...)

I do build LLVM/clang and some tooling which are not bundled with it like
IWYU (https://include-what-you-use.org/) it appears that LLVM has specific
CMake macros that ought to be used in the right way. e.g. for IWYU
something different is done if it's built in-source (along with LLVM+clang
source tree) or out-of-source.You may have a look at:
https://github.com/include-what-you-use/include-what-you-use/blob/master/CMakeLists.txt
to see what they do for that.

However from (https://llvm.org/docs/WritingAnLLVMBackend.html#preliminaries)
I bet that building a backend is very different from building a clang-based
extra tool.
Did you get in touch on some LLVM mailing list about that?

I bet your issue may be more related on "how to use LLVM cmake build
system" than  a generic CMake issue.

-- 
Eric
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[CMake] unknown cmake command

2018-09-08 Thread Robert Finch
Hi, cmake is new to me. I’m attempting to use cmake to build a backend for
LLVM. CMake fails with an ‘unknown cmake command’ error. It doesn’t seem to
be able to find or execute modules or macros. I tried setting the
CMAKE_MODULE_PATH, LLVM_CMAKE_DIR, LLVM_DIR, and LLVM_TABLEGEN variables. I
wonder if this would be a problem spawning executables ? Security ? Nothing
is written to the log file. tablegen is in the path and can be run
manually, but cmake fails to run it. Cmake successfully built and installed
LLVM.  The file cmake fails with is Cmakelists.txt. The OS is Windows 10
pro build 1803.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Unknown CMake command "macro_ensure_version"

2016-05-01 Thread Nicholas Braden
I found several different versions of basically the same code in many
projects, but it looks like openbabel is what you are trying to
compile:
https://github.com/baoilleach/openbabel-svn-mirror/blob/master/cmake/modules/MacroEnsureVersion.cmake
Do you have this file in /cmake/modules/ ?

It looks like that directory is being properly added to CMAKE_MODULE_PATH here:
https://github.com/baoilleach/openbabel-svn-mirror/blob/master/CMakeLists.txt#L6-L7
Can you verify that you have those lines in the CMakeLists.txt you
have downloaded?

On Sun, May 1, 2016 at 4:30 AM, Douglas Houston
 wrote:
> Hi,
>
> I am trying to use Cmake to compile a program on Scientific Linux release
> 6.7, and I get the following error with both the precompiled binary and my
> own compiled version of Cmake:
>
>
>
> [root@drhwks]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
> CMake Error at CMakeLists.txt:20 (include):
>   include could not find load file:
>
> MacroEnsureVersion
>
>
> -- Using included inchi library.
> -- Could NOT find wxWidgets (missing:  wxWidgets_LIBRARIES
> wxWidgets_INCLUDE_DI
> RS)
> CMake Error at CMakeLists.txt:231 (macro_ensure_version):
>   Unknown CMake command "macro_ensure_version".
>
>
> -- Configuring incomplete, errors occurred!
> See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
> See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".
> [root@drhwks build]# ls -lht | head
> total 24K
> -rw-r--r--. 1 root root  17K May  1 10:13 CMakeCache.txt
> drwxr-xr-x. 5 root root 4.0K Apr 30 09:09 CMakeFiles
> [root@drhwks build]# rm CMake
> CMakeCache.txt  CMakeFiles/
> [root@drhwks build]# rm -rf CMake*
> [root@drhwks build]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
> -- The C compiler identification is GNU 4.4.7
> -- The CXX compiler identification is GNU 4.4.7
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> CMake Error at CMakeLists.txt:20 (include):
>   include could not find load file:
>
> MacroEnsureVersion
>
>
> -- Using included inchi library.
> -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
> -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
> -- Could NOT find wxWidgets (missing:  wxWidgets_LIBRARIES
> wxWidgets_INCLUDE_DI
> RS)
> -- Looking for conio.h
> -- Looking for conio.h - not found
> -- Looking for sys/time.h
> -- Looking for sys/time.h - found
> -- Looking for time.h
> -- Looking for time.h - found
> -- Looking for strings.h
> -- Looking for strings.h - found
> -- Looking for rpc/xdr.h
> -- Looking for rpc/xdr.h - found
> -- Looking for regex.h
> -- Looking for regex.h - found
> -- Looking for C++ include sstream
> -- Looking for C++ include sstream - found
> -- Looking for rint
> -- Looking for rint - not found
> -- Looking for snprintf
> -- Looking for snprintf - found
> -- Looking for sranddev
> -- Looking for sranddev - not found
> -- Looking for strcasecmp
> -- Looking for strcasecmp - found
> -- Looking for strncasecmp
> -- Looking for strncasecmp - found
> -- Looking for dlopen in dl
> -- Looking for dlopen in dl - found
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of clock_t
> -- Check size of clock_t - done
> CMake Error at CMakeLists.txt:231 (macro_ensure_version):
>   Unknown CMake command "macro_ensure_version".
>
>
> -- Configuring incomplete, errors occurred!
> See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
> See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".
>
>
>
> Can anyone please help?
>
> Regards,
> Douglas Houston
>
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-

[CMake] Unknown CMake command "macro_ensure_version"

2016-05-01 Thread Douglas Houston

Hi,

I am trying to use Cmake to compile a program on Scientific Linux  
release 6.7, and I get the following error with both the precompiled  
binary and my own compiled version of Cmake:




[root@drhwks]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
CMake Error at CMakeLists.txt:20 (include):
  include could not find load file:

MacroEnsureVersion


-- Using included inchi library.
-- Could NOT find wxWidgets (missing:  wxWidgets_LIBRARIES  
wxWidgets_INCLUDE_DI

RS)
CMake Error at CMakeLists.txt:231 (macro_ensure_version):
  Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".
[root@drhwks build]# ls -lht | head
total 24K
-rw-r--r--. 1 root root  17K May  1 10:13 CMakeCache.txt
drwxr-xr-x. 5 root root 4.0K Apr 30 09:09 CMakeFiles
[root@drhwks build]# rm CMake
CMakeCache.txt  CMakeFiles/
[root@drhwks build]# rm -rf CMake*
[root@drhwks build]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:20 (include):
  include could not find load file:

MacroEnsureVersion


-- Using included inchi library.
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Could NOT find wxWidgets (missing:  wxWidgets_LIBRARIES  
wxWidgets_INCLUDE_DI

RS)
-- Looking for conio.h
-- Looking for conio.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - found
-- Looking for regex.h
-- Looking for regex.h - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for rint
-- Looking for rint - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for sranddev
-- Looking for sranddev - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of clock_t
-- Check size of clock_t - done
CMake Error at CMakeLists.txt:231 (macro_ensure_version):
  Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".



Can anyone please help?

Regards,
Douglas Houston



--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] unknown cmake command "configure_boost"

2012-09-05 Thread Benjamin Eikel
Am Mittwoch, 5. September 2012 um 12:55:50 schrieb geek121:
> ^^ error is unknown cmake command "configure_boost"

Why do you think "configure_boost" is a valid CMake command? I was not able to 
find it in the documentation.

> 
> 
> 
> --
> View this message in context:
> http://cmake.3232098.n2.nabble.com/unknown-cmake-command-configure-boost-t
> p7581513p7581514.html Sent from the CMake mailing list archive at
> Nabble.com.
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] unknown cmake command "configure_boost"

2012-09-05 Thread geek121
^^ error is unknown cmake command "configure_boost"



--
View this message in context: 
http://cmake.3232098.n2.nabble.com/unknown-cmake-command-configure-boost-tp7581513p7581514.html
Sent from the CMake mailing list archive at Nabble.com.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] unknown cmake command "configure_boost"

2012-09-05 Thread geek121
I get this error in a cmake list ...



--
View this message in context: 
http://cmake.3232098.n2.nabble.com/unknown-cmake-command-configure-boost-tp7581513.html
Sent from the CMake mailing list archive at Nabble.com.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Unknown CMake command "VTK_WRAP_PYTHON"

2012-02-23 Thread Bill Hoffman

On 2/23/2012 10:46 AM, elhadj meljane wrote:

Hi all
I am trying to  cmake a CMakeLIsts.txt and I am getting the following error
CMake Error at CMakeLists.txt:50 (VTK_WRAP_PYTHON):
Unknown CMake command "VTK_WRAP_PYTHON"

here is the line that the cmake does not like in the  CMakeLists file

VTK_WRAP_PYTHON(cpptrackingPython PYTHON_SOURCES ${WRAP_LIST})

I do have vtk-5.2 and python Python 2.6.5 installed on my machine. I
tried VTK_WRAP_PYTHON2 and VTK_WRAP_PYTHON3 and I got the same error.



the code that I m having trouble with, worked three years ago without
any problem (I didn't develop this code I am just using it ...) now that
I changed the machine, I am getting this error.

Thanks for your help!


This is really a question for the VTK mailing list.

-Bill

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Unknown CMake command "VTK_WRAP_PYTHON"

2012-02-23 Thread elhadj meljane
Hi all
I am trying to  cmake a CMakeLIsts.txt and I am getting the following error
CMake Error at CMakeLists.txt:50 (VTK_WRAP_PYTHON):
Unknown CMake command "VTK_WRAP_PYTHON"

here is the line that the cmake does not like in the  CMakeLists file

VTK_WRAP_PYTHON(cpptrackingPython PYTHON_SOURCES ${WRAP_LIST})

I do have vtk-5.2 and python Python 2.6.5 installed on my machine. I tried
VTK_WRAP_PYTHON2 and VTK_WRAP_PYTHON3 and I got the same error.



the code that I m having trouble with, worked three years ago without any
problem (I didn't develop this code I am just using it ...) now that I
changed the machine, I am getting this error.

Thanks for your help!
Aj
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

2010-06-20 Thread Marcus Liebhardt
I got the source code via SVN from:

https://playerstage.svn.sourceforge.net/svnroot/playerstage/code/player/trunk

For an 'How-To' check:
http://playerstage.sourceforge.net/wiki/Basic_FAQ#How_do_I_get_the_latest_code.3F


:-) Marcus


2010/6/18 David Cole 

> On Fri, Jun 18, 2010 at 3:19 AM, Marcus Liebhardt wrote:
>
>> > On Thursday 25 March 2010, Franklin Dorbon wrote:
>> > >* Hello,
>> *> >* I get the below error when running CMAKE, the GUI version 2.8 on 
>> windows:
>> *> >*
>> *> >* CMake Error at cmake/internal/SearchForStuff.cmake:78
>>
>> *> >* (CHECK_STRUCT_HAS_MEMBER): Unknown CMake command 
>> "CHECK_STRUCT_HAS_MEMBER".
>> *> >* Call Stack (most recent call first):
>> *> >* CMakeLists.txt:49 (INCLUDE)
>> *> >*
>>
>> *> >* I don't understand why this command cannot be found, it seems that I
>> *> >* have used CMAKE before and not had to do anything special to use this.
>> *> >* Is this just error with my CMakeLists.txt?
>>
>> *>
>> > Do you have a
>> > include(CheckStructHasMember)
>> > somewhere ? This is necessary, this file defines the macro.
>> >
>> > Alex
>>
>> I struggle with the same problem.
>>
>>
>> When I'm trying to configure the source files from Player 3.1.0 on Windows 
>> Vista SP2 with CMake 2.8.1, I'm getting the same error as above.
>> I'm not familiar with the whole 'make thing', but I searched for 
>> 'include(CheckStructHasMember)' and I found 'INCLUDE (CheckStructHasMember) 
>> CHECK_STRUCT_HAS_MEMBER ("struct timespec" tv_sec time.h 
>> HAVE_STRUCT_TIMESPEC) ELSE (CMAKE_MAJOR_VERSION EQUAL 2 AND 
>> CMAKE_MINOR_VERSION EQUAL 6)' in the file 
>> cmake/internal/SearchForStuff.cmake.
>>
>>
>> I don't know, if this is any help.
>>
>> Does anybody have a suggestion how to proceed?
>>
>>
> Where can I get the source code for Player 3.1.0...? Sounds like there must
> be something that doesn't quite work on Windows in the source tree there...
>
>
> thanks,
> David
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

2010-06-18 Thread David Cole
On Fri, Jun 18, 2010 at 3:19 AM, Marcus Liebhardt  wrote:

> > On Thursday 25 March 2010, Franklin Dorbon wrote:
> > >* Hello,
> *> >* I get the below error when running CMAKE, the GUI version 2.8 on 
> windows:
> *> >*
> *> >* CMake Error at cmake/internal/SearchForStuff.cmake:78
> *> >* (CHECK_STRUCT_HAS_MEMBER): Unknown CMake command 
> "CHECK_STRUCT_HAS_MEMBER".
> *> >* Call Stack (most recent call first):
> *> >* CMakeLists.txt:49 (INCLUDE)
> *> >*
> *> >* I don't understand why this command cannot be found, it seems that I
> *> >* have used CMAKE before and not had to do anything special to use this.
> *> >* Is this just error with my CMakeLists.txt?
> *>
> > Do you have a
> > include(CheckStructHasMember)
> > somewhere ? This is necessary, this file defines the macro.
> >
> > Alex
>
> I struggle with the same problem.
>
> When I'm trying to configure the source files from Player 3.1.0 on Windows 
> Vista SP2 with CMake 2.8.1, I'm getting the same error as above.
> I'm not familiar with the whole 'make thing', but I searched for 
> 'include(CheckStructHasMember)' and I found 'INCLUDE (CheckStructHasMember) 
> CHECK_STRUCT_HAS_MEMBER ("struct timespec" tv_sec time.h 
> HAVE_STRUCT_TIMESPEC) ELSE (CMAKE_MAJOR_VERSION EQUAL 2 AND 
> CMAKE_MINOR_VERSION EQUAL 6)' in the file cmake/internal/SearchForStuff.cmake.
>
> I don't know, if this is any help.
>
> Does anybody have a suggestion how to proceed?
>
>
Where can I get the source code for Player 3.1.0...? Sounds like there must
be something that doesn't quite work on Windows in the source tree there...


thanks,
David
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

2010-06-18 Thread Marcus Liebhardt
> On Thursday 25 March 2010, Franklin Dorbon wrote:
> >* Hello,
*> >* I get the below error when running CMAKE, the GUI version 2.8 on windows:
*> >*
*> >* CMake Error at cmake/internal/SearchForStuff.cmake:78
*> >* (CHECK_STRUCT_HAS_MEMBER): Unknown CMake command
"CHECK_STRUCT_HAS_MEMBER".
*> >* Call Stack (most recent call first):
*> >* CMakeLists.txt:49 (INCLUDE)
*> >*
*> >* I don't understand why this command cannot be found, it seems that I
*> >* have used CMAKE before and not had to do anything special to use this.
*> >* Is this just error with my CMakeLists.txt?
*>
> Do you have a
> include(CheckStructHasMember)
> somewhere ? This is necessary, this file defines the macro.
>
> Alex

I struggle with the same problem.
When I'm trying to configure the source files from Player 3.1.0 on
Windows Vista SP2 with CMake 2.8.1, I'm getting the same error as
above.
I'm not familiar with the whole 'make thing', but I searched for
'include(CheckStructHasMember)' and I found 'INCLUDE
(CheckStructHasMember) CHECK_STRUCT_HAS_MEMBER ("struct timespec"
tv_sec time.h HAVE_STRUCT_TIMESPEC) ELSE (CMAKE_MAJOR_VERSION EQUAL 2
AND CMAKE_MINOR_VERSION EQUAL 6)' in the file
cmake/internal/SearchForStuff.cmake.
I don't know, if this is any help.

Does anybody have a suggestion how to proceed?


Marcus Liebhardt
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

2010-03-25 Thread Alexander Neundorf
On Thursday 25 March 2010, Franklin Dorbon wrote:
> Hello,
> I get the below error when running CMAKE, the GUI version 2.8 on windows:
>
> CMake Error at cmake/internal/SearchForStuff.cmake:78
> (CHECK_STRUCT_HAS_MEMBER): Unknown CMake command "CHECK_STRUCT_HAS_MEMBER".
> Call Stack (most recent call first):
> CMakeLists.txt:49 (INCLUDE)
>
> I don't understand why this command cannot be found, it seems that I
> have used CMAKE before and not had to do anything special to use this.
> Is this just error with my CMakeLists.txt?

Do you have a 
include(CheckStructHasMember)
somewhere ? This is necessary, this file defines the macro.

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

2010-03-25 Thread Franklin Dorbon
Hello,
I get the below error when running CMAKE, the GUI version 2.8 on windows:

CMake Error at cmake/internal/SearchForStuff.cmake:78 (CHECK_STRUCT_HAS_MEMBER):
Unknown CMake command "CHECK_STRUCT_HAS_MEMBER".
Call Stack (most recent call first):
CMakeLists.txt:49 (INCLUDE)

I don't understand why this command cannot be found, it seems that I
have used CMAKE before and not had to do anything special to use this.
Is this just error with my CMakeLists.txt?

Thanks,
Franklin Dorbon
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Unknown CMake command "UNSET".

2010-01-04 Thread Aaron_Wright
I didn't mean to imply that CMake itself was a pain to build or use on 
linux. I work in a pretty controlled environment that needs to be 
reproducible. I use debootstrap to create this environment, thus, 
everything is a nice little deb package. The destro is hardy, which is a 
little old, and so the latest backport was version 2.6.2. To get a new 
version of CMake I'd have to do the backport myself, which isn't too hard. 
I'd have to create the deb package and stuff it in my repo. All steps I 
was hoping to avoid.

It might be worth using 2.8, so I could go through the effort.

Thanks for providing a work-around.
-
Aaron Wright



Alexander Neundorf  
Sent by: cmake-boun...@cmake.org
01/04/2010 10:45 AM
Please respond to
a.neundorf-w...@gmx.net


To
cmake@cmake.org
cc
aaron_wri...@selinc.com
Subject
Re: [CMake] Unknown CMake command "UNSET".






On Monday 04 January 2010, aaron_wri...@selinc.com wrote:
> I'm not trying to do anything too fancy, just trying to call:
>
> UNSET( CACHE)
>
> It works with MSVC, but in linux I get:
>
> Unknown CMake command "UNSET".
>
> Am I missing something? Linux is version 2.6.2, and MSVC is 2.6.4. I'm

http://www.cmake.org/Wiki/CMake_Released_Versions

unset() exists since 2.6.3:
http://www.cmake.org/Wiki/CMake_2.6.3_Docs
http://www.cmake.org/Wiki/CMake_2.6.2_Docs

In many cases a 
set(FOO NOTFOUND CACHE STRING "docs..." FORCE)
(or FALSE or "" instead of NOTFOUND) is also good enough.

> asking first because I don't want to update the linux version, as that 
is
> difficult.

You can just download the binary packages for Linux available here:
http://www.cmake.org/cmake/resources/software.html
(http://www.cmake.org/files/v2.8/cmake-2.8.0-Linux-i386.tar.gz), and 
unpack it 
somewhere on your machine (e.g. in /opt/) and then call this cmake 
executable 
directly.

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Unknown CMake command "UNSET".

2010-01-04 Thread Alexander Neundorf
On Monday 04 January 2010, aaron_wri...@selinc.com wrote:
> I'm not trying to do anything too fancy, just trying to call:
>
> UNSET( CACHE)
>
> It works with MSVC, but in linux I get:
>
> Unknown CMake command "UNSET".
>
> Am I missing something? Linux is version 2.6.2, and MSVC is 2.6.4. I'm

http://www.cmake.org/Wiki/CMake_Released_Versions

unset() exists since 2.6.3:
http://www.cmake.org/Wiki/CMake_2.6.3_Docs
http://www.cmake.org/Wiki/CMake_2.6.2_Docs

In many cases a 
set(FOO NOTFOUND CACHE STRING "docs..." FORCE)
(or FALSE or "" instead of NOTFOUND) is also good enough.

> asking first because I don't want to update the linux version, as that is
> difficult.

You can just download the binary packages for Linux available here:
http://www.cmake.org/cmake/resources/software.html
(http://www.cmake.org/files/v2.8/cmake-2.8.0-Linux-i386.tar.gz), and unpack it 
somewhere on your machine (e.g. in /opt/) and then call this cmake executable 
directly.

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Unknown CMake command "UNSET".

2010-01-04 Thread Aaron_Wright
I'm not trying to do anything too fancy, just trying to call:

UNSET( CACHE)

It works with MSVC, but in linux I get:

Unknown CMake command "UNSET".

Am I missing something? Linux is version 2.6.2, and MSVC is 2.6.4. I'm 
asking first because I don't want to update the linux version, as that is 
difficult.
-
Aaron Wright___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Unknown CMake command "kde4_automoc" problem

2008-08-04 Thread Alexander Neundorf
On Sunday 03 August 2008, [EMAIL PROTECTED] wrote:
> hi, there
> I am trying to compile a kde4 development tutorial c++ program with
> cmake but got the

that's the tutorial in the cmake wiki, right ?
This is unfortunately out of date, I'll fix it next week at akademy.
kde4_automoc() doesn't exist anymore, it's not required anymore.

Alex
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Unknown CMake command "kde4_automoc" problem

2008-08-03 Thread kdsfinger
hi, there
I am trying to compile a kde4 development tutorial c++ program with
cmake but got the
Unknown CMake command "kde4_automoc" error message.
Here is the CMakeLists.txt

PROJECT( kapp4)
FIND_PACKAGE(KDE4 REQUIRED)
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ${KDE4_INCLUDE_DIR}
${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
 )

set(kapp4_SRCS
   kapp4.cpp
   main.cpp
   kapp4view.cpp
   settings.cpp
 )

kde4_automoc(${kapp4_SRCS}) # trouble here

kde4_add_ui_files(kapp4_SRCS kapp4view_base.ui prefs_base.ui)

kde4_add_kcfg_files(khangman_SRCS settings.kcfgc )

kde4_add_executable(kapp4 ${kapp4_SRCS})

target_link_libraries(kapp4  ${KDE4_KDEUI_LIBS} kdeeducore )

install(TARGETS kapp4  DESTINATION ${BIN_INSTALL_DIR} )


### install files ###

install( FILES kapp4.desktop  DESTINATION  ${XDG_APPS_DIR} )
install( FILES kapp4.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
install( FILES kapp4ui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kapp4 )

Here is what I got:
cmake .
-- Found Qt-Version 4.3.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
-- Found KDE 4.0 include dir: /usr/lib/kde4/include
-- Found KDE 4 library dir: /usr/lib/kde4/lib
-- Found KDE4 kconfig_compiler preprocessor: /usr/lib/kde4/bin/kconfig_compiler
-- Found KDE4 automoc: /usr/lib/kde4/bin/kde4automoc
CMake Error: Error in cmake code at
/home/quad/drive2/cpp/cppstudy/kapp4/CMakeLists.txt:13:
Unknown CMake command "kde4_automoc".
-- Configuring done

Here is what I got in ccmake .
 CMAKE_BACKWARDS_COMPATIBILITY2.4
 CMAKE_BUILD_TYPE
 CMAKE_INSTALL_PREFIX /usr/local
 EXECUTABLE_OUTPUT_PATH
 KDE4_AUTOMOC_EXECUTABLE  /usr/lib/kde4/bin/kde4automoc
 KDE4_BUILD_TESTS OFF
 KDE4_DATA_DIR/usr/lib/kde4/share/kde4/apps
 KDE4_ENABLE_FINALOFF
 KDE4_ENABLE_FPIE OFF
 KDE4_ENABLE_HTMLHANDBOOK OFF
 KDE4_INCLUDE_DIR /usr/lib/kde4/include
 KDE4_KAUDIODEVICELIST_LIBRARY/usr/lib/kde4/lib/libkaudiodevicelist.so
 KDE4_KCFGC_EXECUTABLE/usr/lib/kde4/bin/kconfig_compiler
 KDE4_KDE3SUPPORT_LIBRARY /usr/lib/kde4/lib/libkde3support.so
 KDE4_KDECONFIG_EXECUTABLE/usr/lib/kde4/bin/kde4-config
 KDE4_KDECORE_LIBRARY /usr/lib/kde4/lib/libkdecore.so
 KDE4_KDEFAKES_LIBRARY/usr/lib/kde4/lib/libkdefakes.so
 KDE4_KDESU_LIBRARY   /usr/lib/kde4/lib/libkdesu.so
 KDE4_KDEUI_LIBRARY   /usr/lib/kde4/lib/libkdeui.so
 KDE4_KDNSSD_LIBRARY  /usr/lib/kde4/lib/libkdnssd.so
 KDE4_KFILE_LIBRARY   /usr/lib/kde4/lib/libkfile.so
 KDE4_KHTML_LIBRARY   /usr/lib/kde4/lib/libkhtml.so
 KDE4_KIO_LIBRARY /usr/lib/kde4/lib/libkio.so
 KDE4_KJS_LIBRARY /usr/lib/kde4/lib/libkjs.so
 KDE4_KNEWSTUFF2_LIBRARY  /usr/lib/kde4/lib/libknewstuff2.so
 KDE4_KNOTIFYCONFIG_LIBRARY   /usr/lib/kde4/lib/libknotifyconfig.so
 KDE4_KPARTS_LIBRARY  /usr/lib/kde4/lib/libkparts.so
 KDE4_KPTY_LIBRARY/usr/lib/kde4/lib/libkpty.so
 KDE4_KROSSCORE_LIBRARY   /usr/lib/kde4/lib/libkrosscore.so
 KDE4_KROSSUI_LIBRARY /usr/lib/kde4/lib/libkrossui.so
 KDE4_KTEXTEDITOR_LIBRARY /usr/lib/kde4/lib/libktexteditor.so
 KDE4_KUTILS_LIBRARY  /usr/lib/kde4/lib/libkutils.so
 KDE4_MAKEKDEWIDGETS_EXECUTABLE   /usr/lib/kde4/bin/makekdewidgets
 KDE4_MEINPROC_EXECUTABLE /usr/lib/kde4/bin/meinproc4
 KDE4_PHONON_LIBRARY  /usr/lib/kde4/lib/libphonon.so
 KDE4_SOLID_LIBRARY   /usr/lib/kde4/lib/libsolid.so
 KDE4_THREADWEAVER_LIBRARY/usr/lib/kde4/lib/libthreadweaver.so
 KDE4_USE_ALWAYS_FULL_RPATH   OFF
 LIBRARY_OUTPUT_PATH
 LIB_SUFFIX
 QT_QMAKE_EXECUTABLE  /usr/bin/qmake-qt4

I am using cmake 2.4 patch 7, ubuntu 8.04, thanks for help. Have a good weekend.

zl2k
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Unknown cmake command ADD_Java_LIBRARY

2007-10-02 Thread Rakesh Kukkamalla
Hi all,

 

 I am using cmake version 2.4.7 and I get "uknown cmake command
ADD_Java_LIBRARY". I am trying a use cmake to compile a simple hello world
java file. Is there anything I need to do here? I used PROJECT(HelloWorld
Java) for the java project but its still not working.

 

I am not sure if I could post such questions in this mailing list.

Any help would be appreciated.

 

Thank you very much.

Rakesh

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake