EQEmulator Forums

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

Garudan 01-03-2019 02:00 AM

CMAKE NOTFOUND problem
 
when i try to compile the files with cmake, i get a NOFOUND error with the following error log:

Quote:

"E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_353a9.vcxproj " (Standardziel) (1) ->

(ClCompile Ziel) ->

E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\src.cxx(2): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "unistd.h": No such file or directory [E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_353a9.vcxproj]



1 Warnung(en)

1 Fehler



Verstrichene Zeit 00:00:00.76


Source file was:

#include <unistd.h>
int main() {}
Performing C++ SOURCE FILE Test HAVE_STD_GNUPP11_FLAG failed with the following output:
Change Dir: E:/EQEmuServer C++ files/Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_68384.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R)-Buildmodul, Version 15.3.409.57025 fr .NET Framework

Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.



Der Buildvorgang wurde am 03.01.2019 06:51:35 gestartet.

Projekt "E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_68384.vcxproj " auf Knoten "1" (Standardziele).

PrepareForBuild:

Das Verzeichnis "cmTC_68384.dir\Debug\" wird erstellt.

Das Verzeichnis "E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\Debug\" wird erstellt.

Das Verzeichnis "cmTC_68384.dir\Debug\cmTC_68384.tlog\" wird erstellt.

InitializeBuildStatus:

"cmTC_68384.dir\Debug\cmTC_68384.tlog\unsuccessful build" wird erstellt, da "AlwaysCreate" angegeben wurde.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bi n\HostX86\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D HAVE_STD_GNUPP11_FLAG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_68384.dir\Debug\\" /Fd"cmTC_68384.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue -O3 "E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\src.cxx"

Microsoft (R) C/C++-Optimierungscompiler Version 19.11.25508.2 fr x64

Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.



cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D HAVE_STD_GNUPP11_FLAG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_68384.dir\Debug\\" /Fd"cmTC_68384.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue -O3 "E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\src.cxx"

src.cxx



cl : Befehlszeile warning D9002: Unbekannte Option "-O3" wird ignoriert. [E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_68384.vcxproj]

Link:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bi n\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:"E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\Debug\cmTC_68384.e xe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"E:/EQEmuServer C++ files/Build/CMakeFiles/CMakeTmp/Debug/cmTC_68384.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:/EQEmuServer C++ files/Build/CMakeFiles/CMakeTmp/Debug/cmTC_68384.lib" /MACHINE:X64 /machine:x64 cmTC_68384.dir\Debug\src.obj

cmTC_68384.vcxproj -> E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\Debug\cmTC_68384.e xe

cmTC_68384.vcxproj -> E:/EQEmuServer C++ files/Build/CMakeFiles/CMakeTmp/Debug/cmTC_68384.pdb (Full PDB)

FinalizeBuildStatus:

Die Datei "cmTC_68384.dir\Debug\cmTC_68384.tlog\unsuccessful build" wird gel”scht.

Aktualisieren des Timestamps von "cmTC_68384.dir\Debug\cmTC_68384.tlog\cmTC_68384.l astbuildstate".

Die Erstellung von Projekt "E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_68384.vcxproj " ist abgeschlossen (Standardziele).



Der Buildvorgang wurde erfolgreich ausgefhrt.



"E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_68384.vcxproj " (Standardziel) (1) ->

(ClCompile Ziel) ->

cl : Befehlszeile warning D9002: Unbekannte Option "-O3" wird ignoriert. [E:\EQEmuServer C++ files\Build\CMakeFiles\CMakeTmp\cmTC_68384.vcxproj]



1 Warnung(en)

0 Fehler



Verstrichene Zeit 00:00:01.08


Source file was:
int main() { return 0; }

Garudan 01-03-2019 05:34 AM

well after carefully reading it again i am apparently missing the unistd.h dependency.
Any help (or link) where i might find this?

Thalix 01-03-2019 01:13 PM

unistd.h is a file for unix/linux, not for windows.

Garudan 01-03-2019 02:44 PM

i pulled the master branch from https://github.com/EQEmu/Server
and trying to build it with cmake.

Should i use a different source code?

Garudan 01-04-2019 03:32 PM

so i solved the problem:

i followed this guide:
https://github.com/EQEmu/Server/wiki...indows-Install

which - at least for my system - shows problems with the dependencies.
using these dependencies:
https://eqemu.github.io/
works like a charm!


All times are GMT -4. The time now is 06:16 PM.

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