Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trojan 编译失败 #553

Open
xiaole51 opened this issue Oct 11, 2021 · 0 comments
Open

trojan 编译失败 #553

xiaole51 opened this issue Oct 11, 2021 · 0 comments

Comments

@xiaole51
Copy link

虽然代码停更了, 发现bug还是发布吧.
添加内置trojan后编译出错, 去掉后可正常编译.

原本CMake版本低有提示,升级到3.8后编译不过.
CMake 3.7.2 or higher is required. You are running version 3.5.1

错误信息如下:
make[3]: Entering directory '/opt/rt-n56u/trunk/user/trojan'
( mkdir -p trojan-1.16.0/build && cd trojan-1.16.0/build ;
CFLAGS="-O3 -ffunction-sections -fdata-sections" CXXFLAGS="-O3 -ffunction-sections -fdata-sections" LDFLAGS="-Wl,--gc-sections"
cmake -DCMAKE_TOOLCHAIN_FILE=../../cross-linux.cmake
-DENABLE_MYSQL=OFF
-DENABLE_NAT=ON
-DENABLE_REUSE_PORT=ON
-DENABLE_SSL_KEYLOG=ON
-DENABLE_TLS13_CIPHERSUITES=ON
-DFORCE_TCP_FASTOPEN=OFF
-DSYSTEMD_SERVICE=OFF
-DOPENSSL_USE_STATIC_LIBS=FALSE
-DBoost_DEBUG=OFF
-DBoost_NO_BOOST_CMAKE=ON
.. ;
)
CMake Warning at /usr/local/share/cmake-3.8/Modules/FindBoost.cmake:762 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/local/share/cmake-3.8/Modules/FindBoost.cmake:866 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.8/Modules/FindBoost.cmake:1457 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:39 (find_package)

CMake Warning at /usr/local/share/cmake-3.8/Modules/FindBoost.cmake:762 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/local/share/cmake-3.8/Modules/FindBoost.cmake:866 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.8/Modules/FindBoost.cmake:1457 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:39 (find_package)

CMake Error at /usr/local/share/cmake-3.8/Modules/FindBoost.cmake:1813 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:39 (find_package)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0
used as include directory in directory /opt/rt-n56u/trunk/user/trojan/trojan-1.16.0

-- Configuring incomplete, errors occurred!
See also "/opt/rt-n56u/trunk/user/trojan/trojan-1.16.0/build/CMakeFiles/CMakeOutput.log".
Makefile:34: recipe for target 'configure' failed
make[3]: *** [configure] Error 1
make[3]: Leaving directory '/opt/rt-n56u/trunk/user/trojan'
Makefile:27: recipe for target 'config_test' failed
make[2]: *** [config_test] Error 2
make[2]: Leaving directory '/opt/rt-n56u/trunk/user/trojan'
Makefile:235: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/rt-n56u/trunk/user'
Makefile:202: recipe for target 'user_only' failed
make: *** [user_only] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant