@binny
Try this:
Code: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 ..
root@brabbt:/home/binny/Documents/otclient/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 C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Link to static libraries: OFF
-- Build type: Debug
-- Build commit: devel
-- Build revision: 0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.1.so
-- LuaJIT: OFF
-- Found PHYSFS: /usr/local/lib/libphysfs.so
-- Found OPENSSL: /usr/local/ssl/lib/libssl.so.1.0.2;/usr/local/ssl/lib/libcrypto.so.1.0.2
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
-- Debug information: ON
-- Crash handler: ON
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so
-- OpenGL ES: OFF
-- Found OPENAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- Found VORBISFILE: /usr/lib/x86_64-linux-gnu/libvorbisfile.so
-- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.so
-- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so
-- Bot protection: OFF
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
OPENSSL_ROOT_DIR
-- Build files have been written to: /home/binny/Documents/otclient/build
@binny
I read in your build log that it tries to use the openssl header files from /usr/include/openssl, but it should look in /usr/local/ssl/include. So I think you need to copy the header files with this command:
cp -Rf /home/binny/usr/include/openssl /usr/local/ssl/include
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 C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Link to static libraries: OFF
-- Build type: Debug
-- Build commit: devel
-- Build revision: 0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.1.so
-- LuaJIT: OFF
-- Found PHYSFS: /usr/local/lib/libphysfs.so
-- Found OPENSSL: /usr/local/ssl/lib/libssl.so.1.0.2;/usr/local/ssl/lib/libcrypto.so.1.0.2
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
-- Debug information: ON
-- Crash handler: ON
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so
-- OpenGL ES: OFF
-- Found OPENAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- Found VORBISFILE: /usr/lib/x86_64-linux-gnu/libvorbisfile.so
-- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.so
-- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so
-- Bot protection: OFF
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
OPENSSL_ROOT_DIR
-- Build files have been written to: /home/binny/Documents/otclient/build
I'm sorry to this long and thank you to still help us...Header files aren't shown in the cmake generator log, the errors in your last compile log shows that it included the header files from the wrong directory, so it is most likely that it inclucded the wrong version. Have you tried to compile again? If so please post the build log.
That is what you get when you copy some text and accidentally paste it in the terminal, it will interpret each newline as a shell command, that's why you see the command cannot be found. Nothing happened really, just continue with the make command.
It seems the compilation was finished 100% without any fatal errors, so you could try to run the Otclient binary insdide the build directory, don't forget to put the otclient binary in the correct directory and .dat and .spr files of the client version you want to run.
About the warnings, I don't know why but after googeling I think it is something with for loop not properly coded like wrong position of a semicolon. It is a warning not an error so you might be able to safely ignore this, if you experience something out of the ordinary you might fill out a bug report on the bugtracker of otclient on github.
I'm trying to follow the steps but a link looks offline...
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
--2018-01-09 11:11:20-- http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
Resolving ftp.us.debian.org (ftp.us.debian.org)... 128.30.2.26, 208.80.154.15, 128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|128.30.2.26|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-09 11:11:20 ERROR 404: Not Found.
What should i do?
@Senzubean your steps is not working now in new otc, can u help?That is what you get when you copy some text and accidentally paste it in the terminal, it will interpret each newline as a shell command, that's why you see the command cannot be found. Nothing happened really, just continue with the make command.