qin zhou
|
回复: RE: Re: 回复: Re: qmake-qnx
|
qin zhou
05/18/2012 9:20 AM
post93186
|
回复: RE: Re: 回复: Re: qmake-qnx
this the qmake_qnx i got
@if "%1"=="" goto help
@call pwd >temp.bat
@set /p PROJ_DIR= <temp.bat
@del temp.bat
::@echo %PROJ_DIR%
@FOR %%i IN (%PROJ_DIR%) DO @SET PROJ_NAME=%%~nxi
::@echo project name: %PROJ_NAME%
::echo %1
@if "%1"=="arm" set ARCH_DIR="armle"
@if "%1"=="armv7" set ARCH_DIR="armle-v7"
@if "%1"=="i386" set ARCH_DIR="x86"
::@echo %ARCH_DIR%
qmake -project
@echo QT += core gui script declarative %QT_MODULES% >>%PROJ_NAME%.pro
@echo OBJECTS_DIR += %ARCH_DIR% >>%PROJ_NAME%.pro
@echo TARGET = %ARCH_DIR%/%PROJ_NAME% >>%PROJ_NAME%.pro
@echo QMAKE_CXXFLAGS += %QT_CXXFLAGS% >>%PROJ_NAME%.pro
qmake -spec unsupported/qws/qnx-%1-g++ %PROJ_NAME%.pro
@goto exit
:help
@echo .
@echo %0 runs both "qmake -project" and "qmake" resulting in a Makefile
@echo .
@echo First parameter must be desired architecture - i386 or arm or armv7
@echo .
@echo .
:exit
in the .bat,is the sentence in red the reason?
i have installed qt-creator-win-opensource-2.4.1.exe and qt-win-opensource-4.8.1-mingw.exe, need i uninstall them all
for the first?!
2012-05-18
qhzbit
发件人:Dennis Kelly
发送时间:2012-05-18 20:59
主题:RE: Re: 回复: Re: qmake-qnx
收件人:"general-qt@community.qnx.com"<general-qt@community.qnx.com>
抄送:
According to the picture, you are still running...
qmake_qnx i386
then
qmake -project
Don't run "qmake -project" - run "make" after "qmake_qnx i386" as in the .pdf.
-----Original Message-----
From: qhzbit [mailto:community-noreply@qnx.com]
Sent: Friday, May 18, 2012 8:51 AM
To: general-qt
Subject: 回复: Re: 回复: Re: qmake-qnx
thank you for your quick reply ,this is the best answer i have got.the "make" is really the first step ,but i encounter
the new problem
2012-05-18
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-18 20:34
主题:Re: 回复: Re: qmake-qnx
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Have you installed QNX Momentics? This "make" has to be first in your path.
C:\QNX650\host\win32\x86>usr\bin\make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This program built for Windows32
C:\QNX650\host\win32\x86>
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93182
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93183
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93185
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
|
|
|