GithubHelp home page GithubHelp logo

Comments (9)

rcane avatar rcane commented on June 2, 2024 1

Great.
But no rush. Since I already need a port overlay anyway, it was quite easy to patch restinio there and get it working for me.
I am waiting for 0.7.1 to land in vcpkg so I can remove my local patch.

from restinio.

eao197 avatar eao197 commented on June 2, 2024

Hi, @rcane !

Thanks for reporting! We'll take a look at them a bit later.

from restinio.

eao197 avatar eao197 commented on June 2, 2024

I've added a new Dockerfile to check the presence of the first problem on Linux. Unfornunately, this file doesn't show an error with CMake configure.

I'll try to find another way to show that such a problem exists and that it will be fixed properly.

from restinio.

rcane avatar rcane commented on June 2, 2024

Her is some more information that maybe helps:

I encountered the problems when I tried to install restinio via vcpkg.
Since the official vcpkg port uses standalone asio, I created an overlay port where I changed the dependency from "asio" to "boost-asio" and modified the cmake configure parameters in the portfile.cmake to use boost asio. I am doing this under Windows with VS2022.

This SO article got me to the fix of the first bug.

This is the modified configure call I use in the portfile:

vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}/dev"
    OPTIONS
        -DRESTINIO_INSTALL=ON
        -DRESTINIO_TEST=OFF
        -DRESTINIO_SAMPLE=OFF
        -DRESTINIO_BENCHMARK=OFF
        -DRESTINIO_WITH_SOBJECTIZER=OFF
        -DRESTINIO_ASIO_SOURCE=boost
        -DRESTINIO_DEP_BOOST_ASIO=find
        -DRESTINIO_DEP_LLHTTP=find
        -DRESTINIO_DEP_FMT=find
        -DRESTINIO_DEP_EXPECTED_LITE=find
)

So it is basically what your are doing in the dockerfile. I have no idea why it does not show the error. Maybe vcpkg does something that makes this different.

from restinio.

eao197 avatar eao197 commented on June 2, 2024

I'm trying to check that behaviour on Windows with Boost. Maybe it will show the problem.

from restinio.

ngrodzitski avatar ngrodzitski commented on June 2, 2024

@eao197
Since v0.7.0 we have boost-asio ci (both system and prebuild=kindly build from sources by @MarkusJx). So I don't think dockerfile is necessary:
Ubuntu-22.04 (gcc-9, Debug, C++17, boost-system-package asio)
Ubuntu-22.04 (gcc-12, Release, C++20, boost asio)

Regarding windows and vcpkg I can take a look tomorrow, and since github runners by default have vcpkg in it we can think of adding a CI (win+vcpk) to avoid such issues future.

from restinio.

eao197 avatar eao197 commented on June 2, 2024

@ngrodzitski

I had used Dockerfiles before you've configured GitHub CI for v0.7, but the Dockerfile used RESTINIO_DEP_BOOST_ASIO=system. The new file uses RESTINIO_DEP_BOOST_ASIO=find.

I hope I can check Boost on Window today (without vcpkg).

from restinio.

eao197 avatar eao197 commented on June 2, 2024

It seems that this issue is related to vcpkg. I've tried Boost (1.83.0) on Windows and there are no problems.

I'll try to make a project that uses vcpkg's overlay for RESTinio.

from restinio.

eao197 avatar eao197 commented on June 2, 2024

I've repeated this problem with help of https://github.com/Stiffstream/restinio-crud-example/tree/restinio-0.7.0-vcpkg-overlay-boost-asio

There is a fix for the problem in the 0.7-dev-issue-201 branch (at the commit 1f0234d).

I think this fix will be a part of upcoming 0.7.1 release, but I'm afraid this may not happen on this week.

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.