Infos on externals

Are you developing an External using the LiveCode Externals SDK?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
giovanni_c
Posts: 23
Joined: Sat Sep 08, 2012 10:50 am

Infos on externals

Post by giovanni_c » Fri Oct 10, 2014 5:04 pm

Hi all!
I need a little help from you about building externals.
Some months ago I've tried to generate a little iOS external just to try.
I've written a simple function that returns the same parameter it receives. Quite useless, I know :D, but it was just to try!

After few months and a lot of changes in XCode side, right now I'm tring to recompile the external and I've encountered some problems:
- at first step no build was done; g++ symlink to gcc was not found in a particular path; I've found it simple to recreate the symlink and the build goes on;
- after this I've the following error:

Code: Select all

Cast from pointer to smaller type 'int' loses information
at this line of code of text_ext.lcidl.mm:

Code: Select all

r_handle = (int)t_bitmap;
after a little of googling I've tried to change that line to

Code: Select all

r_handle = *(int *)t_bitmap;
and the error is no more there. Build successfull but...

- i've a lot of warnings:

Code: Select all

Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'unsigned int'
Cast to 'Mobile_Bitmap *' from smaller integer type 'int'
Trying to use my external nothing happens... the useless function I've written is not triggered.
With XCode 5.1.1 I'm sure it worked correctly.
Someone can give me information about this?

Does the external SDK needs to be updated to work with XCode 6?

Thank you very much!

giovanni_c
Posts: 23
Joined: Sat Sep 08, 2012 10:50 am

Re: Infos on externals

Post by giovanni_c » Thu Oct 16, 2014 6:47 am

Hi all,
in these days I've tried to solve this problems but the result is always the same: my external is built but Livecode tells me that is not valid for the architecture and ignore it...
So I've tried to start a new external from scratch and... surprise! XCode says me that my project has no targets and the SDK (what SDK?!) is missing. I've reinstalled the LC iOS SDK. Nothing is changed.
Someone can help me about this? I need to reinstall XCode?
Thank you very much...

giovanni_c
Posts: 23
Joined: Sat Sep 08, 2012 10:50 am

Re: Infos on externals

Post by giovanni_c » Thu Oct 16, 2014 1:55 pm

Reinstalled XCode and LC iOS SDK with no success...
Creating a new project based on LC External will result in a project without targets and SDK missing...
Thank you to everyone who wants to help me to solve this!

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Infos on externals

Post by monte » Thu Oct 16, 2014 11:47 pm

This problem is occurring because you are building for 64 bit rather than 32. You need to change the device in the top left corner of the window.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

giovanni_c
Posts: 23
Joined: Sat Sep 08, 2012 10:50 am

Re: Infos on externals

Post by giovanni_c » Fri Oct 17, 2014 12:36 am

Hi Monte, thank you very much for your reply!
Your suggestion did the trick for me!
After selecting a device (such as iPad) instead of "iOS Device" my useless external works perfectly!!!
Thank you again

giovanni_c
Posts: 23
Joined: Sat Sep 08, 2012 10:50 am

Re: Infos on externals

Post by giovanni_c » Fri Oct 17, 2014 11:53 am

Hi Monte, thank to your suggestion I'm able to generate the binaries for my little external but my other problem is always there.
When I try to create a new external I always have "0 targets, missing base SDK" message under my project name.
No devices available for build and no chance to go on...

Sorry for my questions! I'm a really newbye on external management
Thank you

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Infos on externals

Post by monte » Mon Oct 20, 2014 11:39 pm

I noticed that the other day when creating a new external in Xcode 6. I haven't investigated yet but creating an external in Xcode 5 and then opening in 6 worked fine.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

giovanni_c
Posts: 23
Joined: Sat Sep 08, 2012 10:50 am

Re: Infos on externals

Post by giovanni_c » Fri Oct 24, 2014 1:40 pm

Thank you, Monte.
Right now I think the best thing is to edit an old project for creating a new one!

Post Reply

Return to “Building Externals/Plugins”