greenday Posted April 17, 2012 Share Posted April 17, 2012 I downloaded the source but when compiling it with the command "make -C MTA10_Server install", there is an error, can a expert help me in this please? make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/home/ps/mtasa-blue/MTA10_Server/core' make[2]: Leaving directory `/home/ps/mtasa-blue/MTA10_Server/core' make[1]: Leaving directory `/home/ps/mtasa-blue/MTA10_Server/core' Making install in dbconmy make[1]: Entering directory `/home/ps/mtasa-blue/MTA10_Server/dbconmy' make install-am make[2]: Entering directory `/home/ps/mtasa-blue/MTA10_Server/dbconmy' /bin/bash ../../libtool --tag=CXX --tag=disable-static --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I./logic/ -I./../sdk/ -I./../../Shared/sdk/ -I./../../Shared/publicsdk/include/ -I./../../vendor/ehs/ -I./../../vendor/pme/ -I./../../vendor/json-c/ -I./../../vendor/bob_withers/ -I./../../vendor/bochs/ -I/usr/include/mysql -I./../../Shared/animation/ -I./../../vendor/zip// -I./../../vendor/lua/src -I./../../vendor/lua/src -I../../vendor/sparsehash/current/src -I../../vendor/sparsehash/current/src -m32 -Wall -DTIXML_USE_STL -Winvalid-pch -m32 -MT dbconmy_la-StdInc.lo -MD -MP -MF .deps/dbconmy_la-StdInc.Tpo -c -o dbconmy_la-StdInc.lo `test -f 'StdInc.cpp' || echo './'`StdInc.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./logic/ -I./../sdk/ -I./../../Shared/sdk/ -I./../../Shared/publicsdk/include/ -I./../../vendor/ehs/ -I./../../vendor/pme/ -I./../../vendor/json-c/ -I./../../vendor/bob_withers/ -I./../../vendor/bochs/ -I/usr/include/mysql -I./../../Shared/animation/ -I./../../vendor/zip// -I./../../vendor/lua/src -I./../../vendor/lua/src -I../../vendor/sparsehash/current/src -I../../vendor/sparsehash/current/src -m32 -Wall -DTIXML_USE_STL -Winvalid-pch -m32 -MT dbconmy_la-StdInc.lo -MD -MP -MF .deps/dbconmy_la-StdInc.Tpo -c StdInc.cpp -fPIC -DPIC -o .libs/dbconmy_la-StdInc.o In file included from ./../../Shared/sdk/SharedUtil.hpp:18:0, from StdInc.cpp:3: ./../../Shared/sdk/SharedUtil.Misc.hpp: In function 'std::wstring SharedUtil::ANSIToUTF16(const string&)': ./../../Shared/sdk/SharedUtil.Misc.hpp:908:22: warning: converting to non-pointer type 'wchar_t' from NULL [-Wconversion-null] In file included from ./../../Shared/sdk/SharedUtil.hpp:19:0, from StdInc.cpp:3: ./../../Shared/sdk/SharedUtil.File.hpp: In function 'bool SharedUtil::FileExists(const SString&)': ./../../Shared/sdk/SharedUtil.File.hpp:32:36: error: no matching function for call to 'stat::stat(const SString&, stat*)' ./../../Shared/sdk/SharedUtil.File.hpp:32:36: note: candidates are: /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: stat::stat() /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: candidate expects 0 arguments, 2 provided /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: stat::stat(const stat&) /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: candidate expects 1 argument, 2 provided ./../../Shared/sdk/SharedUtil.File.hpp:34:38: error: 'S_ISDIR' was not declared in this scope ./../../Shared/sdk/SharedUtil.File.hpp: In function 'bool SharedUtil::DirectoryExists(const SString&)': ./../../Shared/sdk/SharedUtil.File.hpp:51:32: error: no matching function for call to 'stat::stat(const SString&, stat*)' ./../../Shared/sdk/SharedUtil.File.hpp:51:32: note: candidates are: /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: stat::stat() /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: candidate expects 0 arguments, 2 provided /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: stat::stat(const stat&) /usr/include/i386-linux-gnu/bits/stat.h:39:8: note: candidate expects 1 argument, 2 provided ./../../Shared/sdk/SharedUtil.File.hpp:53:37: error: 'S_ISDIR' was not declared in this scope ./../../Shared/sdk/SharedUtil.File.hpp: In function 'void SharedUtil::MakeSureDirExists(const SString&)': ./../../Shared/sdk/SharedUtil.File.hpp:219:35: error: 'mkdir' was not declared in this scope In file included from ./../../Shared/sdk/SharedUtil.hpp:19:0, from StdInc.cpp:3: ./../../Shared/sdk/SharedUtil.File.hpp: In function 'std::vector SharedUtil::FindFiles(const SString&, bool, bool)': ./../../Shared/sdk/SharedUtil.File.hpp:516:45: error: 'lstat' was not declared in this scope ./../../Shared/sdk/SharedUtil.File.hpp:517:53: error: 'S_ISDIR' was not declared in this scope In file included from ./../../Shared/sdk/SharedUtil.hpp:25:0, from StdInc.cpp:3: ./../../Shared/sdk/SharedUtil.File.hpp: In function 'bool SharedUtil::DirectoryExists(const SString&)': ./../../Shared/sdk/SharedUtil.File.hpp:55:1: warning: control reaches end of non-void function [-Wreturn-type] ./../../Shared/sdk/SharedUtil.File.hpp: In function 'bool SharedUtil::FileExists(const SString&)': ./../../Shared/sdk/SharedUtil.File.hpp:36:1: warning: control reaches end of non-void function [-Wreturn-type] make[2]: *** [dbconmy_la-StdInc.lo] Error 1 make[2]: Leaving directory `/home/ps/mtasa-blue/MTA10_Server/dbconmy' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/ps/mtasa-blue/MTA10_Server/dbconmy' make: *** [install-recursive] Error 1 make: Leaving directory `/home/ps/mtasa-blue/MTA10_Server' ps@ps-web-server:~/mtasa-blue$ greenday New User Posts: 1 Joined: Sun Apr 15, 2012 7:12 pm Link to comment
asturel Posted August 11, 2012 Share Posted August 11, 2012 (02:34:11) (%ccw) Shared/sdk/SharedUtil.File.hpp (02:34:46) (%ccw) Try adding this under line: (02:34:47) (%ccw) #include Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now