Noupz
New Member
- Joined
- Jul 13, 2010
- Messages
- 126
- Reaction score
- 1
i followed this tutorial Compiling on Windows · edubart/otclient Wiki · GitHub
and i've got this error
Build Log:
Build Messages:
and i've got this error
Build Log:
-------------- Build: all in otclient (compiler: GNU GCC Compiler)---------------
Checking if target is up-to-date: mingw32-make.exe -q -f Makefile all
Running command: C:/MinGW/bin/mingw32-make.exe -f "C:/Users/Henrique/Desktop/otclient/Makefile" VERBOSE=1 all
"C:\Program Files\CMake\bin\cmake.exe" -HC:\otclient-master -BC:\Users\Henrique\Desktop\otclient --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_progress_start C:\Users\Henrique\Desktop\otclient\CMakeFiles C:\Users\Henrique\Desktop\otclient\CMakeFiles\progress.marks
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Users/Henrique/Desktop/otclient'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Users/Henrique/Desktop/otclient'
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\otclient-master C:\otclient-master C:\Users\Henrique\Desktop\otclient C:\Users\Henrique\Desktop\otclient C:\Users\Henrique\Desktop\otclient\CMakeFiles\otclient.dir\DependInfo.cmake --color=
mingw32-make.exe[2]: Leaving directory 'C:/Users/Henrique/Desktop/otclient'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/build
mingw32-make.exe[2]: Entering directory 'C:/Users/Henrique/Desktop/otclient'
[ 1%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj
C:\MinGW\bin\g++.exe -DBOOST_THREAD_USE_LIB -DBOT_PROTECTION -DCLIENT -DCRASH_HANDLER -DFW_GRAPHICS -DFW_NET -DFW_SOUND -DFW_XML -DOPENGL_ES=2 -D_WIN32_WINNT=0x0501 @CMakeFiles/otclient.dir/includes_CXX.rsp -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-result -pipe -mthreads -O1 -g -fno-omit-frame-pointer -D"BUILD_TYPE=\"RelWithDebInfo\"" -D"BUILD_COMMIT=\"devel\"" -D"BUILD_REVISION=\"0\"" -D"VERSION=\"0.6.6\"" -o CMakeFiles\otclient.dir\src\framework\stdext\time.cpp.obj -c C:\otclient-master\src\framework\stdext\time.cpp
C:\otclient-master\src\framework\stdext\time.cpp: In function 'void stdext::millisleep(std::size_t)':
C:\otclient-master\src\framework\stdext\time.cpp:52:21: error: 'usleep' was not declared in this scope
usleep(ms * 1000);
^
C:\otclient-master\src\framework\stdext\time.cpp: In function 'void stdext::microsleep(std::size_t)':
C:\otclient-master\src\framework\stdext\time.cpp:61:14: error: 'usleep' was not declared in this scope
usleep(us);
^
mingw32-make.exe[2]: *** [CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/otclient.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
CMakeFiles\otclient.dir\build.make:241: recipe for target 'CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj' failed
mingw32-make.exe[2]: Leaving directory 'C:/Users/Henrique/Desktop/otclient'
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/otclient.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Henrique/Desktop/otclient'
C:/Users/Henrique/Desktop/otclient/Makefile:126: recipe for target 'all' failed
Process terminated with status 2 (0 minute(s), 30 second(s))
5 error(s), 0 warning(s) (0 minute(s), 30 second(s))
Checking if target is up-to-date: mingw32-make.exe -q -f Makefile all
Running command: C:/MinGW/bin/mingw32-make.exe -f "C:/Users/Henrique/Desktop/otclient/Makefile" VERBOSE=1 all
"C:\Program Files\CMake\bin\cmake.exe" -HC:\otclient-master -BC:\Users\Henrique\Desktop\otclient --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_progress_start C:\Users\Henrique\Desktop\otclient\CMakeFiles C:\Users\Henrique\Desktop\otclient\CMakeFiles\progress.marks
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Users/Henrique/Desktop/otclient'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Users/Henrique/Desktop/otclient'
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\otclient-master C:\otclient-master C:\Users\Henrique\Desktop\otclient C:\Users\Henrique\Desktop\otclient C:\Users\Henrique\Desktop\otclient\CMakeFiles\otclient.dir\DependInfo.cmake --color=
mingw32-make.exe[2]: Leaving directory 'C:/Users/Henrique/Desktop/otclient'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/build
mingw32-make.exe[2]: Entering directory 'C:/Users/Henrique/Desktop/otclient'
[ 1%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj
C:\MinGW\bin\g++.exe -DBOOST_THREAD_USE_LIB -DBOT_PROTECTION -DCLIENT -DCRASH_HANDLER -DFW_GRAPHICS -DFW_NET -DFW_SOUND -DFW_XML -DOPENGL_ES=2 -D_WIN32_WINNT=0x0501 @CMakeFiles/otclient.dir/includes_CXX.rsp -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-result -pipe -mthreads -O1 -g -fno-omit-frame-pointer -D"BUILD_TYPE=\"RelWithDebInfo\"" -D"BUILD_COMMIT=\"devel\"" -D"BUILD_REVISION=\"0\"" -D"VERSION=\"0.6.6\"" -o CMakeFiles\otclient.dir\src\framework\stdext\time.cpp.obj -c C:\otclient-master\src\framework\stdext\time.cpp
C:\otclient-master\src\framework\stdext\time.cpp: In function 'void stdext::millisleep(std::size_t)':
C:\otclient-master\src\framework\stdext\time.cpp:52:21: error: 'usleep' was not declared in this scope
usleep(ms * 1000);
^
C:\otclient-master\src\framework\stdext\time.cpp: In function 'void stdext::microsleep(std::size_t)':
C:\otclient-master\src\framework\stdext\time.cpp:61:14: error: 'usleep' was not declared in this scope
usleep(us);
^
mingw32-make.exe[2]: *** [CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/otclient.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
CMakeFiles\otclient.dir\build.make:241: recipe for target 'CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj' failed
mingw32-make.exe[2]: Leaving directory 'C:/Users/Henrique/Desktop/otclient'
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/otclient.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Henrique/Desktop/otclient'
C:/Users/Henrique/Desktop/otclient/Makefile:126: recipe for target 'all' failed
Process terminated with status 2 (0 minute(s), 30 second(s))
5 error(s), 0 warning(s) (0 minute(s), 30 second(s))
Build Messages:
||=== Build: all in otclient (compiler: GNU GCC Compiler) ===|
C:\otclient-master\src\framework\stdext\time.cpp||In function 'void stdext::millisleep(std::size_t)':|
C:\otclient-master\src\framework\stdext\time.cpp|52|error: 'usleep' was not declared in this scope|
C:\otclient-master\src\framework\stdext\time.cpp||In function 'void stdext::microsleep(std::size_t)':|
C:\otclient-master\src\framework\stdext\time.cpp|61|error: 'usleep' was not declared in this scope|
CMakeFiles\otclient.dir\build.make|241|recipe for target 'CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj' failed|
CMakeFiles\Makefile2|66|recipe for target 'CMakeFiles/otclient.dir/all' failed|
C:\Users\Henrique\Desktop\otclient\Makefile|126|recipe for target 'all' failed|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 30 second(s)) ===|
C:\otclient-master\src\framework\stdext\time.cpp||In function 'void stdext::millisleep(std::size_t)':|
C:\otclient-master\src\framework\stdext\time.cpp|52|error: 'usleep' was not declared in this scope|
C:\otclient-master\src\framework\stdext\time.cpp||In function 'void stdext::microsleep(std::size_t)':|
C:\otclient-master\src\framework\stdext\time.cpp|61|error: 'usleep' was not declared in this scope|
CMakeFiles\otclient.dir\build.make|241|recipe for target 'CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.obj' failed|
CMakeFiles\Makefile2|66|recipe for target 'CMakeFiles/otclient.dir/all' failed|
C:\Users\Henrique\Desktop\otclient\Makefile|126|recipe for target 'all' failed|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 30 second(s)) ===|