Hi
I have a cross compiler for linux on windows.how can i use it to cross compile a Qt 4 app for linux?
thanks
Printable View
Hi
I have a cross compiler for linux on windows.how can i use it to cross compile a Qt 4 app for linux?
thanks
Ok,Excuse me
It is the g++-linux for cygwin 2.5
And what is SPEC and how can i do the thing you mentioned?
thanks again
when qmake generates the make files it has to know for what plattform it should be done, so use QMAKESPEC or the -spec flag to set your environment: linux-***. then normaly run make under cygwin and all should be done.
I entered commands below in my project directory:
then inside the cygwin shell ,in the project directory,I entered the make command but it answered:Quote:
qmake -project
qmake -spec linux-g++ calc++.pro
what should i do?Quote:
Makefile:104: *** multiple target patterns. Stop.
And I thought I should use a cross-compiler like cygwins g++-linux.
And could you explain about the OS modes in qmake?
thanks
You know.I really need the answer of this question.thanks again
i think a cross-compiler is one which compiles for a particular target machine/architecture, not the host machine.. what is the target for your cross compiler
Its Linux and my goal is exactly compiling for a target OS.
I'm going to ask the dumb question here: Leaving Qt aside for the moment, have you been able to cross-compile a simple Hello World application on Windows for Linux?
With your last Makefile error you could try looking at the output ofto see what it is actually trying to do.Code:
make -n
It gives the same error with the difference that it prints 66 instead of 104 and it is the same with make itself,too.