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

Cannot compile, CMakeLists.txt not found #6

Closed
andimik opened this issue Mar 16, 2017 · 10 comments
Closed

Cannot compile, CMakeLists.txt not found #6

andimik opened this issue Mar 16, 2017 · 10 comments

Comments

@andimik
Copy link
Contributor

andimik commented Mar 16, 2017

andreas@T42:$ cd dab-cmdline/
andreas@T42:
/dab-cmdline$ mkdir build
andreas@T42:/dab-cmdline$ cd build/
andreas@T42:
/dab-cmdline/build$ cmake ..
CMake Error: The source directory "/home/andreas/dab-cmdline" does not appear to contain CMakeLists.txt.

I followed your suggestions, but I could not compile it. I found the file there:

./example/CMakeLists.txt
./dab-library/devices/rtl_tcp/CMakeLists.txt
./dab-library/CMakeLists.txt

Am I wrong?

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Mar 17, 2017 via email

@andimik
Copy link
Contributor Author

andimik commented Mar 29, 2017

What does this sentence mean (sorry for that stupid beginner question)?

IMPORTANT: YOU NEED C++11 SUPPORT FOR THIS

I cannot compile it.

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

I found lots of suggestions to enable c++11 in qt-creator, but they all are for adding a parameter to the pro-file, which does not exist for this program.

dpkg -l cpp
ii cpp 4:5.3.1-1ubu amd64 GNU C preprocessor (cpp)

dpkg -l gcc
ii gcc 4:5.3.1-1ubu amd64 GNU C compiler

This is Ubuntu 16.04 LTS.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Mar 30, 2017 via email

@andimik
Copy link
Contributor Author

andimik commented Mar 30, 2017

Aaaaaa

Now it's clearer :-D

@andimik
Copy link
Contributor Author

andimik commented Apr 2, 2017

Sorry, but I can still not compile it.

My steps are:

cd dab-cmdline/
cd dab-library/
mkdir build
cd build/
cmake -std=gnu++11 .. -DAIRSPY=ON -DDABSTICK=ON
make
sudo make install

(no errors so far)

and then

cd ..
cd example/
mkdir build
cd build/
cmake -std=gnu++11 ..
make

I tried cmake -std=gnu++11 .. without success. Still the same error.

How to enable C++11 in Ubuntu and cmake?
What is the syntax?
Or do I have to edit the CMakeText.txt anyway (although you say it's not necessary)?

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Apr 2, 2017 via email

@andimik
Copy link
Contributor Author

andimik commented Apr 2, 2017

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Apr 2, 2017 via email

@andimik
Copy link
Contributor Author

andimik commented Apr 2, 2017

Yes, when I add it to the CMakeLists text file then it works.

Same with ETI stuff (cmdline). Now I could build it as well. :-)

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Apr 2, 2017 via email

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

2 participants