Hi to all,
I like to explain my problem to build the .exe for windows embedded CE.Now i'm facing problem is i cannot build it always says that
please , set QTDIR enviroment variable to qt root directory path
and following this please help to build the app
http://docs.rhomobile.com/en/4.1.0/guide/nativesdksetup#setup-for-windo…
I have Installed following things
1)Windows 7 64 bit
2)MotorolaRhoMobileSuite4.1.1
3) Build.yml
sdkversion: "4.1.0"
name: "barcodescanner"
version: "1.0"
vendor: "rhomobile"
build: "debug"
applog: "rholog.txt"
iphone:
configuration: "Release"
sdk: "iphonesimulator7.0"
provisionprofile:
codesignidentity: "iPhone Developer"
entitlements:
BundleIdentifier: "com.rhomobile.barcodescanner"
BundleURLScheme: "barcodescanner"
wp8:
productid: "fe47ba00-156e-0132-d4cc-0260a0061001"
android:
manifest_template: "AndroidManifest.erb"
version: "2.3.3"
wm:
extensions:
- barcode-moto
app_type: "rhoelements"
capabilities:
- motorola
env:
paths:
nsis: "C:/Program Files (x86)/NSIS/makensis.exe"
win32:
msvc: 2012
4)PATH :
PATH=C:\Perl\site\bin;C:\Perl\bin;C:\ProgramData\Oracle\Java\javapath;C:\Motorol
aRhoMobileSuite4.1.1\redis-2.4.0;C:\MotorolaRhoMobileSuite4.1.1\ruby\bin;C:\Moto
rolaRhoMobileSuite4.1.1\devkit\bin;C:\MotorolaRhoMobileSuite4.1.1\devkit\mingw\b
in;C:\MotorolaRhoMobileSuite4.1.1\make-3.81\bin;C:\oraclexe\app\oracle\product\1
0.2.0\server\bin;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online
Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online
Services;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Syst
em32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\
Common Files\Lenovo;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;
C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth
Software\syswow64;C:\Program Files (x86)\Hewlett-Packard\HP SimplePass Identity
Protection\x64;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Heroku\bi
n;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\WinMerge;c:\Program File
s (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Serv
er\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\xampp\
php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs\;C:\Program Files (
x86)\QuickTime\QTSystem\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\bi
nn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Qt\Qt5-rhoxp\bin;C:
\Qt\Qt5-ssl\bin;C:\instantclient_11_2\oci.dll;C:\xampp\php;C:\Windows;C:\Windows
\System32;C:\Python27;C:\ProgramData\ComposerSetup\bin;;C:\Users\user\AppData\Lo
cal\.meteor;C:\Users\user\AppData\Roaming\npm;C:\Perl\bin;C:\MotorolaRhoMobileSu
ite4.1.1\ruby\bin;C:\Python;
5)Qmqke.conf
#
# qmake configuration for win32-msvc2012
#
# Written for Microsoft Visual C++ 2012
#
MAKEFILE_GENERATOR = MSBUILD
QMAKE_PLATFORM = win32
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
DEFINES += UNICODE WIN32
QMAKE_COMPILER_DEFINES += _MSC_VER=1700 _WIN32
contains(QMAKE_TARGET.arch, x86_64) {
DEFINES += WIN64
QMAKE_COMPILER_DEFINES += _WIN64
}
QMAKE_COMPILER = msvc
QMAKE_CC = cl
QMAKE_LEX = flex
QMAKE_LEXFLAGS =
QMAKE_YACC = byacc
QMAKE_YACCFLAGS = -d
QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t -D_USING_V110_SDK71_
QMAKE_CFLAGS_WARN_ON = -W3
QMAKE_CFLAGS_WARN_OFF = -W0
QMAKE_CFLAGS_RELEASE = -O2 -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi
QMAKE_CFLAGS_DEBUG = -Zi -MDd
QMAKE_CFLAGS_YACC =
QMAKE_CFLAGS_LTCG = -GL
QMAKE_CFLAGS_MP = -MP
QMAKE_CFLAGS_SSE2 = -arch:SSE2
QMAKE_CFLAGS_SSE3 = -arch:SSE2
QMAKE_CFLAGS_SSSE3 = -arch:SSE2
QMAKE_CFLAGS_SSE4_1 = -arch:SSE2
QMAKE_CFLAGS_SSE4_2 = -arch:SSE2
QMAKE_CFLAGS_AVX = -arch:AVX
QMAKE_CFLAGS_AVX2 = -arch:AVX
QMAKE_CXX = $$QMAKE_CC
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
QMAKE_CXXFLAGS_MP = $$QMAKE_CFLAGS_MP
QMAKE_CXXFLAGS_STL_ON = -EHsc
QMAKE_CXXFLAGS_STL_OFF =
QMAKE_CXXFLAGS_RTTI_ON = -GR
QMAKE_CXXFLAGS_RTTI_OFF =
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
QMAKE_CXXFLAGS_EXCEPTIONS_OFF =
QMAKE_INCDIR =
QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $
3 Replies
My target is CE only but while for openssl.se i need to install Qt right.
We are trying to Develop the app for Motorola Windows CE 6.
System Spec
1) Window 7
2) Visual studio 2012
3) Qt 4.7.4
4) PATH:
PATH=C:\Perl\site\bin;C:\Perl\bin;C:\ProgramData\Oracle\Java\javapath;C:\MotorolaRhoMobileSuite4.1.1\redis-2.4.0;C:\MotorolaRhoMobileSuite4.1.1\ruby\bin;C:\MotorolaRhoMobileSuite4.1.1\devkit\bin;C:\MotorolaRhoMobileSuite4.1.1\devkit\mingw\bin;C:\MotorolaRhoMobileSuite4.1.1\make-3.81\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft OnlineServices;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\BluetoothSoftware\syswow64;C:\Program Files (x86)\Hewlett-Packard\HP SimplePass IdentityProtection\x64;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\WinMerge;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\QuickTime\QTSystem\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\instantclient_11_2\oci.dll;C:\xampp\php;C:\Windows;C:\Windows\System32;C:\Python27;C:\ProgramData\ComposerSetup\bin;;C:\Users\user\AppData\Local\.meteor;C:\Users\user\AppData\Roaming\npm;C:\Perl\bin;C:\MotorolaRhoMobileSuite4.1.1\ruby\bin;C:\Python;C:\MotorolaRhoMobileSuite4.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-4.1.1\lib\extensions\openssl.so\ext\win32\bin;C:\Qt\4.7.4\bin;C:\Program Files (x86)\Microsoft VisualStudio 9.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\bin;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\PlatformSDK\bin;C:\Program Files (x86)\Microsoft Visual Studio 9.0\SDK\v3.5\bin;
I have Configured by using the following url.
1)http://rhomobile.qiniudn.com/guide/build_win2)http://docs.rhomobile.com/en/4.1.0/guide/build_win#setup-qt-build-envir…
Current problem is while try to build
C:\MotorolaRhoMobileSuite4.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-4.1.1\lib\commonAPI\coreapi\ext>if "win32" == "win32" (call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\..\..\VC\vcvarsall.bat" x86 cd platform\qt rake --trace)** Invoke default (first_time)** Invoke build:all (first_time)** Invoke build:config (first_time)** Execute build:config** Execute build:allPWD: C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.1.1/lib/commonAPI/coreapi/ext/platform/qtCMD: C:\Qt\4.7.4/bin/qmake -o Makefile -r -spec win32-msvc2012 coreapi.pro CONFIG-=debug CONFIG+=releaseCould not find mkspecs for your QMAKESPEC(win32-msvc2012) after trying: C:\Qt\4.7.4\mkspecsError processing project file: coreapi.prorake aborted![C:\Qt\4.7.4/bin/qmake -o Makefile -r -spec win32-msvc2012 coreapi.pro CONFIG-=debug CONFIG+=release ]
It sounds like you are trying to setup the win32 desktop build. You do not want that if you are targeting a CE device. You will want to target Windows Mobile. A Rho Windows Mobile app will also run on a supported CE device.
If you really are trying to target a desktop Windows OS, it sounds like you are missing the QTDIR environment variable.
Install Qt libraries 5.1.1 for Visual Studio 2012 – 511 MB (or build Qt libraries 5.1.1 for Visual Studio 2008)
Qt libraries for Visual Studio 2012 binary package is incompatible with Windows XP, so if you need Windows XP compatibility, you should follow these instructions to build XP-compatible binaries.
Create new (or update existing) system environment variable QTDIR and make sure it points to root folder of the installed Qt libraries, e.g. C:\Qt\Qt5\5.1.1\msvc2012
You do not need QT at all for a Windows Mobile/CE build.