Giter Site home page Giter Site logo

sobjectizer-conan's People

Contributors

eao197 avatar zamazan4ik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sobjectizer-conan's Issues

Link issues with sobjectizer

Hi!

I try to use sobjectizer library from Conan (sobjectizer/5.7.0@stiffstream/stable).

I try to build this source file: https://github.com/Stiffstream/restinio/blob/master/dev/sample/async_handling_with_sobjectizer/main.cpp

Required libraries are downloaded and linked with the following piece of CMake code:

project(Example)

set(CMAKE_CXX_STANDARD 17)

# Download automatically, you can also just copy the conan.cmake file
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
    message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
    file(DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/v0.15/conan.cmake"
            "${CMAKE_BINARY_DIR}/conan.cmake")
endif()

include(${CMAKE_BINARY_DIR}/conan.cmake)

conan_cmake_run(REQUIRES
        jsonformoderncpp/3.6.1@vthiery/stable
        restinio/0.6.5@stiffstream/stable
        sobjectizer/5.6.2@stiffstream/stable
        OPTIONS sobjectizer:shared=False
        BASIC_SETUP
        CMAKE_TARGETS
        BUILD missing)

set(SRC
        main.cpp
)

add_executable(Example ${SRC})
target_link_libraries(Example Common CONAN_PKG::restinio CONAN_PKG::sobjectizer CONAN_PKG::jsonformoderncpp)

But during build I've got the following errors: https://pastebin.com/LNGWakU2

So you see some link errors for symbols which shall be accessible (I've checked sobjectizer source code - at least for my eyes all is fine with symbols).

I've ran compiler with -v and got the following output: https://pastebin.com/f9pjjvTZ

Conan recipe as an output for static Sobjectizer build have a library with name libso_s.5.7.0.a. And in detailed compiler report I cannot find such name - so library for some reasons are not linked. I am not a CMake expert but I think that's because library is not exported propeeeeeerly or something like that.

So my question is: how to fix it? If you need any additional info - just ping me here and I'll try to help.

Some details:

  • I've tried Clang 9 and GCC 9 - same errors.
  • Also I've tried sobjectizer/5.6.2@stiffstream/stable - same errors.
  • Tried conan_cmake_run's BASIC mode (with linking to ${CONAN_LIBS}) - same errors.

Environment details:

  • OS: Fedora 31.
  • Conan version: 1.23

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.