Overview
Features
Download
Documentation
Community
Add-Ons & Services

Trouble w/ Poco & Android NDK static libs

Please post support and help requests here.

Trouble w/ Poco & Android NDK static libs

Postby chiefy » 16 Apr 2012, 17:07

I am having some issues, and I am not really sure what to do about it. My setup is I have downloaded the poco source to a temporary directory (~/Downloads/poco-1.4.3p1). I have the Android NDK setup properly, and I can build my static libs just fine. I then take those libs and put them into another directory where my Android project is. I *think* I have my Android.mk setup properly, but I am getting a lot of this when I try to build the project...

Code: Select all
/Users/chief/Downloads/poco-1.4.3p1/Net/src/HTTPChunkedStream.cpp:93: undefined reference to `Poco::NumberParser::tryParseHex(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int&)'
./obj/local/armeabi/poconet.a(HTTPChunkedStream.o): In function `Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, int)':


So I am assuming that it's referencing /Users/chief/Downloads/poco etc.. because when I do ./configure it sets POCO_BASE and POCO_BUILD to that directory.

My goal is to not have to build the Poco static libs inside my Android.mk modules. Is this the wrong way to go about it?

Thanks for any help!
chiefy
 
Posts: 2
Joined: 16 Apr 2012, 16:59

Re: Trouble w/ Poco & Android NDK static libs

Postby chiefy » 16 Apr 2012, 18:12

Well answering my own question (I think).

The issue appears to be in one of my Android.mk files. Inside the Android.mk for the main shared lib I had this:

Code: Select all
...
LOCAL_STATIC_LIBRARIES := png_static_prebuilt
LOCAL_STATIC_LIBRARIES += xml2_static_prebuilt
LOCAL_STATIC_LIBRARIES += jpeg_static_prebuilt
LOCAL_STATIC_LIBRARIES += curl_static_prebuilt

LOCAL_STATIC_LIBRARIES += pocofoundation_static_prebuilt
LOCAL_STATIC_LIBRARIES += poconet_static_prebuilt
LOCAL_STATIC_LIBRARIES += pocoutil_static_prebuilt
LOCAL_STATIC_LIBRARIES += pocoxml_static_prebuilt
...


I changed it to:

Code: Select all
...

LOCAL_WHOLE_STATIC_LIBRARIES := game_logic_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static

LOCAL_WHOLE_STATIC_LIBRARIES := pocofoundation_static_prebuilt
LOCAL_WHOLE_STATIC_LIBRARIES := poconet_static_prebuilt
LOCAL_WHOLE_STATIC_LIBRARIES := pocoutil_static_prebuilt
LOCAL_WHOLE_STATIC_LIBRARIES := pocoxml_static_prebuilt
...


And it seemed to work. I am still kind of confused on the difference between LOCAL_WHOLE_STATIC and LOCAL_STATIC libs.
chiefy
 
Posts: 2
Joined: 16 Apr 2012, 16:59


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron