Recent

Author Topic: Error: The symbol can't be exported from a library  (Read 7515 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Error: The symbol can't be exported from a library
« on: January 11, 2012, 03:24:40 pm »

Hi all,
I have created a simple android application while compiling the app, it complains the subjected error.
Simply copy the android directory without any changes.
Does it necessary to change the "AndroidManifest.xml" to take effect?
Thanks.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error: The symbol can't be exported from a library
« Reply #1 on: January 11, 2012, 04:31:30 pm »
strange, could you attach the project? You need to check and modify if necessary all files inside android/ but not doing it shouldn't affect the library build process, only the APK build process.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Error: The symbol can't be exported from a library
« Reply #2 on: January 11, 2012, 05:42:17 pm »

Here is the zip file.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error: The symbol can't be exported from a library
« Reply #3 on: January 11, 2012, 07:01:18 pm »
The entire uses clause is missing from WApplet.lpr

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Error: The symbol can't be exported from a library
« Reply #4 on: January 12, 2012, 10:25:17 am »

Thanks Felipe for your assistance, i rearranged the source code but some problem with the customdrawn components.
Do I attach the application and the log.txt here or open a new bug report?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error: The symbol can't be exported from a library
« Reply #5 on: January 12, 2012, 10:55:41 am »
Just attach them here.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Error: The symbol can't be exported from a library
« Reply #6 on: January 12, 2012, 01:02:42 pm »

Here are the attachments.
P.S. What is the method to close the application (terminate)?
Thanks

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error: The symbol can't be exported from a library
« Reply #7 on: January 16, 2012, 11:51:39 am »
Umm, I am having some issues testing this:

1> I created a non-android LPI and the buttons and labels work fine.

2> You zip file has no "android" directory, so I cannot build the APK

3> Please in the future add laz_synapse as a dependency to the project instead of adding raw paths. Right now this wont be a good idea, because the package refuses to build for arm-linux, but I just sent a patch to synapse to fix this. I hope they will apply it soon.

Quote
P.S. What is the method to close the application (terminate)?

Indeed it isnt yet implemented, I will implement as Application.Terminate and main form closing.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error: The symbol can't be exported from a library
« Reply #8 on: January 17, 2012, 04:29:30 pm »
I implemented TApplication.Terminate in rev 34765

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error: The symbol can't be exported from a library
« Reply #9 on: January 17, 2012, 08:49:56 pm »
Explaining a little better:

Application.Terminate in Android will kill the application immediately
Application.Minimize in Android will act like pushing the home button. Send the app to the background.

Android does not allow to easily make a clean kill. Implementing one would be unreliable and overtly complex. So we can either do a dirty kill or minimize it.

 

TinyPortal © 2005-2018