Giter VIP home page Giter VIP logo

Comments (8)

antonchen avatar antonchen commented on May 27, 2024

You need to specify the OpenSSL include directory

// Path to a file.
OPENSSL_INCLUDE_DIR:PATH=OPENSSL_INCLUDE_DIR-NOTFOUND

from trojan.

luckypoem avatar luckypoem commented on May 27, 2024

@antonchen
不太明白。怎么指定OpenSSL include 目录?在哪里指定?
能把具体命令写出来吗

from trojan.

GreaterFire avatar GreaterFire commented on May 27, 2024
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/ssl/

Make sure to clean up the build directory before you rerun cmake.

from trojan.

luckypoem avatar luckypoem commented on May 27, 2024

@GreaterFire
this time "cmake .." encounter no error,but then "make" encounter error:
root@yms:/trojan/build# ls
CMakeCache.txt cmake_install.cmake Makefile trojan.service
CMakeFiles CTestTestfile.cmake trojan.json
root@yms:
/trojan/build# make
...
collect2: error: ld returned 1 exit status
CMakeFiles/trojan.dir/build.make:335: recipe for target 'trojan' failed
make[2]: *** [trojan] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/trojan.dir/all' failed
make[1]: *** [CMakeFiles/trojan.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
root@yms:~/trojan/build#

how to fix it?
tks

from trojan.

GreaterFire avatar GreaterFire commented on May 27, 2024

Please provide full compilation log.

P.S. Try to delete all the files in the build directory by rm -rf * and then cmake & make again.

from trojan.

luckypoem avatar luckypoem commented on May 27, 2024

@GreaterFire
"delete all the files in the build directory by rm -rf * and then cmake & make again", the same result.
very strange.
i update openssl as per this article- https://sb.sb/centos-upgrade-openssl/ ,
isn't the method of updating openssl correct?

from trojan.

luckypoem avatar luckypoem commented on May 27, 2024

@GreaterFire

and can u pls also provide binary file on linux vps of https://github.com/trojan-gfw/trojan/releases/tag/v0.6.0?

from trojan.

luckypoem avatar luckypoem commented on May 27, 2024

@GreaterFire
我换了一台vps,它里面的openssl的版本已经是1.0.2,这样就能顺利make了

from trojan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.