[Debian]Installing library to compile OTClient - failed

Discussion in 'OTClient' started by binny, Aug 21, 2017.

  1. Senzubean

    Senzubean Member

    Joined:
    Aug 24, 2017
    Messages:
    23
    Likes Received:
    36
    Best Answers:
    0
    @binny

    Try this:
    Code (Text):
    1. 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 ..
     
    Last edited: Oct 4, 2017
    binny and supergt like this.
  2. supergt

    supergt Member

    Joined:
    May 11, 2017
    Messages:
    41
    Likes Received:
    11
    Best Answers:
    0
    Just asking, because if the @Senzubean way not work, i'll use too
     
    e.e likes this.
  3. binny

    binny Member

    Joined:
    Mar 16, 2017
    Messages:
    51
    Likes Received:
    9
    Best Answers:
    0
    Code (Text):
    1.  
    2. [email protected]:/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 ..
    3. -- The C compiler identification is GNU 6.3.0
    4. -- The CXX compiler identification is GNU 6.3.0
    5. -- Check for working C compiler: /usr/bin/cc
    6. -- Check for working C compiler: /usr/bin/cc -- works
    7. -- Detecting C compiler ABI info
    8. -- Detecting C compiler ABI info - done
    9. -- Detecting C compile features
    10. -- Detecting C compile features - done
    11. -- Check for working CXX compiler: /usr/bin/c++
    12. -- Check for working CXX compiler: /usr/bin/c++ -- works
    13. -- Detecting CXX compiler ABI info
    14. -- Detecting CXX compiler ABI info - done
    15. -- Detecting CXX compile features
    16. -- Detecting CXX compile features - done
    17. -- Performing Test COMPILER_KNOWS_CXX11
    18. -- Performing Test COMPILER_KNOWS_CXX11 - Success
    19. -- Performing Test COMPILER_KNOWS_STDLIB
    20. -- Performing Test COMPILER_KNOWS_STDLIB - Failed
    21. -- Link to static libraries: OFF
    22. -- Build type: Debug
    23. -- Build commit: devel
    24. -- Build revision: 0
    25. -- Looking for pthread.h
    26. -- Looking for pthread.h - found
    27. -- Looking for pthread_create
    28. -- Looking for pthread_create - not found
    29. -- Looking for pthread_create in pthreads
    30. -- Looking for pthread_create in pthreads - not found
    31. -- Looking for pthread_create in pthread
    32. -- Looking for pthread_create in pthread - found
    33. -- Found Threads: TRUE  
    34. -- Boost version: 1.62.0
    35. -- Found the following Boost libraries:
    36. --   system
    37. --   thread
    38. --   filesystem
    39. --   chrono
    40. --   date_time
    41. --   atomic
    42. -- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.1.so  
    43. -- LuaJIT: OFF
    44. -- Found PHYSFS: /usr/local/lib/libphysfs.so  
    45. -- Found OPENSSL: /usr/local/ssl/lib/libssl.so.1.0.2;/usr/local/ssl/lib/libcrypto.so.1.0.2  
    46. -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so  
    47. -- Debug information: ON
    48. -- Crash handler: ON
    49. -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
    50. -- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so  
    51. -- OpenGL ES: OFF
    52. -- Found OPENAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
    53. -- Found VORBISFILE: /usr/lib/x86_64-linux-gnu/libvorbisfile.so  
    54. -- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.so  
    55. -- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so  
    56. -- Bot protection: OFF
    57. -- Use precompiled header: OFF
    58. -- Configuring done
    59. -- Generating done
    60. CMake Warning:
    61.   Manually-specified variables were not used by the project:
    62.  
    63.     OPENSSL_ROOT_DIR
    64.  
    65.  
    66. -- Build files have been written to: /home/binny/Documents/otclient/build
    67.  
    68.  
    make:
    hastebin
     
    supergt likes this.
  4. Senzubean

    Senzubean Member

    Joined:
    Aug 24, 2017
    Messages:
    23
    Likes Received:
    36
    Best Answers:
    0
    @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
     
    fyalhed, supergt and binny like this.
  5. binny

    binny Member

    Joined:
    Mar 16, 2017
    Messages:
    51
    Likes Received:
    9
    Best Answers:
    0
    Same stuff?
    Code (Text):
    1.  
    2. 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 ..
    3. -- The C compiler identification is GNU 6.3.0
    4. -- The CXX compiler identification is GNU 6.3.0
    5. -- Check for working C compiler: /usr/bin/cc
    6. -- Check for working C compiler: /usr/bin/cc -- works
    7. -- Detecting C compiler ABI info
    8. -- Detecting C compiler ABI info - done
    9. -- Detecting C compile features
    10. -- Detecting C compile features - done
    11. -- Check for working CXX compiler: /usr/bin/c++
    12. -- Check for working CXX compiler: /usr/bin/c++ -- works
    13. -- Detecting CXX compiler ABI info
    14. -- Detecting CXX compiler ABI info - done
    15. -- Detecting CXX compile features
    16. -- Detecting CXX compile features - done
    17. -- Performing Test COMPILER_KNOWS_CXX11
    18. -- Performing Test COMPILER_KNOWS_CXX11 - Success
    19. -- Performing Test COMPILER_KNOWS_STDLIB
    20. -- Performing Test COMPILER_KNOWS_STDLIB - Failed
    21. -- Link to static libraries: OFF
    22. -- Build type: Debug
    23. -- Build commit: devel
    24. -- Build revision: 0
    25. -- Looking for pthread.h
    26. -- Looking for pthread.h - found
    27. -- Looking for pthread_create
    28. -- Looking for pthread_create - not found
    29. -- Looking for pthread_create in pthreads
    30. -- Looking for pthread_create in pthreads - not found
    31. -- Looking for pthread_create in pthread
    32. -- Looking for pthread_create in pthread - found
    33. -- Found Threads: TRUE  
    34. -- Boost version: 1.62.0
    35. -- Found the following Boost libraries:
    36. --   system
    37. --   thread
    38. --   filesystem
    39. --   chrono
    40. --   date_time
    41. --   atomic
    42. -- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.1.so  
    43. -- LuaJIT: OFF
    44. -- Found PHYSFS: /usr/local/lib/libphysfs.so  
    45. -- Found OPENSSL: /usr/local/ssl/lib/libssl.so.1.0.2;/usr/local/ssl/lib/libcrypto.so.1.0.2  
    46. -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so  
    47. -- Debug information: ON
    48. -- Crash handler: ON
    49. -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
    50. -- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so  
    51. -- OpenGL ES: OFF
    52. -- Found OPENAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
    53. -- Found VORBISFILE: /usr/lib/x86_64-linux-gnu/libvorbisfile.so  
    54. -- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.so  
    55. -- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so  
    56. -- Bot protection: OFF
    57. -- Use precompiled header: OFF
    58. -- Configuring done
    59. -- Generating done
    60. CMake Warning:
    61.   Manually-specified variables were not used by the project:
    62.  
    63.     OPENSSL_ROOT_DIR
    64.  
    65.  
    66. -- Build files have been written to: /home/binny/Documents/otclient/build
    67.  
    68.  
    Even installing apt-get install apt-get install libssl1.0-dev
     
    Last edited by a moderator: Jan 10, 2018
    supergt likes this.
  6. Senzubean

    Senzubean Member

    Joined:
    Aug 24, 2017
    Messages:
    23
    Likes Received:
    36
    Best Answers:
    0
    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.
     
    fyalhed, binny and supergt like this.
  7. binny

    binny Member

    Joined:
    Mar 16, 2017
    Messages:
    51
    Likes Received:
    9
    Best Answers:
    0
    I'm sorry to this long and thank you to still help us...
    I've tried to recompile to show you the logs, but look what happen:
    hastebin

    What is wrong?
     
  8. Senzubean

    Senzubean Member

    Joined:
    Aug 24, 2017
    Messages:
    23
    Likes Received:
    36
    Best Answers:
    0
    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.
     
    fyalhed, supergt and binny like this.
  9. binny

    binny Member

    Joined:
    Mar 16, 2017
    Messages:
    51
    Likes Received:
    9
    Best Answers:
    0
    I'm sorry to be too noob, i didn't know that...

    It is compiling now, but why this a lot of warnings?
    hastebin
     
    Last edited: Oct 14, 2017
    supergt likes this.
  10. Senzubean

    Senzubean Member

    Joined:
    Aug 24, 2017
    Messages:
    23
    Likes Received:
    36
    Best Answers:
    0
    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.
     
    fyalhed, supergt and binny like this.
  11. binny

    binny Member

    Joined:
    Mar 16, 2017
    Messages:
    51
    Likes Received:
    9
    Best Answers:
    0
    So that is it, otclient compiled on debian stretch thank for @Senzubean

    The way to compile is:
    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 libssl1.0-dev

    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
    cp /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0* /usr/local/ssl/lib


    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 ..
    make

    Anyways did u know why my otclient isn't saving?
    Everytime i close and re open i lose everything, need to choose the language, and blablabla
     
    Last edited by a moderator: Jan 10, 2018
    fyalhed and supergt like this.
  12. fyalhed

    fyalhed New Member

    Joined:
    Nov 18, 2017
    Messages:
    17
    Likes Received:
    3
    Best Answers:
    0
    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?
     
  13. binny

    binny Member

    Joined:
    Mar 16, 2017
    Messages:
    51
    Likes Received:
    9
    Best Answers:
    0
    I have this here:
    libssl-dev_1.0.1t-1_deb8u6_amd64

    And to fix that error i reported before, to save otclient configs, you need to:
    cd /home/youruser && mkdir .otclient && chmod -R 777 .otclient && chmod -R 777 otclient
     
    Last edited: Jan 12, 2018
    fyalhed likes this.

Share This Page

Loading...