ubuntu/ makefile/ cmake/ sfml

cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE

taken from this site.

does not work when I cd into the folder I get this: CMake Error: The path to the source directory:

/home/hassooni/Development/sfml/BUILD_SHARED_LIBS=TRUE

contains unsupported character '='.

Please use a different source directory name.

Please help!

Thanks

note: I want to use it with g++ and gvim, I have all the dependencies and have done everything specified by the linked tutorial! :(

You should not have spaces between the D and the variable in your declarations. It should be:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=TRUE

note, the spaces between -D and CMAKE_BUILD_TYPE=Release and -D and BUILD_SHARD_LIBS=TRUE have been removed.

暂无
暂无

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question Packages unmet when I try to install nginx Error when I try to install npm on Ubuntu 17.04 How to install R on ubuntu 16.10 via the terminal? Unable to install postgresql via terminal in Ubuntu How to install SFML in ubuntu? TypeError when try to install Anaconda Every time I try to install Ruby 3.1.2 via Ubuntu for WSL, my computer crashes “Version not found” when i trying to install something via npm cmake cant generate sfml build files Why I obtain these error messages when I try to install gem bundler on Ubuntu? (Could not create Makefile)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM