EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   CMAKE Error (https://www.eqemulator.org/forums/showthread.php?t=38059)

Hockyplr 04-15-2014 02:18 PM

CMAKE Error
 
I have been following the new guide on how to setup my own server. I am running into an error with cmake, and I am hoping I can receive some help here.

I plan on running this Everquest Server on a brand new install of Windows Server 2012 R2, everything has been updated.

I am running all software packages suggested within the guide, with the exception, I am not using Xampp, so a stand alone MYSQL server.

I receive the following error within Cmake when I attempt to compile:

Build FAILED.

"C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId CXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerIdC XX\CompilerIdCXX.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.47


Here is the error code I receive within the lower pane of Cmake:

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:14 (PROJECT)


The C compiler identification is unknown
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:14 (PROJECT)


The CXX compiler identification is unknown
Looking for include file stdint.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for include file stdint.h - not found
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindZLIB.cmake:85 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:192 (FIND_PACKAGE)


Configuring incomplete, errors occurred!
See also "C:/EQ/Source/Build/CMakeFiles/CMakeOutput.log".
See also "C:/EQ/Source/Build/CMakeFiles/CMakeError.log".


Below I will paste the entire error log from cmake. I thank everyone who looks at this post and helps with a solution.
__________________________________________________ _____________


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 4/15/2014 10:42:50 AM.
Project "C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId C\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCCompilerId.obj
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerIdC \CompilerIdC.vcxproj]
Done Building Project "C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId C\CompilerIdC.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId C\CompilerIdC.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerIdC \CompilerIdC.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.45


Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 4/15/2014 10:42:50 AM.
Project "C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId CXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCXXCompilerId.obj
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerIdC XX\CompilerIdCXX.vcxproj]
Done Building Project "C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId CXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerId CXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\EQ\Source\Build\CMakeFiles\2.8.12.2\CompilerIdC XX\CompilerIdCXX.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.47


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Determining if files stdint.h exist failed with the following output:

Source:
/* */
#include <stdint.h>


int main(){return 0;}

moofta 04-15-2014 04:37 PM

Did you copy the dependencies in? It says zlib is missing. Other that, which flavour of visual studio 2012 was it that you installed? It's not finding the c++ libraries. (I'm no cmake expert though!)

Hockyplr 04-15-2014 05:16 PM

Yes I have the dependencies folder created with the four files residing in said folder. My path is:

C:\EQ\Source\dependencies

With that folder are the following folders:


boost
luaj_x86
mysql_x86
zlib_x86.

I am using Visual Studio Express 2013, and selecting VS 12 within Cmake. The Cmake version I am using is the latest 2.8.12.2, and I even tried an older version of cmake, received same error.

Hockyplr 04-16-2014 01:14 AM

As I have been looking into this, it seems that Cmake is NOT grabbing default locations and thus the compiler is failing. For example, can anyone tell me what location to point to for this:

CMAKE_LINKER

Maze_EQ 04-16-2014 05:47 AM

did joo run as admin

Hockyplr 04-16-2014 10:36 AM

Yes, as I am running actual server software, I am logged in as the administrator when doing all of these functions.

moofta 04-16-2014 11:32 AM

1) try repairing your vs2013 installation, if that doesn't work:-
2) Try installing http://msdn.microsoft.com/en-US/wind.../bg162891.aspx , or repair it if already installed. if that doesn't work:-
3) Open up the VS2013 developer command prompt (not the normal one) and then type

"set lib"

and post the contents here.

Hockyplr 04-16-2014 08:53 PM

Moofta,

First let me thank you for the great guide to follow in learning to set up my own server. second, thank you for the continued support you give to us new people.

After installing the SDK, everything worked within Cmake without any errors. I am on to the next steps........

Hockyplr 04-16-2014 09:39 PM

Ok I am using VS 2013 Express, per the guide, and when it opens the EQEmu.sln file, on the right side it says the file is incompatible with this version of VS.....

Ideas?

joligario 04-16-2014 09:45 PM

With all your previous problems, I recommend deleting the build directory, clearing out the CMAKE cache, and starting the generate process over.

Hockyplr 04-17-2014 12:09 AM

Joligario, thanks for the suggestion. I tried that twice, and still failed. Here is a link to a screen shot of VS 2013 and the incompatible portion:


http://prntscr.com/3aqlxh

Uleat 04-17-2014 12:11 AM

Make sure that you select 'visual studio 12' for your compiler. I believe there are 3 versions listed (x64 and arm are the other two.)

You want the basic compiler, if you're building x86.

Hockyplr 04-17-2014 12:42 AM

Uleat, Yes I did select the basic compiler of VS 12.

Really weird it says the wrong version....

Hockyplr 04-17-2014 12:56 AM

Okay, deleted the Build directory, cleared the cache, even deleted all source files including Dependencies and re-downloaded them all. Screenshot one shows the configure up to LUA.

http://prntscr.com/3aqtmu

Screenshot 2 shows the LUA

http://prntscr.com/3aqu3m

Screenshot 3 shows the generate:

http://prntscr.com/3aqu92


Thanks again everyone. I WILL get this done!

Uleat 04-17-2014 12:56 AM

I spoke to one of the dev's about the 'unknown version' problem and they are aware of it.

It doesn't, however, keep you from generating a solution and opening it in vs 2013.


If you are (still) getting fatal errors, there's definitely something else going on...


EDIT: I just saw your screenshots... go back and redo cmake..this time, click configure twice. There was a red line indicating that a configuration option had not been set.


All times are GMT -4. The time now is 10:59 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.