Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Lars Christensen
RE: Ocra 1.1.0's dll dependency analyzer works! [ reply ]  
2009-05-30 15:01
Tom, can you reproduce the issue with a simple script, or something without Qt? I can't install the qtruby4 gem here since I dont have the build environment.

By: Tom Paschenda
RE: Ocra 1.1.0's dll dependency analyzer works! [ reply ]  
2009-05-28 04:40
Sorry, I forgot to mention that:
Unfortunately it does not work. When I start the exe, there seems to be some activity (probably extraction) going on for a few secs. After that, the application just terminates without any error message or console output.

By: Lars Christensen
RE: Ocra 1.1.0's dll dependency analyzer works! [ reply ]  
2009-05-27 20:45
It seems I need to filter some duplicates there. the ÿ is normal (ascii 255 i presume). It's replaced with the temporary path at run time.

Does it work when you run it? (I assume the RUBYLIB env gets very very long :-)

By: Tom Paschenda
Ocra 1.1.0's dll dependency analyzer works! [ reply ]  
2009-05-27 18:03
Today Lars released the latest version of OCRA which is now able to find the dlls that are required by a ruby script.
Here's the result:
1. For the following example it works perfectly:
-----------
require 'rubygems'
require 'Qt'
a = Qt::Application.new(ARGV)
Qt::PushButton.new('Hello World!', nil).show()
a.exec()
-----------
Here's the interesting part of ocra's output:
-----------
a bin\msvcrt-ruby18.dll
a bin\mingwm10.dll
a bin\QtCore4.dll
a bin\QtGui4.dll
a bin\QtNetwork4.dll
a bin\QtXml4.dll
a bin\smokeqt.dll
a bin\QtDBus4.dll
a bin\libdbus-1.dll
a bin\QtOpenGL4.dll
a bin\QtSql4.dll
a bin\QtSvg4.dll
a bin\zlib1.dll
-------------
Which are the correct dlls!
@Lars: I'm really amazed by how fast you got this implemented.

