Cmake is Failing on the Account of --

[email protected] ("Colin Diesh")
Newsgroups php.gd.devel
Message-ID <[email protected]>
I am trying to compile the libgd using cmake, but it is, unfortunately
failing

===============================================================

C:\msvc 8 bin>cmake -i C:\Bin\Libgdsrc
Would you like to see advanced options? [No]:no
Please wait while cmake processes CMakeLists.txt files....

CMake Error: Cannot find the CPack executable
CMake Error: Internal CMake error, TryCompile generation of cmake failed
CMake Error: The C compiler "C:/Program Files/Microsoft Visual Studio
8/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:


CMake will not be able to correctly generate this project.


Variable Name: CMAKE_BACKWARDS_COMPATIBILITY
Description: For backwards compatibility, what version of CMake commands and
syntax should this version of CMake allow.
Current Value: 2.4
New Value (Enter to keep current value):

Variable Name: CMAKE_INSTALL_PREFIX
Description: Install path prefix, prepended onto install directories.
Current Value: C:/Program Files/GD
New Value (Enter to keep current value):

Variable Name: EXECUTABLE_OUTPUT_PATH
Description: Single output directory for building all executables.
Current Value: C:/
New Value (Enter to keep current value):

Variable Name: LIBRARY_OUTPUT_PATH
Description: Single output directory for building all libraries.
Current Value: C:/
New Value (Enter to keep current value):

Please wait while cmake processes CMakeLists.txt files....



CMake Error: Cannot find the CPack executable

C:\msvc 8 bin>

===============================================================

When I run it from inside the GUI

C:\msvc 8 bin>cmakesetup

Building for visual studio 2005

I get these message box errors

CMake Error: Error in cmake code at
C:/Bin/Libgdsrc/CMakeLists.txt:46:
INCLUDE Could not find include file: AC_HEADER_STDC
Current CMake stack:
[1]    C:/Bin/Libgdsrc/CMakeLists.txt


CMake Error: Error in cmake code at
C:/Bin/Libgdsrc/CMakeLists.txt:47:
INCLUDE Could not find include file: CheckPrototypeExists
Current CMake stack:
[1]    C:/Bin/Libgdsrc/CMakeLists.txt


CMake Error: Could not find PNG library

CMake Error: Error in configuration process, project files may be invalid

===============================================================

I have the compiled zlib, freetype, etc from
http://www.libgd.org/releases/extras/

There seems to be several problems with cmake not finding the standard
library, and not being able to compile simple things. What should I do?

I do need to compile the library myself because I am conflicting with the
VC6 /MT build

Regards,

Colin Diesh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.