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

cntos7上从编译报错到编译成功的过程。 #37

Closed
maymay1982 opened this issue Jul 15, 2019 · 10 comments
Closed

cntos7上从编译报错到编译成功的过程。 #37

maymay1982 opened this issue Jul 15, 2019 · 10 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@maymay1982
Copy link

maymay1982 commented Jul 15, 2019

MVN is not installed and JDBC is not compiled.
安装了MVN和JDBC,仍然报错:
CMake Error at src/client/CMakeLists.txt:30 (SET_TARGET_PROPERTIES):
SET_TARGET_PROPERTIES called with incorrect number of arguments.

-- MVN is installed and JDBC will be compiled
-- Configuring incomplete, errors occurred!
See also "/home/TDengine-master/build/CMakeFiles/CMakeOutput.log".

@maymay1982
Copy link
Author

换了台ubuntu16.04的机器,还是报同样的错,奇怪,大家都没这样的问题吗?

@2efPer
Copy link

2efPer commented Jul 15, 2019

在项目根目录make,然后在cd 到build目录,make --build .
估计是和这个相关。
可以参考https://github.com/2efPer/tdengine-docker/blob/master/server/Dockerfile

@maymay1982
Copy link
Author

maymay1982 commented Jul 15, 2019 via email

@maymay1982
Copy link
Author

maymay1982 commented Jul 16, 2019

刚检查了,是在build目录下make的,还是报同样的错。
[root@localhost build]# cmake ..
-- Project source directory: /home/TDengine-master
-- Build Debug Version
-- Project binary output path: /home/TDengine-master/build
-- Executable files output path: /home/TDengine-master/build/build/bin
-- Project library output path: /home/TDengine-master/build/build/lib
-- Check targe platform x64, pass
-- Use the iconv functions in GLIBC
-- build version
CMake Error at src/client/CMakeLists.txt:30 (SET_TARGET_PROPERTIES):
SET_TARGET_PROPERTIES called with incorrect number of arguments.

-- MVN is installed and JDBC will be compiled
-- Configuring incomplete, errors occurred!
See also "/home/TDengine-master/build/CMakeFiles/CMakeOutput.log".

@maymay1982
Copy link
Author

cmake版本是3.14,跟这个有关系吗?

@coder-chriswang
Copy link

本人也是cmake报错,一样的错误,版本3.15

@coder-chriswang
Copy link

能否提供 taos-xxxxxxxxx.tar.gz? 这样,无需每个体验开发者,走一样的编译流程了。

@lengyuyan
Copy link

MVN is not installed and JDBC is not compiled
同样的错误

@maymay1982
Copy link
Author

用了陶老师团队昨天发布的版本后,已成功编译。

@maymay1982
Copy link
Author

MVN is not installed and JDBC is not compiled
同样的错误

首先,你要装一下apache-maven-3.5.4-bin,并且需要在/etc/profile里配置;其次,要装一下jdk,并且需要在/etc/profile里配置(具体路径根据自己的安装情况更改):
JAVA_HOME=/home/jdk1.8.0_191
export JRE_HOME=$JAVA_HOME/jre
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
MAVEN_HOME=/usr/local/apache-maven-3.5.4
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants