iges conversion

Hello,

Does anyone know how to use BRL-CAD? I have a simple .igs file and am tryin to convert it into a .g (BRLCAD format) and from that into a .obj format so that i can use it in radiance. (i cannot do a straight .igs to .obj transformation with BRLCAD).

Im following the manuel that came with BRLCAD and Lars has helped me alot, however im still stuck (and simple!)

I have my iges-g, g-obj and .igs file in the same directory (brlcad), but when i type (in a shell window)

'iges-g -o picture.o picture.igs' <------------taken from manuel previously mentioned

It tells me this

displays@cropston brlcad]$ ./iges-g -o 42211A.g 42211A.igs
./iges-g: error while loading shared libraries: librt.so.19: cannot open shared object file: No such file or directory

ive located this librt.so.19 file and moved it to the same directory to see if that was the problem but it isnt. i cant open this librt file with kwrite either.

points of note.
im using a linux system.
im useless on computers
i downloaded the brlcad-7.8.0_linux_ia32.tar.bz2 version of BRLCAD from sourceforge.net, a link from brlcad.org

can anyone help??

thanks in advance

chris

···

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

Chris,

Did you build the software? It sounds like the build process didn't know where the librt.so.19 file was during the linking procedure. One way to correct this is to make sure that there is a "-L/usr/X11R6/lib/" -type entry on the linker command line "ld" or the compile command line (if the compile command is responsible for linking, too, as it sometimes is.)

Unfortunately, just moving the library to the right place doesn't tell the executable to use it.

I am sorry that I can't help more.

Mark

···

On Tue, 20 Jun 2006, Chris Foster wrote:

Hello,

Does anyone know how to use BRL-CAD? I have a simple .igs file and am tryin to convert it into a .g (BRLCAD format) and from that into a .obj format so that i can use it in radiance. (i cannot do a straight .igs to .obj transformation with BRLCAD).

Im following the manuel that came with BRLCAD and Lars has helped me alot, however im still stuck (and simple!)

I have my iges-g, g-obj and .igs file in the same directory (brlcad), but when i type (in a shell window)

'iges-g -o picture.o picture.igs' <------------taken from manuel previously mentioned

It tells me this

displays@cropston brlcad]$ ./iges-g -o 42211A.g 42211A.igs
./iges-g: error while loading shared libraries: librt.so.19: cannot open shared object file: No such file or directory

ive located this librt.so.19 file and moved it to the same directory to see if that was the problem but it isnt. i cant open this librt file with kwrite either.

points of note.
im using a linux system.
im useless on computers

i downloaded the brlcad-7.8.0_linux_ia32.tar.bz2 version of BRLCAD from sourceforge.net, a link from brlcad.org

can anyone help??

thanks in advance

chris

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                  Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

Hello again

slight mistake in my last message, the line

'iges-g -o picture.o picture.igs' <------------taken from manuel previously mentioned

was meant to read

'iges-g -o picture.g picture.igs' <------------taken from manuel previously mentioned

thanks again

Chris

···

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

I forgot to mention that you should replace the "/usr/X11R6/lib/" part of the command-line option with whatever directory the librt is actually in. My bad.

I am interested in seeing this work, because I just recently downloaded BRL-CAD for similar purposes. I wish it had an obj-importer, though.

Mark

···

On Tue, 20 Jun 2006, Mark Stock wrote:

Chris,

Did you build the software? It sounds like the build process didn't know where the librt.so.19 file was during the linking procedure. One way to correct this is to make sure that there is a "-L/usr/X11R6/lib/" -type entry on the linker command line "ld" or the compile command line (if the compile command is responsible for linking, too, as it sometimes is.)

Unfortunately, just moving the library to the right place doesn't tell the executable to use it.

I am sorry that I can't help more.

Mark

On Tue, 20 Jun 2006, Chris Foster wrote:

Hello,

Does anyone know how to use BRL-CAD? I have a simple .igs file and am tryin to convert it into a .g (BRLCAD format) and from that into a .obj format so that i can use it in radiance. (i cannot do a straight .igs to .obj transformation with BRLCAD).

Im following the manuel that came with BRLCAD and Lars has helped me alot, however im still stuck (and simple!)

I have my iges-g, g-obj and .igs file in the same directory (brlcad), but when i type (in a shell window)

'iges-g -o picture.o picture.igs' <------------taken from manuel previously mentioned

It tells me this

displays@cropston brlcad]$ ./iges-g -o 42211A.g 42211A.igs
./iges-g: error while loading shared libraries: librt.so.19: cannot open shared object file: No such file or directory

ive located this librt.so.19 file and moved it to the same directory to see if that was the problem but it isnt. i cant open this librt file with kwrite either.

