B4A Library [Tool] Simple Library Compiler - Build libraries without Eclipse

Status
Not open for further replies.

Cassandro SCOLA

New Member
Licensed User
Longtime User
I have the following problem when you use the compiler package android.support.v7.app first error does not exist but I solved by inserting android-support-v7-appcompat.jar in my project / lib.
Now error R package does not exist, but in eclipse software works perfectly without error, how do I fix?
 

Cassandro SCOLA

New Member
Licensed User
Longtime User
thanks for the help but as mentioned in the eclipse project works, perhaps lacks some reference to this r.java file folders as photos attached from which we see that there is no error in eclipse.
 

Attachments

  • r.jpg
    83.6 KB · Views: 258

Cassandro SCOLA

New Member
Licensed User
Longtime User
thanks for the help but put r.java not give up work in B4A wait to finish the project directly in eclipse since so I have no problems. Thanks again'll use the compiler for other projects since it works well in other projects. Thanks again. greetings Cassander
 

Thuong

Member
Licensed User
Longtime User
Dear Erel
My company send to me SDK for android, but I don't see src folder
How to wrapper it to B4A library?
Can you help me
Thank
 

Attachments

  • ThinkGearBase.jar
    27.5 KB · Views: 280
  • ThinkGearPackX.jar
    75.6 KB · Views: 278

zolive33

Active Member
Licensed User
Longtime User
hi Erel,

There is a little problem with SLC and B4A v5.00. SLC cannot find the Basic4Android ini file.
The file "b4aV0.1.ini" is now called "b4xV5.ini".

Regards.
 

Attachments

  • Capture du 2015-06-08 23:14:26.png
    9.8 KB · Views: 246

zolive33

Active Member
Licensed User
Longtime User
hi Erel,

Another problem with SLC v1.03 : "unmappable character for encoding UTF-8".

Screenshot 1 : no problem with SLC v1.01
Screenshot 2 : Error with SLC v1.03
 

Attachments

  • Capture du 2015-06-10 23:11:48.png
    141.6 KB · Views: 242
  • Capture du 2015-06-10 23:13:15.png
    31.7 KB · Views: 241

zolive33

Active Member
Licensed User
Longtime User
Thank you, Erel. It's OK.

2 solutions with Eclipse :
- 1 : Windows > Preferences > General > Content Types, set UTF-8 as the default encoding for Java source file.
or
- 2 : Project properties > Resource / Text file encoding Other : UTF-8 (I prefer this option)
 

agb2008

Member
Licensed User
Longtime User
I am trying to convert non UI Java library to B4J - I've manage to get it compiled correctly and to appear in extralibs folder together with xml file for it
but I can't use it in B4J - it's listed in the libs option but can't see lib version assosiated with it. There were a message in this thread that one have to add

@Version(1.0)
@ShortName("rand")

But when I added this information to java class files I've got error message:

error: cannot find symbol
@Version(1.0)
^
symbol: class Version
1 error

Could you please advice what might be wrong ?
 

agb2008

Member
Licensed User
Longtime User
Erel,

Issue resolved. Proplem was related to the fact that I tried to create library for B4J and forgot to include this code:

B4X:
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;

After correction library compiled O.K. without errors related to "cannot find symbol"

But another issue noted - in my case java library source code cosist of many .java files. I've added following code
to every .java class source file such as:

B4X:
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;

@Version(1.0f)
@ShortName("rand")
@Author("Author Name")

And got error message... :-( Solution was to remove "@Version(1.0f)" from almost all .java files and leave only
one with such statement. Resulting compilation was O.K., library version displayed correctly and it is usable with
B4J (my assumption is that it would compile O.K. for B4A as well)
 

walterf25

Expert
Licensed User
Longtime User
Hi kiki78, i'm wrapped the same library for ffmpeg but i'm having some issues as i understand the binary files have to be built, as i have no idea how to do this i'm really stuck and i really need to finish this library for a project i have been working on. Were you successful on making the wrapper for this? if so would you be able to share it, or walk me through the process of building the binary files?

Please let me know!

Thanks,
Walter
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…