CPSinSYSU / SHCD2017

Software Hardware Co-design
12 stars 18 forks source link

error on cmake parameter #5

Closed VincentCheungM closed 7 years ago

VincentCheungM commented 7 years ago

From the step 2 in wiki, the path of install prefix doesn't exist, is "pwd" should be "$(pwd)"? I have not tried yet, @Durant35

cmake -DCMAKE_INSTALL_PREFIX=`pwd`/../ ..
Durant35 commented 7 years ago

I should be like following:

`pwd`
Durant35 commented 7 years ago

Finding: It will be trouble in some strange path

Durant35 commented 7 years ago

Following is a better way

cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/../" ..
Kun-Lee commented 7 years ago

why a problem "directory does not appear to contain CMakeLists.txt."?

Durant35 commented 7 years ago

cmake depends on a CMakeLists.txt, and cmake will find the current directory for this CMakeLists.txt. So, when you run cmake, check if current directory has one or not(error occurs). Besides, we use cmake .. in our project because we want to build out-of-source(in an independent build directory), and the CMakeLists.txt located at this build parent directory, so we use ..

Kun-Lee commented 7 years ago

why a problem "make: *** No targets specified and no makefile found. Stop."? and should I Configure the experimental environment in the file "Velodyne_viewer"?

Durant35 commented 7 years ago

cmake finally generate a Makefile if no error occurs(in the directory you run cmake), while Makefile is use by make. make is very similar to cmake, instead finding Makefile.... All this is mentioned in this Wiki, hope you develop a habit: read what clearly first, understand why second(Google will help), then how to do becomes easy.

Kun-Lee commented 7 years ago

No, I follow your steps without a "Makefile" file...

Kun-Lee commented 7 years ago

Only a "CMakefiles"

Durant35 commented 7 years ago

You make sure that there is no any error occurred in your cmake command??? maybe lost some dependencies

Kun-Lee commented 7 years ago

really; I can't find the problem....I only have Cmakefiles;;

Kun-Lee commented 7 years ago

I cmake the file "CmakeList.txt" and get CMakeFiles and a CMakeCache.txt ,en

Durant35 commented 7 years ago

You can put some screenshot(directly ctrl+V to upload here...), I want to see your cmake print info, your currrent directory ls info

Kun-Lee commented 7 years ago

I send a mail of qq I'm sorry. image

Durant35 commented 7 years ago

@Kun-Lee Please do read the Wiki carefully first.... follow the wiki, do not meet any problem with great probability.....Thanks!

Kun-Lee commented 7 years ago

a problem "Cmake error at Cmakelists.txt:36" is "add_subdirectory(src bin)" why do with?plz. image image

Durant35 commented 7 years ago

请截图吧 最好包括运行的命令 所在目录情况 运行结果 谢谢

Durant35 commented 7 years ago

@Kun-Lee Why you said: a problem "Cmake error at Cmakelists.txt:36"????

Kun-Lee commented 7 years ago

It was before I built the file "build" outside.Now I put "build" in "Velodyne_viewer".it has new error.

Durant35 commented 7 years ago

I think you can easily read the above CMake Error and install corresponding dependency(glut) as Wiki said to fix your problem.... image Don't do something wrong that make you in trouble before understanding the command cmake & make

Kun-Lee commented 7 years ago

image no no no you see;

Durant35 commented 7 years ago

image

Kun-Lee commented 7 years ago

why can't python?

Durant35 commented 7 years ago

@Kun-Lee https://github.com/CPSinSYSU/SHCD2017/issues/6

Kun-Lee commented 7 years ago

while make and make install an error appear.I can't understand here?

Durant35 commented 7 years ago

无所谓 能跑就行了。。。程序已经成功生成了

Kun-Lee commented 7 years ago

可是很奇怪的是 我后面 点开.pcap跑出一个wireshake 点开view那个也只有全屏都是黑的 没有一个点?不是这个错误?

Durant35 commented 7 years ago

给你们的代码不可能实现了解析,需要你们自己实现

VincentCheungM commented 7 years ago

@Kun-Lee 你是说点开pcap跑出一个wireshark,点开view只有一个矩形框?你需要通过运行那个python脚本来回拨pcap,同时打开viewer才有那个点。至于你python报的错就是系统没有numpy这个库。

Kun-Lee commented 7 years ago

是先运行viewer放着 然后按照那个步骤来运行python脚本吗?

VincentCheungM commented 7 years ago

@Kun-Lee viewer只是viewer。还需要数据才能显示,从群众中来到群众中去,数据从pcap中来到viewer中去,那个python脚本就用于播放数据。