klayout arguments

edited May 2010 in General
Hi,
I had installed the development version 'klayout-r322' last month.
I was just playing around to see the klayout arguments using 'klayout -h', I get the following -->

klayout [<options>] [<file>] ..
options
-c <config file> Use this configuration file
-d <debug level> Set debug level
-e Editable mode (allow editing of files)
-ne Readonly mode (editing of files is disabled)
-gr <file name> Record GUI test file
-gp <file name> Replay GUI test file
-gb <line number> Replay GUI test file up to (including) line
-gx <millisec> Replay rate for GUI test file
-gi Incremental logs for GUI test file
-i Disable undo buffering (less memory requirements)
-ni Enable undo buffering (default, overrides previous -i option)
-l <layer file> Use layer definition file
-m <database file> Load RDB (report database) file (into previous layout view)
-p <plugin> Load the plugin (can be used multiple times)
-s Load files into same view
-t Don't update the configuration file on exit
-u <file name> Restore session from given file
-v Print program version and exit
-x Synchronous drawing mode
-z Non-GUI mode

I was expecting to see options like '-rm' to load the hello_world.rb module from the documentation. What am I doing wrong here?

Thank You

Comments

  • edited November -1

    Hi,

    it looks like you have not built KLayout with Ruby support. I assume you are using some Linux distribution.

    The build script usually enables Ruby support automatically if the Ruby headers and library are found. This should be the case if you have installed ruby-devel-1.8.7 or equivalent.

    Best regards,

    Matthias

  • edited November -1
    Thanks Matthias. Had another look at the documentation :-) and I see the setup details there; tried to build klayout on my 64bit linux machine.

    It ran fine for about 20 minutes before erroring out with -->
    -lQtGui -lQtCore -lQtXml -lrt -lstdc++ -lcrypt
    /usr/lib/libruby.so.1.8: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    gmake[1]: *** [klayout] Error 1
    gmake[1]: Leaving directory `/home/klayout_build/build.linux-64-gcc-release/main'
    gmake: *** [all] Error 1

    Any suggestion as to what causes the error message - "/usr/lib/libruby.so.1.8: could not read symbols: File in wrong format"

    I had passed in -rblib,-rbinc,-qt and -platform arguments to the build.sh script.

    Thanks
  • edited November -1

    Hi,

    I suspect that /usr/lib holds the 32bit versions of the libraries. On some installations (I think RHE for example), there is a /usr/lib64 directory containing the files for the 64bit build. If that is the case, you should use this path instead of /usr/lib.

    You can also check the file format of the .so files with the "file" command. For the 64bit build to be successful, the format must be "ELF64".

    Best regards,

    Matthias

  • edited November -1
    Thanks Matthias, it turned out the qt library version was correct but the ruby library version was looking at the 32 bit version. Once I pointed to 64bit version it worked.

    Thanks Again...
Sign In or Register to comment.