V
V
Vyacheslav2018-06-07 20:05:50
Qt
Vyacheslav, 2018-06-07 20:05:50

How to compile a C++ project for different platforms?

Let's say I want to create my own simple framework like Qt, so that I can compile C ++ projects for androin, ios etc on it. How it works? What do you need to know for this? How difficult / time consuming is it? Answers to any of these questions will do.
And is it possible to compile "hello word" on android without making a titanic effort?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2018-06-07
@jcmvbkbc

is it possible to compile "hello word" on android without making a Herculean effort?

The easiest way to do this is to build the application with a linux compiler on the target CPU statically.

I
Ighor July, 2018-06-07
@IGHOR

Each target OS needs its own compiler, which in turn is compiled for your working OS to create binaries for the target OS.
You can read about crosstool-ng or get a compiled gcc compiler for your needs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question