points of note.
im using a linux system.
im useless on computers

i downloaded the brlcad-7.8.0_linux_ia32.tar.bz2 version of BRLCAD from sourceforge.net, a link from brlcad.org

can anyone help??

thanks in advance

chris

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                  Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Mark,

Dont worry bout my last email, i just spoke to my boss and he has spoke to the resident pc guru who is gonna see if he can build it for me. if i get stuck though ill be sure to pester you again.

Thanks alot

Chris

···

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

Ok, maybe it is time to install clean. If there is some admin who wants to help, let him install brlcad where it belongs to, somewhere in /usr. Than it will also find its libraries. He may also install (if available) a package for your distribution, as you do not intend to use the latest features but only the (old) import-filter.

The workarounds should come to an end here, as, while you copied some files to your current working directory, brldcad heaviely relies on its libraries. So it will be easier to properly install the whole package.

The problem is that brlcad expects to be in a standard location under /usr, where a non-admin user should not be able to install. There is a file README and/or INSTALL which tells you where to install it, for my OS X release it was something like /usr/brlcad, afaik.

There is no need to recompile it (except that you insist on installing it in a non-standard location. I had hoped that you already successfully did all the conversion as I did not hear any news from you.

After all this Radiance-Off-Topic (while interesting, as brlcad is a useful extension for radiance in many ways), there is also nice support available for brlcad such as an icq-channel, mailing lists, the sourceforge forums and, really, a lot of nicely formatted pdf documentation.

CU Lars.

I am interested in seeing this work, because I just recently downloaded BRL-CAD for similar purposes. I wish it had an obj-importer, though.

It works. The limitation is that only the iges 4 set seams to be supported at the moment. I have imported some files, but could not get instances loaded, probably because I had iges 5.1 files (from formZ).

CU Lars.

Hi Chris,

while I dont know anything about this particular program I am rather sure
that this file librt.so.19 is not in your library path.
On my system I issue the following commands to find out more:

# locate librt.so
/lib/librt.so.1
/usr/lib/librt.so

# ls -l /lib/librt.so.1 /usr/lib/librt.so
lrwxrwxrwx 1 root root 14 5. Mai 03:40 /lib/librt.so.1 -> librt-2.3.6.so
lrwxrwxrwx 1 root root 20 5. Mai 03:40 /usr/lib/librt.so ->
../../lib/librt.so.1

So the 'real' file is actually here: /lib/librt-2.3.6.so

# file /lib/librt-2.3.6.so tells you:
/lib/librt-2.3.6.so: ELF 32-bit LSB shared object, Intel 80386, version 1
(SYSV), stripped

The other 'files' you find are so called 'symbolic links'. This way
differrent programs looking for this library can find it in different
directories and you still need only one real copy of it, the rest is done
via links.

I guess you should first find out what and where your application (iges-g)
is looking for. Just type the folloing in the directory where your app
lives:

# ldd iges-g

As an example if I want to figure out which libraries 'rpict' needs I type:

# ldd /opt/radiance/bin/rpict
        linux-gate.so.1 => (0xffffe000)
        libm.so.6 => /lib/libm.so.6 (0xb7efc000)
        libc.so.6 => /lib/libc.so.6 (0xb7dec000)
        /lib/ld-linux.so.2 (0xb7f28000)

This will show you exactlty where your binary finds (or doesn't) the
libaries it needs. Then you can just make a symbolic link from the real
location of 'librt.so' to where it is expected by 'ides-g'.

Hope this gets you started :wink:

-Erwin

···

---
Chris Foster wrote:

Hello,

Does anyone know how to use BRL-CAD? I have a simple .igs file and am
tryin to convert it into a .g (BRLCAD format) and from that into a .obj
format so that i can use it in radiance. (i cannot do a straight .igs to
.obj transformation with BRLCAD).

Im following the manuel that came with BRLCAD and Lars has helped me alot,
however im still stuck (and simple!)

I have my iges-g, g-obj and .igs file in the same directory (brlcad), but
when i type (in a shell window)

'iges-g -o picture.o picture.igs' <------------taken from manuel
previously mentioned

It tells me this

displays@cropston brlcad]$ ./iges-g -o 42211A.g 42211A.igs
./iges-g: error while loading shared libraries: librt.so.19: cannot open
shared object file: No such file or directory

ive located this librt.so.19 file and moved it to the same directory to
see if that was the problem but it isnt. i cant open this librt file with
kwrite either.

points of note.
im using a linux system.
im useless on computers
i downloaded the brlcad-7.8.0_linux_ia32.tar.bz2 version of BRLCAD from
sourceforge.net, a link from brlcad.org

can anyone help??

thanks in advance

chris

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general