Lua:
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘voi d FileStream::cache()’:
/home/server/otclient/src/framework/core/filestream.cpp:71:62: error: ‘PHYSFS_re adBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, m_data.data(), size) == -1)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘voi d FileStream::flush()’:
/home/server/otclient/src/framework/core/filestream.cpp:100:66: error: ‘PHYSFS_w riteBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, m_data.data(), len) != len)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘int FileStream::read(void*, uint32, uint32)’:
/home/server/otclient/src/framework/core/filestream.cpp:112:70: error: ‘PHYSFS_r eadBytes’ was not declared in this scope
int res = PHYSFS_readBytes(m_fileHandle, buffer, size * nmemb);
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘voi d FileStream::write(const void*, uint32)’:
/home/server/otclient/src/framework/core/filestream.cpp:133:57: error: ‘PHYSFS_w riteBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, buffer, count) != count)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘uin t8 FileStream::getU8()’:
/home/server/otclient/src/framework/core/filestream.cpp:187:48: error: ‘PHYSFS_r eadBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘int 8 FileStream::get8()’:
/home/server/otclient/src/framework/core/filestream.cpp:250:48: error: ‘PHYSFS_r eadBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘std ::string FileStream::getString()’:
/home/server/otclient/src/framework/core/filestream.cpp:316:58: error: ‘PHYSFS_r eadBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, buffer, len) == 0)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘voi d FileStream::addU8(uint8)’:
/home/server/otclient/src/framework/core/filestream.cpp:357:49: error: ‘PHYSFS_w riteBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘voi d FileStream::add8(int8)’:
/home/server/otclient/src/framework/core/filestream.cpp:404:49: error: ‘PHYSFS_w riteBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
^
/home/server/otclient/src/framework/core/filestream.cpp: In member function ‘voi d FileStream::throwError(const string&, bool)’:
/home/server/otclient/src/framework/core/filestream.cpp:458:94: error: ‘PHYSFS_g etLastErrorCode’ was not declared in this scope
completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_get LastErrorCode());
^
/home/server/otclient/src/framework/core/filestream.cpp:458:95: error: ‘PHYSFS_g etErrorByCode’ was not declared in this scope
completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_get LastErrorCode());
^
CMakeFiles/otclient.dir/build.make:445: recipe for target 'CMakeFiles/otclient.d ir/src/framework/core/filestream.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/framework/core/filestream.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
root@vps800535:/home/server/otclient/build#
How to fix it guys?
Post automatically merged:
Lua:
/home/server/otclient/src/framework/core/resourcemanager.cpp: In member function ‘bool ResourceManager::directoryExists(const string&)’:
/home/server/otclient/src/framework/core/resourcemanager.cpp:165:25: warning: missing initializer for member ‘PHYSFS_Stat::filesize’ [-Wmissing-field-initializers]
PHYSFS_Stat stat = {};
^
/home/server/otclient/src/framework/core/resourcemanager.cpp:165:25: warning: missing initializer for member ‘PHYSFS_Stat::modtime’ [-Wmissing-field-initializers]
/home/server/otclient/src/framework/core/resourcemanager.cpp:165:25: warning: missing initializer for member ‘PHYSFS_Stat::createtime’ [-Wmissing-field-initializers]
/home/server/otclient/src/framework/core/resourcemanager.cpp:165:25: warning: missing initializer for member ‘PHYSFS_Stat::accesstime’ [-Wmissing-field-initializers]
/home/server/otclient/src/framework/core/resourcemanager.cpp:165:25: warning: missing initializer for member ‘PHYSFS_Stat::filetype’ [-Wmissing-field-initializers]
/home/server/otclient/src/framework/core/resourcemanager.cpp:165:25: warning: missing initializer for member ‘PHYSFS_Stat::readonly’ [-Wmissing-field-initializers]
/home/server/otclient/src/framework/core/resourcemanager.cpp: In member function ‘std::string ResourceManager::getUserDir()’:
/home/server/otclient/src/framework/core/resourcemanager.cpp:349:12: warning: ‘const char* PHYSFS_getUserDir()’ is deprecated (declared at /usr/local/include/physfs.h:792) [-Wdeprecated-declarations]
return PHYSFS_getUserDir();
^
/home/server/otclient/src/framework/core/resourcemanager.cpp:349:30: warning: ‘const char* PHYSFS_getUserDir()’ is deprecated (declared at /usr/local/include/physfs.h:792) [-Wdeprecated-declarations]
return PHYSFS_getUserDir();
^
Post automatically merged:
now it compiled i type ./otclient
then
terminate called recursively
terminate called recursively
terminate called recursively
Segmentation fault
root@vps800535:/home/server/otclient#
Last edited: