Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios build fails #5

Open
MatthijsKamstra opened this issue Jan 7, 2015 · 11 comments
Open

ios build fails #5

MatthijsKamstra opened this issue Jan 7, 2015 · 11 comments

Comments

@MatthijsKamstra
Copy link

I wanted to test your extension on ios, but it failed:
(The example code I used is from https://github.com/josuigoa/CameraMic/tree/master/test_project)

→ lime test ios 
Error: Source path "/usr/lib/haxe/lib/CameraMic/git/ndll/IPhone/libcameramic.iphoneos.a" does not exist

Which is correct, there is no IPhone-folder in ndll-folder.
There is probably a command that I need to execute to build that, but I don't know which one.

@josuigoa
Copy link
Owner

josuigoa commented Jan 7, 2015

I've been changing the directories structure and I accidentally removed the .a files. Try again please

@MatthijsKamstra
Copy link
Author

almost there, I now get this error:

Undefined symbols for architecture arm64:
  "_cameramic_register_prims", referenced from:
      _main in Main.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@josuigoa
Copy link
Owner

josuigoa commented Jan 8, 2015

I can't try today but if you want, remove the existing files under the ndll/iPhone directory. Then, recreate the files running the lime rebuild CameraMic ios command

@MatthijsKamstra
Copy link
Author

Error: ./common/CameraMic.cpp:1:10: fatal error: 'Utils.h' file not found
#include "Utils.h"

@josuigoa
Copy link
Owner

josuigoa commented Jan 8, 2015

the CameraMic.cpp file was created automatically when the extension was created. Actually I don't use it, I removed it and it's reference in the Build.xml file.

@MatthijsKamstra
Copy link
Author

we are getting closer:
I deleted the Iphone folder, and rebuilded with lime rebuild CameraMic ios
and tried to build it for ios and got this error:

Undefined symbols for architecture arm64:
  "cameramic::StartRecordingAudio()", referenced from:
      cameramic_startrecordingaudio(_value*) in libcameramic.a(e8ed95cb_ExternalInterface.o)
  "cameramic::PlayAudio(char const*)", referenced from:
      cameramic_playaudio(_value*) in libcameramic.a(e8ed95cb_ExternalInterface.o)
  "cameramic::StopRecordingAudio()", referenced from:
      cameramic_stoprecordingaudio() in libcameramic.a(e8ed95cb_ExternalInterface.o)
  "cameramic::TakePhoto()", referenced from:
      cameramic_takephoto(_value*) in libcameramic.a(e8ed95cb_ExternalInterface.o)
  "cameramic::SetAppFilesDirectory(char const*)", referenced from:
      cameramic_setappfilesdirectory(_value*) in libcameramic.a(e8ed95cb_ExternalInterface.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@josuigoa
Copy link
Owner

Hi!

I've run the lime rebuild CameraMic ios and then lime test iosand I get the error of no having the certificate. At this moment I haven't the certificate, but I think I must get the error you say before the certificate error.

I've updated again the recompiled *.a files.

@hcwdikk
Copy link

hcwdikk commented Feb 19, 2015

I am having the same problem on ios :( Android works fine but on ios it gives me two errors symbol(s) not found for architecture armv7 and symbol(s) not found for architecture arm64. Rebuilding extension doesn't fix this. *.a files included in repository don't work either. Maybe this is a problem with newest openfl/lime?

@josuigoa
Copy link
Owner

It's been a while since I tried on iOS... I have no license to try it now but I would like to buy one from now to summer, I'll try then. Sorry about that 😞

@jeichelbaum
Copy link

having the same issue, iOS build fails for me because of the issue described by @hcwdikk

@josuigoa
Copy link
Owner

I did this library some years ago, for old OpenFL versions and it's a long time since I changed something here. Probably I'll rewrite this library from scratch but I won't update it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants