kemaldurhat / air-maps-ane

Automatically exported from code.google.com/p/air-maps-ane
0 stars 0 forks source link

Compilation failed while executing : ld64 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When compile my project i have this error:
"ld: library not found for -liconv
Compilation failed while executing : ld64"

Original issue reported on code.google.com by ynfo.a...@gmail.com on 7 Feb 2012 at 2:47

GoogleCodeExporter commented 8 years ago
Can you please also tell the IDE you are using to build your iOS AIR 
application. Also the AIR SDK version ?

Thanks,
Meet

Original comment by shahme...@gmail.com on 8 Feb 2012 at 10:45

GoogleCodeExporter commented 8 years ago
You are either trying to compile on a windows box or you are have the apple ios 
sdk pointing at the iphone simulator sdk. The correct path should be something 
like /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk 

Original comment by puck....@gmail.com on 8 Feb 2012 at 11:11

GoogleCodeExporter commented 8 years ago
If you are on a Mac you will have to provide -platformsdk <PATH_TO_IOS_SDK>

command to package an ipa :
adt 
-package
-target ipa-XXXXXXXX
-storetype pkcs12
-provisioning-profile <PATH_TO_MOBILE_PROVISION_FILE>
-keystore <PATH_TO_CERTIFICATE.P12_FILE>
-storepass <PASSWORD>
MY_App.ipa
<app descriptor file.xml>
<SWF_File.swf>
-extdir <Directory which contains extension .ane file>
-platformsdk <PATH TO IOS SDK eg 
:/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/>

Please see 
http://blogs.adobe.com/rajorshi/2011/11/16/ios5-support-for-airusing-external-sd
ks-to-package-apps/ for more details. 
Let me know if you still face any issues.

Original comment by shahme...@gmail.com on 8 Feb 2012 at 11:13

GoogleCodeExporter commented 8 years ago
Hello,
Is there a way to compile under Windows 7 system then ?

thx

Original comment by arth...@gmail.com on 13 Feb 2012 at 9:01

GoogleCodeExporter commented 8 years ago
If you are using AIR 3.1 then you must compile on Mac since you need to define 
the dependency on MapKit framework and specify the iOS SDK using -platformsdk 
argument.

If you are using AIR 3.0, you can compile it on Windows also since the AIR 3.0 
SDK linked in all available frameworks by default. Make sure to change the 
namespace to 2.5 in extensions.xml.

Let me know if you face any issues.

Original comment by shahme...@gmail.com on 15 Feb 2012 at 5:00

GoogleCodeExporter commented 8 years ago
I'm currently using FlashCS5.5 on WindowsXP to develop for the iPad. In trying 
to resolve the issue I encountered another error:

included native extension 'com.sampleNativeExtension' specifies namespace: 
'http:ns.adobe.com/air/extension/3.1' which is greater than the application 
namespace: 'http://ns.adobe.com/air/application/3.0'

Please forgive my ignorance, I'm completely new to air development (I'm sure I 
must be missing the obvious).

I would be most grateful for any assistance.

Original comment by michaelj...@googlemail.com on 28 Feb 2012 at 12:03

GoogleCodeExporter commented 8 years ago
Hi Michael,

The native extension is for use with AIR 3.1 and later and only on mac OS 
because you need to provide -platformSDK option while compiling the app. If you 
want to use it on WinXP and with AIR 3.0, email me offline and I can provide 
you the ane file. Or you can   compile new .ane file from sources with 2.5 ns 
for the extension.

Thanks,
Meet

Original comment by shahme...@gmail.com on 29 Feb 2012 at 7:21

GoogleCodeExporter commented 8 years ago
Thanks this project.
I'm use Flash Builder 4.6 to develop for Iphone App and alerdy compiling the 
App to ipa successful(Use Flash Builder inbuild Publish Porject,not use adt 
commond).But I install the app in Iphone,it's not display anything.What's wrong 
for me? 
Now is my code in this:

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" title="位置订车" initialize="intApp();" xmlns:maps="com.adobe.nativeExtensions.maps.*">
    <fx:Script>
        <![CDATA[
            import com.adobe.nativeExtensions.maps.LatLng;
            import com.adobe.nativeExtensions.maps.Map;
            import com.adobe.nativeExtensions.maps.MapEvent;

            import mx.core.UIComponent;

            private var googleMap:Map;

            private function intApp():void
            {
                var ui:UIComponent = new UIComponent();

                var viewPortMap:Rectangle = new Rectangle(0,0,800,600);
                googleMap = new Map();
                googleMap.viewPort = viewPortMap;

                googleMap.setSize(new Point (800, 600));
                googleMap.setCenter(new LatLng(31.2304167,121.4703361));
                googleMap.setMapType(0);
                googleMap.setZoom(17);

            }

        ]]>
    </fx:Script>
    <fx:Declarations>
    </fx:Declarations>

</s:View>

Thank's and very expect the touch function.

Original comment by zhang...@gmail.com on 1 Mar 2012 at 12:29

GoogleCodeExporter commented 8 years ago
set visible property to true : 

googleMap.visible=true;

Also it is preferable to set center after setting the zoom type, instead of 
other way round since the zoom function is approximate and might take you 
somewhere else instead of the expected LatLng.

googleMap.setZoom(17);
googleMap.setCenter(new LatLng(31.2304167,121.4703361));

Thanks,
Meet

Original comment by shahme...@gmail.com on 2 Mar 2012 at 2:11

GoogleCodeExporter commented 8 years ago
it works!!!!
and it works GREAT!
thank you so much!

Original comment by rares.fxstudio@gmail.com on 2 Mar 2012 at 2:31

GoogleCodeExporter commented 8 years ago
Thats Great !!!
Do contribute back if you end up adding any more functionality :)

Please open a new issue if the issue is not relevant to this existing thread 
"compilation failed". It would help new users browse over the issues.

Thanks,
Meet

Original comment by shahme...@gmail.com on 2 Mar 2012 at 3:18

GoogleCodeExporter commented 8 years ago
Yeah, well i am starting on Monday to look at the source code and my plan is to 
add more functionality! :)
But this is a HUGE step from the mapquest api i'vd been using :)
I will hit you back with my results for sure!
Thanks again Meet!

Original comment by rares.fxstudio@gmail.com on 2 Mar 2012 at 3:21

GoogleCodeExporter commented 8 years ago
When compile my project i have this error:(same error)
1.(win7, air3.1)
package : adt -package -target ipa-test-interpreter -storetype pkcs12 -keystore 
devkey.p12 -provisioning-profile TestAne.mobileprovision myApp.ipa F.xml F.swf 
AppIconsForPublish Default.png -extdir extensionsDir

   "ld: library not found for -liconv
    Compilation failed while executing : ld64"

2.(mac lion, air3.1)
package : adt -package -target ipa-test-interpreter -storetype pkcs12 -keystore 
devkey.p12 -provisioning-profile TestAne.mobileprovision myApp.ipa F.xml F.swf 
AppIconsForPublish Default.png -extdir extensionsDir

   "ld: library not found for -liconv
   Compilation failed while executing : ld64"

Thank.

Original comment by kissy...@gmail.com on 12 Mar 2012 at 7:45

GoogleCodeExporter commented 8 years ago
1)  you can't compile with air 3.1 on windows.
2) have you compiled with the platform.xml as well? you can read more about 
this here:
http://code.google.com/p/air-maps-ane/issues/detail?id=2

Original comment by rares.fxstudio@gmail.com on 12 Mar 2012 at 7:49

GoogleCodeExporter commented 8 years ago
Hi i'm trying to use it and i get the same error when compiling for iPhone (I'm 
on FB4.6, Air 3.1 on Win 7). You say above : "If you are using AIR 3.0, you can 
compile it on Windows also since the AIR 3.0 SDK linked in all available 
frameworks by default. Make sure to change the namespace to 2.5 in 
extensions.xml."

But where is the extensions.xml file ? cannot find it anywhere...

Original comment by corto75...@gmail.com on 23 May 2012 at 1:09

GoogleCodeExporter commented 8 years ago
you need to create it of course. check the link above .. you will see how the 
file should look like.

Original comment by rares.fxstudio@gmail.com on 23 May 2012 at 6:55

GoogleCodeExporter commented 8 years ago
i finally found it in the ane file. the problem is then to switch back to AIR 
3.0, that's not possible with Flex 4.6 it seems. I'm right ? Anyway i finally 
switched to MapQuest API for flex quite easy to integrate, a little bit slow 
but enough for my purpose.

Original comment by corto75...@gmail.com on 23 May 2012 at 7:41

GoogleCodeExporter commented 8 years ago

Original comment by shahme...@gmail.com on 25 Aug 2012 at 5:47