Win32 build in RhoMobile 5.0

Just wondering if others are seeing this when building for windows desktop(win32) in RhoMobile 5.0.   I had Visual Basic 2008 SP1 installed, but installed 2012 trial for now with SP 4, along with QT 5.1.1 for MSVC 2012 after I was unsuccessful getting QT 5.1.1 to build for 2008 to use with that version.  

When I go to build an existing project for win32 after updating the build.yml or create a new project from scratch and build, I am getting this error each time.   

Tasks: TOP => device:win32:production => build:win32

(See full trace by running task with --trace)

**** WARNING ******************************************************************

*******************************

   The following extensions do not have JavaScript API:

   zlib

   Use RMS 4.0 extensions to provide JavaScript API

*******************************************************************************

*******************************

I tried different versions of QT to see if that would help, but uncertain at this point.   My QTDir path is set properly.    Is there something else I need to do with QT to get this to work properly?

Thank you.

Jon Tara
That's not an error. It's a

That's not an error. It's a warning that you can ignore. It's just saying that zlib does't have a Javascript interface.

If it did not build, then you have some real error that you are not showing us.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jeffrey Cookle
Hi Jon,I have included more

Hi Jon,

I have included more of the error listed below.   I do see this, "Cannot open include file: 'QtGui/QAction': No such file or directory"  Is there an additional download for QT 5.1.1 that would include these files?  I don't see them under the C:\Qt\Qt5.1.1\5.1.1\msvc2012 directory structure.

Thanks!

        C:\Qt\Qt5.1.1\5.1.1\msvc2012\bin\rcc.exe -name simulator resources\simul

ator.qrc -o ..\..\..\win32\bin\RhoSimulator\resources\qrc_simulator.cpp

        cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD /O2 -W3 -w34100 -w34189 /wd4996

/wd4100 /wd4005 -GR -EHsc -DUNICODE -DWIN32 -DWIN32 -D_WINDOWS -DUNICODE -DQT_L

ARGEFILE_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -D_

CRT_SECURE_NO_WARNINGS -D_CRT_NON_CONFORMING_SWPRINTFS -D_NDEBUG -DNDEBUG -DQT_N

O_DEBUG -DRHODES_QT_PLATFORM -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB

-DQT_MULTIMEDIAWIDGETS_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QML_LIB -

DQT_MULTIMEDIA_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_SENSORS_LIB -DQT_NETWOR

K_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\.

." -I"..\..\ruby" -I"..\..\ruby\include" -I"..\..\..\wm\rhodes" -I"..\..\wtl80\i

nclude" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include

" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtWeb

KitWidgets" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\inc

lude\QtQuick" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\i

nclude\QtMultimediaWidgets" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.

1.1\msvc2012\include\QtOpenGL" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1

\5.1.1\msvc2012\include\QtPrintSupport" -I"..\..\..\..\..\..\..\..\..\..\..\..\Q

t\Qt5.1.1\5.1.1\msvc2012\include\QtQml" -I"..\..\..\..\..\..\..\..\..\..\..\..\Q

t\Qt5.1.1\5.1.1\msvc2012\include\QtMultimedia" -I"..\..\..\..\..\..\..\..\..\..\

..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtWebKit" -I"..\..\..\..\..\..\..\..\..\

..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtWidgets" -I"..\..\..\..\..\..\..\..

\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtSensors" -I"..\..\..\..\..\..\.

.\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtNetwork" -I"..\..\..\..\..\

..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtGui" -I"..\..\..\..\..\

..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtANGLE" -I"..\..\..\..\.

.\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\include\QtCore" -I"..\..\..\win

32\bin\RhoSimulator\generated_files" -I"..\..\..\win32\bin\RhoSimulator\generate

d_files" -I"..\..\..\..\..\..\..\..\..\..\..\..\Qt\Qt5.1.1\5.1.1\msvc2012\mkspec

s\win32-msvc2012" -Fo..\..\..\win32\bin\RhoSimulator\tmp\ @C:\Users\jmcookle\App

Data\Local\Temp\nm9ADE.tmp

QtMainWindow.cpp

..\..\..\win32\bin\RhoSimulator\generated_files\ui_QtMainWindow.h(15) : fatal er

ror C1083: Cannot open include file: 'QtGui/QAction': No such file or directory

DateTimeDialog.cpp

..\..\..\win32\bin\RhoSimulator\generated_files\ui_DateTimeDialog.h(14) : fatal

error C1083: Cannot open include file: 'QtGui/QAction': No such file or director

y

Generating Code...

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0

\VC\BIN\cl.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0

\VC\BIN\nmake.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: 'cd' : return code '0x2'

Stop.

rake aborted!

[rhosimulator_win32_build.bat "DESKTOPAPP_BUILD=1"]

Tasks: TOP => device:win32:production => build:win32

(See full trace by running task with --trace)

**** WARNING ******************************************************************

*******************************

   The following extensions do not have JavaScript API:

   zlib

   Use RMS 4.0 extensions to provide JavaScript API

*******************************************************************************

*******************************

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Hi JeffreyPreviously, were

Hi Jeffrey

Previously, were you able to build it successfully with RhoMobile 4.0

Thank you.

Visnupriya

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jeffrey Cookle
I was able to build properly

I was able to build properly for win32 in release 4.0 using Visual Studio 2008.   Support is looking into this for me because I migrated to Visual Studio 2012 and still ran into issues with building.    I had also tried to build QT 5 for Visual Studio 2008 and ran into some issues there as well.

Thanks!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
This issue needs help from

This issue needs help from Motorola. We will raise this issue with them to get an answer.

Visnupriya R

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Vinod Shankar K
HiHave you done setup as per

Hi

Have you done setup as per below 2 URL’s ?

http://docs.rhomobile.com/en/5.0.0/guide/nativesdksetup#setup-for-window...

http://docs.rhomobile.com/en/5.0.0/guide/build_win#setup

Also have you tried to build win32 application on cloud https://rms.rhomobile.com

To build on cloud you can follow instructions at http://docs.rhomobile.com/en/hosted/guide/welcome

Regards

Vinod Shankar

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Patrick Grimm
Same result here. Coming from

Same result here. Coming from a working RMS 4.0 setup with Visual Studio 2008.

Generating Code...

NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: 'cd' : return code '0x2'

Stop.

rake aborted!

[rhosimulator_win32_build.bat "DESKTOPAPP_BUILD=1"]

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jeffrey Cookle
I did give this to Motorola

I did give this to Motorola Support and the last update is that they are

still looking into this.  I will keep you posted if I hear something.

Thanks!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Patrick Grimm
I got back into looking at

I got back into looking at this and was able to build successfully.

I did the following:

  1. Installed VS2012
  2. Installed the latest Qt stuff as mentioned here http://docs.rhomobile.com/en/5.0.0/guide/nativesdksetup#setup-for-windows-desktop
  3. Checked my ENV PATH to insure the new VS stuff was present (it was)
  4. Checked Environmental Variable QTDIR
  5. From command line in project folder did a rake clean:win32 (this is necessary if you have built with a previous version)
  6. Built with rake run:win32

No more fatal build errors!

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Jeffrey Cookle
I started over with the

I started over with the VS2012 install and everything does work now with 2012.    Just wondering if anyone was able to build QT 5 for VS2008 and get it to work with VS 2008?

Thanks!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments