ssloy / tinyraytracer

A brief computer graphics / rendering course
https://github.com/ssloy/tinyraytracer/wiki
5k stars 333 forks source link

It can't successfully compile #21

Closed LexTran closed 3 years ago

LexTran commented 3 years ago

Hi! I was trying to compile this program as you said in README, but when I run the instruction "cmake ..", I got this:

C:\Users\apple\Desktop\Tan GraduateProject\tinyraytracer\build>cmake ..
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.27.29112.0
-- The CXX compiler identification is MSVC 19.27.29112.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test flag_supported
-- Performing Test flag_supported - Success
-- Performing Test flag_supported
-- Performing Test flag_supported - Failed
-- Performing Test flag_supported
-- Performing Test flag_supported - Failed
-- Performing Test flag_supported
-- Performing Test flag_supported - Failed
-- Performing Test flag_supported
-- Performing Test flag_supported - Failed
-- Performing Test flag_supported
-- Performing Test flag_supported - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/apple/Desktop/Tan GraduateProject/tinyraytracer/build

It says configuring was done and generating was done, but when I try to "make" the program, it says:

make: *** No targets specified and no makefile found.  Stop.

Apparently I didn't get the makefile in the cmake process, I really don't know what's wrong ,hope you can help me, thanks!

By the way, my running environment is on Windows 10, I was using Cmake 3.18.2, would it be the version problem?


Also, when I was trying to compile your another program, which is called tinyrenderer, I have met the same problem, completely same.

ssloy commented 3 years ago

shouldn't windows cmake produce .vcproj files?