Module.xconfig to add static lib

You must Login before you can answer or comment on any questions.

I creating a module for extending titanium and required to add static libraries . It got it build properly on XCode and build.py. When I try to run it through Titanium run command it fails with System error 65. I have done search for the error on this forum and as per suggestion I tried modifying the module.xconfig file with all suggestions posted. But It doesn't work and build.log always complains about missing symbols.

Some of the suggestions I tried are:-

OTHER_LDFLAGS=$(inherited) -framework <lib Name> OTHER_LDFLAGS=$(inherited) -F "<Path to Lib directory> <lib names> OTHER_LDFLAGS=$(inherited) <library names with and without .a extention, name appended with l>

No Sucess in all cases. Please let me know how to add static library in module.xconfig?

Thanks,

— asked 9 months ago by Puneet Batra
2 Comments
  • the approach you have documented above is correct, can you provide more information around the errors you are seeing?

    — commented 9 months ago by Aaron Saunders

  • Hi puneet, can you provide some details related to build.log content which it complaints about missing symbols.

    — commented 9 months ago by Ashish Nigam

1 Answer

From the point of view of adding a static library you should need to add anything to OTHER_LDFLAGS. Adding the .a file to xcode project should work. Have a careful look at the log file and also try re-building after rm -rf build

Your Answer

Think you can help? Login to answer this question!