-
Notifications
You must be signed in to change notification settings - Fork 129
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
How can I build this project on Ubuntu? #9
Comments
Please see the README --> https://github.com/xbpeng/DeepTerrainRL#linux |
Do you build it successfully? I mean there isn't a CMakelist.txt . And in the #8, it said download external(https://github.com/xbpeng/DeepTerrainRL/releases/download/v1.0/TerrainRL-external-Linux.tar.gz) and extract it into DeepTerrainRL, do I also need do this? Thanks a lot! |
I build it successfully. You will need to download the external files. Then you will need to use premake4 to generste the make files. |
Thanks Neo-X, but I met a new problem while I builded it with make command, it's like this: it seems the problem of the protobuf version, but I have already install the newest one(2.6) by: sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler |
@Neo-X can you please tell me the details about the build process,is it :
It that all right please? |
Yes that looks correct. You might have to use an older version of protobuf which might have been included in the caffe/src/proto/ folder to use. |
You should not change the version of caffe. |
Thanks Neo-X, for the protobuf issue ,I found I should replace the caffe.pb.h and caffe.pb.cc in the protoc src/caffe/proto/caffe.proto --cpp_out=. |
@Neo-X and then I met this one: I change the Makefile.confing file in external/caffe/ by add the inclue directory of/usr/include/hdf5/serial/ , but it still doesn't work. |
@xbpeng I found some thing wrong, you include the head files of Eigen ,but you didn't include the path of Eigen in premake4.lua, I don't understand! |
@xiaoiker I could build this project and run on clean installation of Ubuntu 14.04 The following is the summary of my bash history. @Neo-X It seems that |
thanks for catching that, they have been removed. |
the issue with hdf5.h is a problem with using Ubuntu 16.04. See the solution here from the caffe issue |
@xiaoiker The thridparty folder is not used on Linux. Only on Windows. |
Put the premake4.lua file in the optimization folder. These should work... |
Thanks a lot! I have already successfully built this project on another Ubuntu14.04 machine. Unfortunately, it still doesn't work on Ubuntu16.04 even with the new premake4 file., it says: can not find the lcaffe from /usr/bin/ld It is strange, because I found the libcaffe comes from external/caffe/build/ after build the project on the ubuntu14.04. |
Caffe should be copied into DeepTerrainRL/lib from external/caffe/build/lib |
Thanks @Neo-X , I built this project with the new premake4 file, It could not find the lcaffe from/usr/bin/ld and then I build the caffe in the external,and the I get libcaffe.so. I make the project again,I get this kind of false no matter if can copy the lib into the DeepTerrainRL/lib directory or not.( Actually I didn't get a folder named lib in DeepTerrainRL, so I made one) animation@Animation-HS:~/DeepTerrainRL$ make config=debug64 -j8 |
I seems like you don't have the good protobuf library installed. And maybe the leveldb library as well. maybe you should try a
and then try and rebuild everything. |
Could you please specify which caffe version should be used for Ubuntu 16.04? Because it seems the version referred in the readme.md doesn't work. |
The updated one in the external library compressed file with the most recent build is the correct version. |
I have tried the external library, and compile them with make conig=debug64. It complains about caffe proto file. I indeed regenerate the file, but it still doesn't work. The stdout and stderr files are as following. Later on I tried the caffe version you mentioned in the readme file. (https://github.com/niuzhiheng/caffe).
After I remedy these problems, it will complain other syntax problems, most of which should be about caffe problem. BTW, I am using Ubuntu 16.04. I would appreciate it if you guys could give me more help on compiling. |
The version from the compressed file is definutely the right one but you will need to recompile caffe after you download it. That version was compiled for Ubuntu 14.04. make sure you make clean everything thoroughly before you build. |
I updated the build instructions for Linux https://github.com/xbpeng/DeepTerrainRL/blob/master/README.md#linux-build-instructions |
@Neo-X Thanks very much. Those new added Linux instructions really help me a lot. |
@tianyang9310 Great! let me know how it goes! |
I reinstall my system and the CUDA, rebulild the project with the external folder after replacing the premake4 files on my Ubuntu16.04, but I met this problem: obj/x64/Debug/Character.o: In function should I build the Jason in the external files? |
Looks like you should rebuild the JSON library. From your earlier post you had it seemed like you should clean and rebuild from scratch using the command |
@Neo-X @xbpeng @xiaoiker
cp ~/DeepTerrainRL/caffe_mods/caffe.proto ~/DeepTerrainRL/external/caffe/src/caffe/proto/caffe.proto the following is the corresponding commands:
anything missing? could we add those missing commands to provide a workable guide please? |
You need to install step 8 pf the dependencies https://github.com/xbpeng/DeepTerrainRL#dependencies. |
@Neo-X ,thanks for your reply.
so, besides the 6 steps above, the most import changes:
|
Sounds good. The last step, using debug64 is important. |
a problem |
sorry about that, DMACETrainer, should not be included in the build process. It is not used anywhere, and should be removed. |
No description provided.
The text was updated successfully, but these errors were encountered: