Question
I'm trying to integrate InMobi ads in my Tizen application. Before registering my application on InMobi, I wanted to test this feature using the .zip file mentioned in the documentation. I followed the guide at: https://developer.tizen.org/development/tizen-studio/extension-sdk/inmobi-tizen-ad-sdk-programing-guide#sdkupdate
When trying to run the NativeAdSample, I encountered an error: "unresolved inclusion adlib.h".
Later, after adding the ads framework from Package Manager, I still get these errors:
- undefined reference to 'adlib_init'
- undefined reference to 'adview_add_interstitial_ad'
- undefined reference to 'adview_interstitial_load'
- undefined reference to 'adview_interstitial_ad_register_callbacks'
The NativeAds sample included in the InMobi SDK works, but I can't get my project to work. How can I resolve these issues?
Answer
Problem Understanding
The user is facing two main issues when integrating InMobi Ads SDK:
- Missing header file (adlib.h) during compilation
- Linker errors for various adlib functions even after adding the framework
Solution Methods
-
Resolving Missing Header File:
- Locate the adlib.h file in the SDK package at:
/files/binary/data/platforms/tizen-2.4/mobile/rootstraps/mobile-2.4-device.core/usr/include - Copy this file to your project's include folder
- Locate the adlib.h file in the SDK package at:
-
Resolving Linker Errors:
- Add "adlib" to your project's external libraries in Project Settings
- Ensure your project's API version is 2.4 or higher (required by Tizen Store)
-
Alternative Approach:
- If issues persist, consider:
- Checking the working NativeAdSample for configuration differences
- Contacting Samsung support at tizen.ads@samsung.com
- Visiting the Tizen community forum for additional help
- If issues persist, consider:
Additional Tips
- Always verify your Tizen API version meets the minimum requirement (2.4+)
- Double-check all SDK files are properly installed through Package Manager
- The NativeAdSample working while your project fails suggests a configuration difference - compare build settings carefully