However, the latest version of ocra seems to have trouble with my real-world-application. The problem does not seem to relate to dlls. Note the last couple of lines of the output below, where he prints "\src;" a couple of times. This did not happen in the example above
-----------
=== Building main.exe
m src
a src\main.rb
m bin
a bin\ruby.exe
a bin\msvcrt-ruby18.dll
a bin\mingwm10.dll
a bin\QtCore4.dll
a bin\QtGui4.dll
a bin\QtNetwork4.dll
a bin\QtXml4.dll
a bin\smokeqt.dll
a bin\QtDBus4.dll
a bin\libdbus-1.dll
a bin\QtOpenGL4.dll
a bin\QtSql4.dll
a bin\QtSvg4.dll
a bin\zlib1.dll
m lib
m lib\ruby
m lib\ruby\gems
m lib\ruby\gems\1.8
m lib\ruby\gems\1.8\specifications
a lib\ruby\gems\1.8\specifications\qtruby4-1.4.9-x86-mswin32.gemspec
a lib\ruby\gems\1.8\specifications\ocra-1.1.0.gemspec
m lib\ruby\site_ruby
m lib\ruby\site_ruby\1.8
m lib\ruby\site_ruby\1.8\rubygems
a lib\ruby\site_ruby\1.8\rubygems\rubygems_version.rb
a lib\ruby\site_ruby\1.8\rubygems\defaults.rb
m lib\ruby\1.8
m lib\ruby\1.8\i386-mswin32
a lib\ruby\1.8\i386-mswin32\thread.so
a lib\ruby\1.8\thread.rb
a lib\ruby\1.8\i386-mswin32\etc.so
a lib\ruby\1.8\i386-mswin32\rbconfig.rb
a lib\ruby\site_ruby\1.8\rubygems\exceptions.rb
a lib\ruby\site_ruby\1.8\rubygems\requirement.rb
a lib\ruby\site_ruby\1.8\rubygems\version.rb
a lib\ruby\site_ruby\1.8\rubygems\dependency.rb
a lib\ruby\site_ruby\1.8\rubygems\gem_path_searcher.rb
a lib\ruby\site_ruby\1.8\rubygems\user_interaction.rb
a lib\ruby\site_ruby\1.8\rubygems\platform.rb
a lib\ruby\site_ruby\1.8\rubygems\specification.rb
a lib\ruby\site_ruby\1.8\rubygems\source_index.rb
a lib\ruby\site_ruby\1.8\rubygems\builder.rb
a lib\ruby\1.8\i386-mswin32\stringio.so
m lib\ruby\1.8\yaml
a lib\ruby\1.8\yaml\error.rb
a lib\ruby\1.8\i386-mswin32\syck.so
a lib\ruby\1.8\yaml\ypath.rb
a lib\ruby\1.8\yaml\basenode.rb
a lib\ruby\1.8\yaml\syck.rb
a lib\ruby\1.8\yaml\tag.rb
a lib\ruby\1.8\yaml\stream.rb
a lib\ruby\1.8\yaml\constants.rb
a lib\ruby\1.8\rational.rb
m lib\ruby\1.8\date
a lib\ruby\1.8\date\format.rb
a lib\ruby\1.8\date.rb
a lib\ruby\1.8\yaml\rubytypes.rb
a lib\ruby\1.8\yaml\types.rb
a lib\ruby\1.8\yaml.rb
a lib\ruby\1.8\i386-mswin32\Win32API.so
a lib\ruby\site_ruby\1.8\rubygems\config_file.rb
a lib\ruby\site_ruby\1.8\rubygems\custom_require.rb
a lib\ruby\1.8\fileutils.rb
a lib\ruby\site_ruby\1.8\rubygems.rb
a lib\ruby\site_ruby\1.8\ubygems.rb
m lib\ruby\gems\1.8\gems
m lib\ruby\gems\1.8\gems\qtruby4-1.4.9-x86-mswin32
m lib\ruby\gems\1.8\gems\qtruby4-1.4.9-x86-mswin32\lib
m lib\ruby\gems\1.8\gems\qtruby4-1.4.9-x86-mswin32\lib\Qt
a lib\ruby\gems\1.8\gems\qtruby4-1.4.9-x86-mswin32\lib\Qt\qtruby4.rb
a lib\ruby\gems\1.8\gems\qtruby4-1.4.9-x86-mswin32\lib\qtruby4.so
a lib\ruby\gems\1.8\gems\qtruby4-1.4.9-x86-mswin32\lib\Qt.rb
a src\MainWindow_ui.rb
a src\bma_view.rb
a src\connection.rb
a src\connectable.rb
a src\Geraet.rb
a src\gui_helper.rb
a src\updateable.rb
a lib\ruby\1.8\monitor.rb
a lib\ruby\1.8\logger.rb
a src\log.rb
a src\symbol_container.rb
a src\geraet_graphics_item.rb
a src\geraet.rb
a src\funktion_graphics_item.rb
a src\bma_scene_arranger.rb
a src\Connection.rb
a src\connection_graphics_item.rb
a src\bma_scene.rb
a src\svg_exporter.rb
a src\Paginator.rb
a src\global.rb
a src\print_controller.rb
a src\file_print_dialog_ui.rb
a src\file_print_dialog.rb
a src\bma_manager_main_window.rb
a src\application_controller.rb
a lib\ruby\1.8\i386-mswin32\win32ole.so
a src\zone.rb
a src\ident.rb
a src\bma_manager_api_wrapper.rb
a src\bma_manager_xls.rb
a src\timer_wrapper.rb
a lib\ruby\1.8\i386-mswin32\digest.so
a lib\ruby\1.8\digest.rb
m lib\ruby\1.8\i386-mswin32\digest
a lib\ruby\1.8\i386-mswin32\digest\md5.so
a lib\ruby\1.8\pstore.rb
a lib\ruby\1.8\yaml\store.rb
a src\resources.rb
a src\bma_manager_controller.rb
m lib\ruby\site_ruby\1.8\i386-msvcrt
a lib\ruby\site_ruby\1.8\i386-msvcrt\zlib.so
a lib\ruby\1.8\i386-mswin32\socket.so
a lib\ruby\1.8\timeout.rb
m lib\ruby\1.8\net
a lib\ruby\1.8\net\protocol.rb
m lib\ruby\1.8\uri
a lib\ruby\1.8\uri\common.rb
a lib\ruby\1.8\uri\generic.rb
a lib\ruby\1.8\uri\ftp.rb
a lib\ruby\1.8\uri\http.rb
a lib\ruby\1.8\uri\https.rb
a lib\ruby\1.8\uri\ldap.rb
a lib\ruby\1.8\uri\mailto.rb
a lib\ruby\1.8\uri.rb
a lib\ruby\1.8\net\http.rb
a lib\ruby\1.8\parsedate.rb
a lib\ruby\1.8\time.rb
a lib\ruby\site_ruby\1.8\rubygems\remote_fetcher.rb
a lib\ruby\site_ruby\1.8\rubygems\spec_fetcher.rb
e RUBYOPT
e RUBYLIB ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src;ÿ/src
l bin\ruby.exe ruby.exe ÿ\src\main.rb
=== Compressing
=== Finished (Final size was 6099070)
------------