That doesn't seem to help. It still gives the same error... any other tricks to try?airsoftsoftwair wrote: ↑Sun Jun 24, 2018 12:38 pmWell, constants are evaluated at preprocessor level and at that time #HPDF_COMP_ALL obviously isn't there because the plugin is loaded at runtime. So using constants made available by plugins can be a little tricky, but the following should work:jPV wrote: ↑Sat Jun 23, 2018 2:25 pm BTW. I just came up with a problem when I try to use LoadPlugin instead of @REQUIRE on MorphOS.
If I do:I get an error: Constant not found!Code: Select all
LoadPlugin("polybios") doc = pdf.CreateDocument() doc:SetCompressionMode(#HPDF_COMP_ALL)
So it doesn't recognize the #HPDF_COMP_ALL constant when I've loaded the plugin with the LoadPlugin function, but it does work if I change LoadPlugin to @REQUIRE.... what's wrong here? I'd like to load the plugin only if needed in this case...
Code: Select all
doc:SetCompressionMode(GetConstant("#HPDF_COMP_ALL"))
Polybios in android
Re: Polybios in android
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
Oops, looks like a bug, fixed now.
Code: Select all
- Fix: When loading plugins at runtime using LoadPlugin(), plugin constants weren't loaded at all
Re: Polybios in android
My program runs fine with Hollywood player when having the polybios.hwp in sdcard/Hollywood/Plugins folder.
But if I compile an apk it will complain about requiring the polybios.hwp
Where should I put the polybios.hwp in order to the compiled apk to find it?
Secondly, is it possible to use @REQUIRE "polybios", {Link = True} and get the apk compiler to include the hwp?
But if I compile an apk it will complain about requiring the polybios.hwp
Where should I put the polybios.hwp in order to the compiled apk to find it?
Secondly, is it possible to use @REQUIRE "polybios", {Link = True} and get the apk compiler to include the hwp?
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
That's described here.
No, that's not possible. You need to select the plugins to link to the APK in the Hollywood APK Compiler GUI.
Re: Polybios in android
Thanks, that worked.
I'm not sure how I could have missed noticing that plugin tab on the apk compiler
I'm not sure how I could have missed noticing that plugin tab on the apk compiler