• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[LINUX] Compiling error PHYSFS

Monte

Member
Joined
Oct 2, 2011
Messages
151
Reaction score
9
Hello, I am trying to install the client using the compiling guide provided.
I have installed all required packages and also checked premissions etcetc.
However I cannot solve this issue?
I am running Linux Mint btw
Code:
[  1%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/filestream.cpp.o
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::cache()’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:71:12: error: ‘PHYSFS_readBytes’ was not declared in this scope
         if(PHYSFS_readBytes(m_fileHandle, m_data.data(), size) == -1)
            ^~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:71:12: note: suggested alternative: ‘PHYSFS_readUBE64’
         if(PHYSFS_readBytes(m_fileHandle, m_data.data(), size) == -1)
            ^~~~~~~~~~~~~~~~
            PHYSFS_readUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::flush()’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:100:16: error: ‘PHYSFS_writeBytes’ was not declared in this scope
             if(PHYSFS_writeBytes(m_fileHandle, m_data.data(), len) != len)
                ^~~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:100:16: note: suggested alternative: ‘PHYSFS_writeUBE64’
             if(PHYSFS_writeBytes(m_fileHandle, m_data.data(), len) != len)
                ^~~~~~~~~~~~~~~~~
                PHYSFS_writeUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘int FileStream::read(void*, uint32, uint32)’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:112:19: error: ‘PHYSFS_readBytes’ was not declared in this scope
         int res = PHYSFS_readBytes(m_fileHandle, buffer, size * nmemb);
                   ^~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:112:19: note: suggested alternative: ‘PHYSFS_readUBE64’
         int res = PHYSFS_readBytes(m_fileHandle, buffer, size * nmemb);
                   ^~~~~~~~~~~~~~~~
                   PHYSFS_readUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::write(const void*, uint32)’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:133:12: error: ‘PHYSFS_writeBytes’ was not declared in this scope
         if(PHYSFS_writeBytes(m_fileHandle, buffer, count) != count)
            ^~~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:133:12: note: suggested alternative: ‘PHYSFS_writeUBE64’
         if(PHYSFS_writeBytes(m_fileHandle, buffer, count) != count)
            ^~~~~~~~~~~~~~~~~
            PHYSFS_writeUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘uint8 FileStream::getU8()’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:187:12: error: ‘PHYSFS_readBytes’ was not declared in this scope
         if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:187:12: note: suggested alternative: ‘PHYSFS_readUBE64’
         if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~
            PHYSFS_readUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘int8 FileStream::get8()’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:250:12: error: ‘PHYSFS_readBytes’ was not declared in this scope
         if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:250:12: note: suggested alternative: ‘PHYSFS_readUBE64’
         if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~
            PHYSFS_readUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘std::__cxx11::string FileStream::getString()’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:316:16: error: ‘PHYSFS_readBytes’ was not declared in this scope
             if(PHYSFS_readBytes(m_fileHandle, buffer, len) == 0)
                ^~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:316:16: note: suggested alternative: ‘PHYSFS_readUBE64’
             if(PHYSFS_readBytes(m_fileHandle, buffer, len) == 0)
                ^~~~~~~~~~~~~~~~
                PHYSFS_readUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::addU8(uint8)’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:357:12: error: ‘PHYSFS_writeBytes’ was not declared in this scope
         if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:357:12: note: suggested alternative: ‘PHYSFS_writeUBE64’
         if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~~
            PHYSFS_writeUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::add8(int8)’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:404:12: error: ‘PHYSFS_writeBytes’ was not declared in this scope
         if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:404:12: note: suggested alternative: ‘PHYSFS_writeUBE64’
         if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
            ^~~~~~~~~~~~~~~~~
            PHYSFS_writeUBE64
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::throwError(const string&, bool)’:
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:458:70: error: ‘PHYSFS_getLastErrorCode’ was not declared in this scope
        completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode());
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:458:70: note: suggested alternative: ‘PHYSFS_getLastError’
        completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode());
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~
                                                                      PHYSFS_getLastError
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:458:48: error: ‘PHYSFS_getErrorByCode’ was not declared in this scope
         completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode());
                                                ^~~~~~~~~~~~~~~~~~~~~
/home/oi/Downloads/otclient/src/framework/core/filestream.cpp:458:48: note: suggested alternative: ‘PHYSFS_getMountPoint’
         completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode());
                                                ^~~~~~~~~~~~~~~~~~~~~
                                                PHYSFS_getMountPoint
CMakeFiles/otclient.dir/build.make:470: recipe for target 'CMakeFiles/otclient.dir/src/framework/core/filestream.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/framework/core/filestream.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
 
I had problem with it too. I had to download 'physfs' from physfs author site, compile and install in system.
Code:
cd 
wget https://github.com/SuperTux/physfs/archive/release-2.0.3.zip
unzip physfs-release-2.0.3.zip
cd physfs-release-2.0.3
make
make install
make and make install commands MAY require root privileges
 
I had problem with it too. I had to download 'physfs' from physfs author site, compile and install in system.
Code:
cd
wget https://github.com/SuperTux/physfs/archive/release-2.0.3.zip
unzip physfs-release-2.0.3.zip
cd physfs-release-2.0.3
make
make install
make and make install commands MAY require root privileges

how to enable "completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode"

i dont know how to enable this commands

message ive got "make: *** No targets specified and no makefile found. Stop."
Post automatically merged:

how to enable "completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode"

i dont know how to enable this commands

message ive got "make: *** No targets specified and no makefile found. Stop."

how to ENABLE "make and make install commands MAY require root privileges "
 
Back
Top