Recent

Author Topic: Pascal and C - C++ for Android  (Read 1565 times)

GonzaloM

  • Newbie
  • Posts: 1
Pascal and C - C++ for Android
« 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), 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!

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Pascal and C - C++ for Android
« Reply #1 on: November 18, 2019, 01:38:48 am »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Pascal and C - C++ for Android
« Reply #2 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