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

CMake Error: Unknown argument --config #36

Open
LucasFKobernic opened this issue Mar 30, 2021 · 7 comments
Open

CMake Error: Unknown argument --config #36

LucasFKobernic opened this issue Mar 30, 2021 · 7 comments

Comments

@LucasFKobernic
Copy link

Hie everyone,

I trying to install the environment on my machine (Mac, Big Sur) to do the project.

I followed the steps from here: https://github.com/udacity/CppND-Route-Planning-Project/blob/master/README.md

All run okay. But by installing IO2D,

I get this error when I try:

cmake -G "Xcode" --config Debug "-DCMAKE_BUILD_TYPE=Debug" ../.
CMake Error: Unknown argument --config
CMake Error: Run 'cmake --help' for all supported options.

My Cmake version is 3.20, my make version is 4.3. Can anyone help me?

Thanks! :)

@yyccphus
Copy link

yyccphus commented Apr 6, 2021

Same problem

@yyccphus
Copy link

yyccphus commented Apr 7, 2021

In the /CppND-Route-Planning-Project/thirdparty/

git clone --recurse-submodules https://github.com/cpp-io2d/P0267_RefImpl
cd P0267_RefImpl
mkdir Debug
cd Debug
cmake ..
cmake --build .
sudo make install

This worked for me.

@LucasFKobernic
Copy link
Author

Nice! Thanks yyccphus, i will try it.

@xakod
Copy link

xakod commented Jul 1, 2021

In the /CppND-Route-Planning-Project/thirdparty/

git clone --recurse-submodules https://github.com/cpp-io2d/P0267_RefImpl
cd P0267_RefImpl
mkdir Debug
cd Debug
cmake ..
cmake --build .
sudo make install

This worked for me.

It looks like a bit overhead if you try to use this with ExternalProject_Add

@zzy98y
Copy link

zzy98y commented Jul 14, 2021

Hi,
till cmake .. was successful for me.

And cmake --build .
gives me the following error :

[ 2%] Building CXX object P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/rgba_color.cpp.o In file included from /Users/zhengyangzhang/Downloads/CppND-Route-Planning-Project-master/thirdparty/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/rgba_color.cpp:1: /Users/zhengyangzhang/Downloads/CppND-Route-Planning-Project-master/thirdparty/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/xio2d.h:4:10: fatal error: 'limits' file not found #include <limits> ^~~~~~~~ 1 error generated. make[2]: *** [P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/rgba_color.cpp.o] Error 1 make[1]: *** [P0267_RefImpl/P0267_RefImpl/CMakeFiles/io2d_core.dir/all] Error 2 make: *** [all] Error 2

Can someone help please?

@Seim2k17
Copy link

Seim2k17 commented Nov 2, 2021

could someone manage to build this io2d stuff ? :)

@RubelMozumder
Copy link

Hello,
I have successfully installed the io2d library and once I got the output graph as mentioned in the testing and running step. But After few days I can not run the main.cpp. The error is as follows.

$ g++ -std=c++17 -c delete_test_1.cpp && g++ -std=c++17 delete_test_1.o -o delete_test_1.out && ./delete_test_1.out
delete_test_1.cpp:1:10: fatal error: io2d.h: No such file or directory
    1 | #include <io2d.h>
      |          ^~~~~~~~

Please note that I am using VSCODE in Ubuntu-20.04.
I check the include path that is as follows (c_cpp_propertise.json):

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "/usr/local/include/io2d/",
                "${workspaceFolder}/**",
                "/usr/local/include/P0267_RefImpl/P0267_RefImpl",
                "/usr/include/cairo",
                "/usr/lib"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}
I do not understand what is the error??
Do anyone see this problem? Please, share you knowledge and experience.

Thanks a lot!

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

6 participants