Using pre-built libs drags in shared rather than static lib #1487
Unanswered
stevenhaggerty
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm trying to use the suggested method of linking with oboe.
But after running my app, my app crashes with:
I don't want my app loading another shared library, I want oboe to link as a static lib. The only shared lib I want is my app.
I assumed pre-built libraries meant simply a static lib, rather than a shared one. Is there a way of making it so,
without having to compile all the oboe source code myself?
Also, why don't the any of the sample projects use the suggested method of linking? Surely they should
if it's the preferred method.
Thanks,
Steven Haggerty.
Pertinent part of cmakelists.txt for reference:
add_library( app SHARED ${appsource} )
find_package (oboe REQUIRED CONFIG)
find_library( log-lib log )
target_link_libraries( app raz0r android EGL GLESv2 GLESv1_CM log oboe::oboe )
Beta Was this translation helpful? Give feedback.
All reactions