gmstrikker
Well-Known Member
- Joined
- Jul 30, 2014
- Messages
- 458
- Solutions
- 1
- Reaction score
- 50
Guys i have an very old otclient version (like 3 years ago), so today i tried to download a new one
But when i try to compile i got these errors:
what i done to compile?
this steps i found on forum:
deps
build
the old version from 3 years ago compile by doing those steps, but this new mehah's don't...
why? what should i do?
But when i try to compile i got these errors:
Code:
[ 12%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/filestream.cpp.o
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::cache()’:
/home/usr/otclient/src/framework/core/filestream.cpp:71:62: error: ‘PHYSFS_readBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, m_data.data(), size) == -1)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::flush()’:
/home/usr/otclient/src/framework/core/filestream.cpp:100:66: error: ‘PHYSFS_writeBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, m_data.data(), len) != len)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘int FileStream::read(void*, uint32, uint32)’:
/home/usr/otclient/src/framework/core/filestream.cpp:112:70: error: ‘PHYSFS_readBytes’ was not declared in this scope
int res = PHYSFS_readBytes(m_fileHandle, buffer, size * nmemb);
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::write(const void*, uint32)’:
/home/usr/otclient/src/framework/core/filestream.cpp:133:57: error: ‘PHYSFS_writeBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, buffer, count) != count)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘uint8 FileStream::getU8()’:
/home/usr/otclient/src/framework/core/filestream.cpp:187:48: error: ‘PHYSFS_readBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘int8 FileStream::get8()’:
/home/usr/otclient/src/framework/core/filestream.cpp:250:48: error: ‘PHYSFS_readBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, &v, 1) != 1)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘std::__cxx11::string FileStream::getString()’:
/home/usr/otclient/src/framework/core/filestream.cpp:316:58: error: ‘PHYSFS_readBytes’ was not declared in this scope
if(PHYSFS_readBytes(m_fileHandle, buffer, len) == 0)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::addU8(uint8)’:
/home/usr/otclient/src/framework/core/filestream.cpp:357:49: error: ‘PHYSFS_writeBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::add8(int8)’:
/home/usr/otclient/src/framework/core/filestream.cpp:404:49: error: ‘PHYSFS_writeBytes’ was not declared in this scope
if(PHYSFS_writeBytes(m_fileHandle, &v, 1) != 1)
^
/home/usr/otclient/src/framework/core/filestream.cpp: In member function ‘void FileStream::throwError(const string&, bool)’:
/home/usr/otclient/src/framework/core/filestream.cpp:458:94: error: ‘PHYSFS_getLastErrorCode’ was not declared in this scope
completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode());
^
/home/usr/otclient/src/framework/core/filestream.cpp:458:95: error: ‘PHYSFS_getErrorByCode’ was not declared in this scope
completeMessage += std::string(": ") + PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode());
^
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:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
what i done to compile?
this steps i found on forum:
deps
Code:
apt-get install build-essential cmake git-core liblua5.1-0-dev libvorbis-dev libopenal-dev libphysfs-dev libz3-dev freeglut3-dev libc6-dev-i386 doxygen libncurses5-dev mercurial libboost-all-dev libglew-dev
apt-get install libc++-dev libssl-dev
apt-get install libssl1.0-dev // i think that is who works
wget https://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2
tar -xjf physfs-2.0.3.tar.bz2
cd physfs-2.0.3/ && mkdir build && cd build && cmake .. && make
make install
cp /usr/local/lib/libphysfs.so.2.0.3 /usr/lib/x86_64-linux-gnu/
mkdir -p /usr/local/ssl/lib /usr/local/ssl/include
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
ar -x libssl-dev_1.0.1t-1+deb8u6_amd64.deb
tar xf data.tar.xz
cp usr/lib/x86_64-linux-gnu/libcrypto.so /usr/local/ssl/lib (ERROR)
cp /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0* /usr/local/ssl/lib
build
Code:
git clone https://github.com/mehah/otclient
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so.1.0.2 -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so.1.0.2 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
the old version from 3 years ago compile by doing those steps, but this new mehah's don't...
why? what should i do?