-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to build example #1223
Comments
@Crazyokd, you're missing the headers for rapidjson.
|
But isn't rapidjson in subprojects? in subprojects/rapidjson-1.1.0/meson.build, we have rapidjson_inc = include_directories('include')
rapidjson_dep = declare_dependency(include_directories: rapidjson_inc) in meson.build, we add it to if get_option('PISTACHE_USE_RAPIDJSON')
deps_libpistache += dependency('RapidJSON', fallback: ['rapidjson', 'rapidjson_dep'])
endif int src/meson.build, we add it to libpistache = library(
'pistache',
sources: pistache_common_src + pistache_server_src + pistache_client_src,
cpp_args: public_args,
include_directories: incl_pistache,
dependencies: deps_libpistache,
install: get_option('PISTACHE_INSTALL'),
version: version_str,
pic: get_option('b_staticpic')
)
pistache_dep = declare_dependency(
compile_args: public_args,
include_directories: incl_pistache,
link_with: libpistache
) in examples/meson.build, we use foreach example_name : pistache_example_files
executable('run'+example_name, example_name+'.cc', dependencies: [pistache_dep, threads_dep])
endforeach |
And if I use foreach example_name : pistache_example_files
executable('run'+example_name, example_name+'.cc', dependencies: [pistache_dep, threads_dep, dependency('RapidJSON', fallback: ['rapidjson', 'rapidjson_dep'])])
endforeach I can compile it! |
I guess the libpistache do not really use |
I use meson and setup with below option:
meson setup build \ -DPISTACHE_USE_RAPIDJSON=true \ -DPISTACHE_BUILD_EXAMPLES=true \ -DPISTACHE_BUILD_DOCS=true \ -DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=true \ --prefix=`pwd`/install
but after I execute
meson compile -C build
. I got:From compile command, I can't find corresponding
-I
option. but I checked meson configure and do not find any problem.The text was updated successfully, but these errors were encountered: