rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.12k stars 430 forks source link

Problem with compiling the rttr on MSVC on Windows. #312

Open Mulligan81 opened 3 years ago

Mulligan81 commented 3 years ago

I'd like to compile & install the rttrfor my MSVC 2019 on Win 10. I've navigated in the PowerShellto the rttr root dir (where I've extracted the rttr archive) as dushyant-shukla stated here and just typed cmake . (as was also stated in the thread).

Here is the resulting output:


-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
Project version: 0.9.6
-- Architecture: x64
-- Enabled: use of RTTI
-- using C++: 17
--
-- Finding 3rd party libs...
-- ===========================
-- Finished finding 3rd party libs!
CMake Warning at CMake/utility.cmake:486 (message):
  Can not retrieve compiler name!
Call Stack (most recent call first):
  CMake/installer.cmake:64 (getCompilerName)
  CMakeLists.txt:79 (include)

-- Scanning rttr module.
-- ===========================
-- rttr directory included
-- Scanning rttr module finished!
--
-- Scanning unit_tests module.
-- ===========================
-- unit_tests directory included
-- Scanning unit_test_plugin module.
-- ===========================
-- plugin directory included
-- Scanning unit_test_plugin module finished!
--
-- Scanning unit_tests module finished!
--
-- Scanning json_example module.
-- ===========================
-- files directory included
-- Scanning json_example module finished!
--
-- Scanning library_loader_example module.
-- ===========================
-- files directory included
-- Scanning library_loader_example module finished!
--
-- Scanning plugin_example module.
-- ===========================
-- files directory included
-- Scanning plugin_example module finished!
--
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Warning at doc/CMakeLists.txt:85 (message):
  Doxygen not found - Documentation will not be generated!

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Darek/Pobrane_4/rttr-0.9.6-src1

The instruction says the next step is to use the nmake command to compile the src. And here is where I got stuck. When i type just nmakei got an error: MAKEFILE not found and no target specified Stop As I've checked and no MAKEFILE was indeed created after previously running the cmake . Can anyone help me. Sorry if the question is trivial/lame but I'm the beginner in the cmake/nmake matter. Thx.

damienhocking commented 3 years ago

Darek, go into the C:/Users/Darek/Pobrane_4/rttr-0.9.6-src1 directory. You should see a bunch of Visual Studio projects, and rttr.sln. Open up the .sln in the Visual Studio IDE and compile it from there. That's easier than messing around with nmake.