Lazarus

Programming => Operating Systems => Android => Topic started by: GonzaloM on November 17, 2019, 11:06:12 pm

Title: Pascal and C - C++ for Android
Post by: GonzaloM on November 17, 2019, 11:06:12 pm
Hi there people! New guy here, greetings from Argentina!

I am also very new to Pascal and programming in general, so if you could please ELI5 this for me:

I'm planning on writing a Pascal wrapper for several libraries on C - C++. I know they can be compiled together using GCC (http://alignment.hep.brandeis.edu/Software/Mixing/Mixing_Manual.html (http://alignment.hep.brandeis.edu/Software/Mixing/Mixing_Manual.html)), and I also know FPC can compile for Android.

What I do not know is whether both things can be done at the same time. Could I write a Pascal + C/C++ application and compile it for Android, among other targets?

Thank you very much in advance!
Title: Re: Pascal and C - C++ for Android
Post by: dbannon on November 18, 2019, 01:38:48 am
maybe -

https://wiki.freepascal.org/Creating_bindings_for_C_libraries

Davo
Title: Re: Pascal and C - C++ for Android
Post by: lainz on November 18, 2019, 03:21:24 am
So you create a pascal header for a C library, then make the pascal code a library to use with Android Studio?

Or you will compile your android application with Lazarus?

If is the second, then I think it will be more easy, since you don't need to compile a .so for Android Studio and debug it, you will debug it with Lazarus.

"Dll inception", a dll requiring another dll, never did something like that so I can't say.
TinyPortal © 2005-2018