Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I want to write code in CLion or maybe Visual Studio IDE, but I found no ready solutions for such cross-platform development. My app needs only basic GUI things (buttons, text areas, alert dialogs etc.) as well as working with files and http requests, and should consume as little CPU & memory as possible. Is there a way to write same code and then use it, maybe directly in win32 api (for Windows) and Android NDK (for Android)? Or is there any lightweight framework that has ready solution?

P.S. Rad Studio has something, that is similar to what I need https://www.embarcadero.com/ru/products/rad-studio but its default app uses a lot of memory and includes a lot of libraries I don't need (Maybe there is some way to fix this?).

PLEASE provide me with detailed steps to creating and compiling such project, maybe some examples and docs too

What I have tried:

Rad Studio (consumes much memory, a lot of unnecessary libraries in default project)
Posted
Updated 15-Sep-20 6:37am
v3
Comments
Rick York 15-Sep-20 11:46am    
You might want to consider Qt.
Sergiy P 15-Sep-20 11:59am    
Thank you for your answer!
Can I build .exe and .apk from one code in Qt? Or do I need two parts of project (Wnidows and Android) anyways?
I see example for android https://doc.qt.io/qtcreator/creator-build-example-application.html
Do you know any cross-platform example or docs?
[no name] 15-Sep-20 12:36pm    
The search for the "perfect" example. If there were any, everyone would be using them and they would be known as a "pattern". They don't exist; except when you build them yourself ... from the other (imperfect) examples out there.
Richard MacCutchan 15-Sep-20 12:39pm    
You can do it with C# and Xamarin. See also win32 android - Google Search[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900