stiffstream / sobjectizer-conan Goto Github PK
View Code? Open in Web Editor NEWConan package for SObjectizer framework
License: BSD 3-Clause "New" or "Revised" License
Conan package for SObjectizer framework
License: BSD 3-Clause "New" or "Revised" License
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:
sobjectizer/5.6.2@stiffstream/stable
- same errors.conan_cmake_run
's BASIC
mode (with linking to ${CONAN_LIBS}
) - same errors.Environment details:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.