GithubHelp home page GithubHelp logo

Is ninja supported? about restinio HOT 2 CLOSED

wiluite avatar wiluite commented on June 18, 2024
Is ninja supported?

from restinio.

Comments (2)

eao197 avatar eao197 commented on June 18, 2024

Hi!

There is the result of a my check with Visual Studio 2022 Community Edition:

C:\home\eao197\sandboxes\restinio.github\dev\cmake_build_ninja>cmake -G Ninja ..
-- The CXX compiler identification is MSVC 19.39.33520.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- SET C++17 BY DEFAULT
-- RESTINIO_INSTALL:           ON
-- RESTINIO_TEST:              ON
-- RESTINIO_SAMPLE:            ON
-- RESTINIO_BENCHMARK:         ON
-- RESTINIO_WITH_SOBJECTIZER:  ON
-- RESTINIO_DEP_STANDALONE_ASIO: find
-- RESTINIO_DEP_BOOST_ASIO:      find
-- RESTINIO_DEP_LLHTTP:          local
-- RESTINIO_DEP_FMT:             local
-- RESTINIO_DEP_EXPECTED_LITE:   local
-- RESTINIO_DEP_CATCH2:          local
-- RESTINIO_DEP_SOBJECTIZER:     local
-- RESTINIO_ASIO_SOURCE: standalone
-- RESTINIO_FMT_TARGET:  will be decided dynamically
-- Defining RESTinio dependencies...
-- Finding ASIO package...
-- asio libraries:
-- asio include dir: C:/home/eao197/sandboxes/restinio.github/dev/asio/include
========================================
-- Add subdirectory nodejs/llhttp
-- The C compiler identification is MSVC 19.39.33520.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
--
--
-- Project configure summary:
--
--   CMake build type .................: DEBUG
--   Install prefix ...................: C:/Program Files (x86)/restinio_root
--   Build shared library .............: OFF
--   Build static library .............: ON
--
========================================
========================================
-- Add subdirectory fmt
-- Version: 10.1.0
-- Build type: Debug
========================================
========================================
-- Add subdirectory expected-lite
-- Project 'expected_lite', package 'expected-lite' version: '0.6.3'
========================================
========================================
-- Add subdirectory so_5
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- RESTINIO_SOBJECTIZER_LIB_LINK_NAME: sobjectizer::StaticLib
========================================
========================================
adding restinio-helpers
========================================
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Could NOT find PCRE (missing: PCRE_LIBRARY PCRE_INCLUDE_DIR)
-- Could NOT find PCRE2 (missing: PCRE2_LIBRARY PCRE2_INCLUDE_DIR)
-- Could NOT find PCRE2 (missing: PCRE2_LIBRARY PCRE2_INCLUDE_DIR)
========================================
-- Defining restinio target...
-- RESTINIO_VERSION:   0.7.2
-- RESTINIO_SOVERSION: 0.7
-- RESTINIO_VERSION: 0.7.2
-- restinio target will depend on 'asio::asio' target
-- restinio target will depend on 'llhttp::llhttp' target
-- restinio target will depend on 'fmt::fmt' target
-- restinio target will depend on 'nonstd::expected-lite' target
========================================
========================================
-- Add subdirectory catch2
========================================
-- Configuring done (6.9s)
-- Generating done (0.6s)
-- Build files have been written to: C:/home/eao197/sandboxes/restinio.github/dev/cmake_build_ninja

C:\home\eao197\sandboxes\restinio.github\dev\cmake_build_ninja>cmake --build . --parallel 3
[366/366] Linking CXX executable bin\_bench.restinio.single_handler_so5_timer.exe

C:\home\eao197\sandboxes\restinio.github\dev\cmake_build_ninja>cmake --version
cmake version 3.28.0-msvc1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

The CMake and Ninja are from VS.

from restinio.

wiluite avatar wiluite commented on June 18, 2024

Well, thanks!
When I turned ninja.exe from CLion's distibution to VS Community's executable, I was able to successfully start building RESTinio-0.7.1 with bundled mingw compiler and bundled cmake.

However, if interested, you still can check building 0.7.1 version against CLion's 2022.3.3 ninja.exe (1.10.2). With it 0.6.19 version was being built almost ok.

from restinio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.