Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 33
Registered: ‎01-31-2013
My Device: BlackBerry Z10 LE
My Carrier: Airtel

Using Wikitude AR SDK with API level 10.2

[ Edited ]

I am developing an application using Wikitude SDK and BB API level 10.2 .The application fails to compile and execute on my deviceand give these errors:

 

make[2]: *** [o.le-v7-g/CascadesProject] Error 1
make[1]: *** [debug] Error 2
make: *** [Device-Debug] Error 2

 

 

The application builts and runs succesfully when using API level 10.0 but I require 10.2.

 

Thank you

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Using Wikitude AR SDK with API level 10.2

First of all when switching between versions make sure you do a clean and rebuild of your app.

 

If you still get the same result look above those lines and look for warnings or errors, post those if it isn't obvious.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 33
Registered: ‎01-31-2013
My Device: BlackBerry Z10 LE
My Carrier: Airtel

Re: Using Wikitude AR SDK with API level 10.2

I tried cleaning and rebuiling the project but the error exists.

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Using Wikitude AR SDK with API level 10.2

Are there no error or warning messages in the console above those final lines?


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 33
Registered: ‎01-31-2013
My Device: BlackBerry Z10 LE
My Carrier: Airtel

Re: Using Wikitude AR SDK with API level 10.2

[ Edited ]

apart from the above there are some warning for undefined variables in the Wikitude SDK file

 

../lib\libgameplay.a(Image.o): In function `gameplay::Image::create(char const*)':
Image.cpp:(.text+0x10e): undefined reference to `png_sig_cmp'
Image.cpp:(.text+0x1a4): undefined reference to `png_create_info_struct'
Image.cpp:(.text+0x1fc): undefined reference to `png_set_longjmp_fn'
Image.cpp:(.text+0x212): undefined reference to `png_set_longjmp_fn'
Image.cpp:(.text+0x26a): undefined reference to `png_set_read_fn'
Image.cpp:(.text+0x274): undefined reference to `png_set_sig_bytes'
Image.cpp:(.text+0x27c): undefined reference to `png_read_info'
Image.cpp:(.text+0x292): undefined reference to `png_get_image_width'
Image.cpp:(.text+0x29c): undefined reference to `png_get_image_height'
Image.cpp:(.text+0x2a6): undefined reference to `png_get_color_type'
Image.cpp:(.text+0x2d4): undefined reference to `png_set_gray_to_rgb'
Image.cpp:(.text+0x2e2): undefined reference to `png_set_gray_to_rgb'
Image.cpp:(.text+0x332): undefined reference to `png_set_strip_16'
Image.cpp:(.text+0x338): undefined reference to `png_set_packing'
Image.cpp:(.text+0x33e): undefined reference to `png_set_expand'
Image.cpp:(.text+0x346): undefined reference to `png_read_update_info'
Image.cpp:(.text+0x34e): undefined reference to `png_get_rowbytes'
Image.cpp:(.text+0x3ac): undefined reference to `png_read_image'
Image.cpp:(.text+0x3b6): undefined reference to `png_read_end'
Image.cpp:(.text+0x3ca): undefined reference to `png_destroy_read_struct'
Image.cpp:(.text+0x422): undefined reference to `png_create_read_struct'

 

 

but these warning are not present when I use the SDK with API 10.0

Developer
Posts: 33
Registered: ‎01-31-2013
My Device: BlackBerry Z10 LE
My Carrier: Airtel

Re: Using Wikitude AR SDK with API level 10.2

I was finally able to fix the problem:smileyhappy:

 

It was due to BlackBerry 10.2 using libpng1.6 instead of the depreciated 1.4.Linked the project to 1.4 and all is well