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

Failed to build on Ubuntu 16.04.3 LTS due to missing CMakeLists.txt files #4

Closed
udishamir opened this issue Dec 12, 2017 · 7 comments
Closed

Comments

@udishamir
Copy link

OS: Linux Duster 4.4.0-103-generic #126-Ubuntu SMP Mon Dec 4 16:23:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

cmake: 3.10
mkdir build && cd build
➜ build git:(master) /usr/local/bin/cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local
-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
CMake Error at deps/CMakeLists.txt:2 (add_subdirectory):
The source directory

/home/udi/code/retdec/deps/capstone2llvmir

does not contain a CMakeLists.txt file.

@metthal
Copy link
Member

metthal commented Dec 12, 2017

Make sure that you run recursive clone

git clone --recursive https://github.com/avast-tl/retdec

or if you do not want to clone again:

git submodule update --init --recursive

Let me know if it works.

@Manouchehri
Copy link
Contributor

Manouchehri commented Dec 13, 2017

I had trouble building with Ubuntu 16.04 as well. Switching to 17.10 solved my build issues.

@s3rvac
Copy link
Member

s3rvac commented Dec 13, 2017

@Manouchehri Can you please share with us your build log? RetDec can be successfully compiled on Debian Jessie, which was released in 2015, so I believe it should work on Ubuntu 16.04 as well. Did you use a proper version of CMake? RetDec requires at least CMake 3.6.

@Manouchehri
Copy link
Contributor

Manouchehri commented Dec 13, 2017

@s3rvac Just noticed that 16.04 only ships CMake 3.5.1, so it's going to require mucking around with to get going.

Replacing bionic with xenial in my Dockerfile should reproduce the issue.

Not on my desktop right now, but I'll try to remember to post a log later. Personally I use Docker whenever possible, so using 17.10 is an acceptable solution (but I understand for some it may not be).

@s3rvac
Copy link
Member

s3rvac commented Dec 14, 2017

@udishamir Can you please verify whether the recursive clone (or submodule update), suggested by @metthal, fixed the build for you?

@s3rvac
Copy link
Member

s3rvac commented Dec 17, 2017

I am closing this as there was no reaction within the last four days. If the suggested fix did not work for you, feel free to reopen the issue.

@s3rvac s3rvac closed this as completed Dec 17, 2017
@udishamir
Copy link
Author

udishamir commented Dec 17, 2017 via email

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

No branches or pull requests

5 participants