5 Replies Latest reply on Oct 12, 2015 9:41 PM by Mark Nongkhlaw

    What's with zlib?

    Mark Nongkhlaw

      I try rake run:win32 but I get :

       

      The following extensions do not have JavaScript API:

      zlib

      Use RMS 4.0 extensions to provide JavaScript API

       

      My RMS version : 5.1.1

      I don't use zlib anywhere in my project. Not sure what zlib is anyway. Does it refer to the Zbar library used for barcode in WM?

       

      Addendum : Was under the impression that it had to do something with NullSoft Scriptable Install System (NSIS)'s zip-to-exe function, although there wasn't anything in the docs about it here : Rhomobile | Native SDK Setup  I still went ahead and installed the 3.0b2 version, but it looks like its not the solution. I get the same error above.

        • Re: What's with zlib?
          Jon Tara

          Messages like:

           

            The following extensions do not have JavaScript API:

           

          ...are not errors. They are just informative. It is just saying you have included an extension that doesn't have a Javascript API, so you will only be able to use this extension from Ruby. You will get a message like this if you use any extensions that weren't designed for a new (4.0+) commonAPI specs.

           

          zlib is an open-source data compression library.

           

          Did not not ask for the zlib extension in build.yml?

            • Re: What's with zlib?
              Mark Nongkhlaw

              No, I didn't use any extensions like zlib in build.yml. I don't think it has anything to do with it, though. My problem is extremely similar to this post : https://developer.motorolasolutions.com/message/81037 but I dont see the actual cause there too.

               

              In my case, VS2012 was already there before I installed RMS. Does the order of install matter? I think it shouldn't. Maybe I need the SP1 for VS2012. Will check it out again today.

               

              BTW, NSIS is mentioned in the docs : http://docs.rhomobile.com/en/5.2.2/guide/build_win

               

              I was looking at the wrong place.

                • Re: Re: What's with zlib?
                  Jon Tara
                  I try rake run:win32 but I get :


                  Is there more to the "but" than that warning message?


                  It's NOT an error. It does not stop the build. If your project doesn't build that isn't the cause. (And since you say "try", I assume it does not build.)


                  There are no other error messages?

                    • Re: What's with zlib?
                      Mark Nongkhlaw

                      It does not build.

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                      ** Execute default

                      cd d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1

                      -$TIME$- message [ process extension "coreapi" FINISH ] time is { 2015-10-13T03:

                      49:58Z } milliseconds from start (45599)

                      -$TIME$- message [ process extension "zlib" START ] time is { 2015-10-13T03:49:5

                      8Z } milliseconds from start (45599)

                      {"entry"=>"Init_zlib", "libraries"=>["zlib"], "android"=>{"exttype"=>"rakefile"}

                      }

                      cd d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/lib/extensi

                      ons/zlib

                      start read reg key

                      end read reg key

                      cd d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1

                       

                       

                      PWD: d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/lib/exten

                      sions/zlib/ext

                      CMD: build.bat

                       

                       

                      d:\RhoMobileSuite5.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-5.1.1\lib\extensions

                      \zlib\ext>if "win32" == "win32" (call "C:\Program Files (x86)\Microsoft Visual S

                      tudio 11.0\Common7\Tools\..\..\VC\vcvarsall.bat" x86 )

                      ** Invoke default (first_time)

                      ** Invoke build:all (first_time)

                      ** Invoke build:config (first_time)

                      ** Execute build:config

                      ** Execute build:all

                      PWD: d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/lib/exten

                      sions/zlib/ext

                      CMD: D:\Qt\Qt5.1.1\5.1.1\msvc2012/bin/qmake -o Makefile -r -spec win32-msvc2012

                      zlib.pro CONFIG-=debug CONFIG+=release

                       

                       

                      PWD: d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/lib/exten

                      sions/zlib/ext

                      CMD: nmake all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                      RET:    "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                      RET:    "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                      ** Execute default

                      cd d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1

                      -$TIME$- message [ process extension "zlib" FINISH ] time is { 2015-10-13T03:50:

                      00Z } milliseconds from start (47503)

                      -$TIME$- message [ process extension "json" START ] time is { 2015-10-13T03:50:0

                      0Z } milliseconds from start (47503)

                       

                       

                      -$TIME$- message [ process extension "rhodes_translator" START ] time is { 2015-

                      10-13T03:50:00Z } milliseconds from start (47503)

                       

                       

                      -$TIME$- message [ build:wm:extensions FINISH ] time is { 2015-10-13T03:50:00Z }

                      milliseconds from start (47503)

                      mkdir -p platform/wm/bin/win32/rhodes/Release/rho

                      rm -rf platform/wm/bin/win32/rhodes/Release/rho/lib

                      rm -rf platform/wm/bin/win32/rhodes/Release/rho/apps

                      cp -r D:/oasisbb/bin/RhoBundle/lib platform/wm/bin/win32/rhodes/Release/rho/

                      cp -r D:/oasisbb/bin/RhoBundle/apps platform/wm/bin/win32/rhodes/Release/rho/

                      cp -r D:/oasisbb/bin/RhoBundle/db platform/wm/bin/win32/rhodes/Release/rho/

                      cp D:/oasisbb/icon/icon.ico d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems

                      /rhodes-5.1.1/platform/shared/qt/rhodes/resources/rho.ico

                      cp D:/oasisbb/icon/icon.png d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems

                      /rhodes-5.1.1/platform/shared/qt/rhodes/resources/rho.png

                      cd platform/wm

                       

                       

                      PWD: d:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/platform/

                      shared/qt/

                      CMD: rhosimulator_win32_build.bat "DESKTOPAPP_BUILD=1"

                      Reading D:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/platfo

                      rm/shared/qt/rubylib/rubylib.pro

                      Reading D:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/platfo

                      rm/shared/qt/rholib/rholib.pro

                      Reading D:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/platfo

                      rm/shared/qt/sqlite3/sqlite3.pro

                      Reading D:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/platfo

                      rm/shared/qt/syncengine/syncengine.pro

                      Reading D:/RhoMobileSuite5.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.1.1/platfo

                      rm/shared/qt/rhodes/rhodes.pro

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              cd rubylib\ && ( if not exist Makefile D:\Qt\Qt5.1.1\5.1.1\msvc2012\bin\

                      qmake D:\RhoMobileSuite5.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-5.1.1\platform

                      \shared\qt\rubylib\rubylib.pro -spec win32-msvc2012 CONFIG-=debug CONFIG+=releas

                      e DESKTOPAPP_BUILD=1 -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual S

                      tudio 11.0\VC\BIN\nmake.exe" -f Makefile all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              cd rholib\ && ( if not exist Makefile D:\Qt\Qt5.1.1\5.1.1\msvc2012\bin\q

                      make D:\RhoMobileSuite5.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-5.1.1\platform\

                      shared\qt\rholib\rholib.pro -spec win32-msvc2012 CONFIG-=debug CONFIG+=release D

                      ESKTOPAPP_BUILD=1 -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Stud

                      io 11.0\VC\BIN\nmake.exe" -f Makefile all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              cd sqlite3\ && ( if not exist Makefile D:\Qt\Qt5.1.1\5.1.1\msvc2012\bin\

                      qmake D:\RhoMobileSuite5.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-5.1.1\platform

                      \shared\qt\sqlite3\sqlite3.pro -spec win32-msvc2012 CONFIG-=debug CONFIG+=releas

                      e DESKTOPAPP_BUILD=1 -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual S

                      tudio 11.0\VC\BIN\nmake.exe" -f Makefile all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              cd syncengine\ && ( if not exist Makefile D:\Qt\Qt5.1.1\5.1.1\msvc2012\b

                      in\qmake D:\RhoMobileSuite5.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-5.1.1\platf

                      orm\shared\qt\syncengine\syncengine.pro -spec win32-msvc2012 CONFIG-=debug CONFI

                      G+=release DESKTOPAPP_BUILD=1 -o Makefile ) && "C:\Program Files (x86)\Microsoft

                      Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Debug all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              cd rhodes\ && ( if not exist Makefile D:\Qt\Qt5.1.1\5.1.1\msvc2012\bin\q

                      make D:\RhoMobileSuite5.1.1\ruby\lib\ruby\gems\1.9.1\gems\rhodes-5.1.1\platform\

                      shared\qt\rhodes\rhodes.pro -spec win32-msvc2012 CONFIG-=debug CONFIG+=release D

                      ESKTOPAPP_BUILD=1 -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Stud

                      io 11.0\VC\BIN\nmake.exe" -f Makefile all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -

                      f Makefile.Release all

                       

                       

                      Microsoft (R) Program Maintenance Utility Version 11.00.61030.0

                      Copyright (C) Microsoft Corporation.  All rights reserved.

                       

                       

                              D:\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\acer\AppData

                      \Local\Temp\nm737B.tmp

                      qrc_simulator.cpp

                              link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "

                      /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio

                      n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture

                      ='*'" /MANIFEST /MANIFESTFILE:..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe.e

                      mbed.manifest /OUT:..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe @C:\Users\ac

                      er\AppData\Local\Temp\nm7DD8.tmp

                      atls.lib(atlbase.obj) : error LNK2019: unresolved external symbol "int __cdecl A

                      TL::_AtlInitializeCriticalSectionEx(struct _RTL_CRITICAL_SECTION *,unsigned long

                      ,unsigned long)" (?_AtlInitializeCriticalSectionEx@ATL@@YAHPAU_RTL_CRITICAL_SECT

                      ION@@KK@Z) referenced in function "public: long __thiscall ATL::CComCriticalSect

                      ion::Init(void)" (?Init@CComCriticalSection@ATL@@QAEJXZ)

                      ..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe : fatal error LNK1120: 1 unreso

                      lved externals

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

                      \VC\BIN\link.EXE"' : return code '0x460'

                      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 => run:win32 => 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

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