Page 1 of 5

gCAD3D: a 3D CAD program

Posted: Wed 05 Sep 2007, 05:34
by muggins
http://www.gcad3d.org/
gCAD3D is a 3D CAD-CAM application that features an integrated 3D OpenGL viewer, a program interpreter for geometry and NC-commands in 3D, an integrated NC-processor, and a programming interface for user programs. It has support for importing Step files and support for both importing and exporting Iges, DXF, and VRML files.
Requires a working OpenGL graphics environment, plus the 3 attached library .pets.

Run via Menu->Graphic->gCAD3D

N.B. For the newest release of puppy, p431, don't install libgio-2.0.so.0.pet.

Posted: Wed 05 Sep 2007, 23:20
by john biles
Hello muggins,
I'm running Puppy 2.14 base and get errors from the installer and the package won't install.
What version of Puppy did you try this out on and did you have to do anything else to get it going?

Hey muggins have you been here yet!! looks like it could be a goldmine for Linux CAD Apps.

http://www.tech-edv.co.at/lunix/CADlinks.html

Posted: Thu 06 Sep 2007, 08:14
by muggins
hello john,

i installed it on pup2.16 & didn't get any errors. if you run the installer on the commandline, what errors do you get?

running ldd gCAD2D gives me this:

Code: Select all

	linux-gate.so.1 =>  (0xffffe000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7cb1000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7c45000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7c2b000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7c1a000)
	libm.so.6 => /lib/libm.so.6 (0xb7bf5000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7be8000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7bb6000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7b58000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7b2d000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7b2a000)
	libdl.so.2 => /lib/libdl.so.2 (0xb7b26000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7ab4000)
	libGLU.so.1 => /usr/X11R7/lib/libGLU.so.1 (0xb7a40000)
	libGL.so.1 => /usr/X11R7/lib/libGL.so.1 (0xb79d4000)
	libc.so.6 => /lib/libc.so.6 (0xb78c8000)
	libX11.so.6 => /usr/X11R7/lib/libX11.so.6 (0xb77da000)
	libfontconfig.so.1 => /usr/X11R7/lib/libfontconfig.so.1 (0xb77a4000)
	libXext.so.6 => /usr/X11R7/lib/libXext.so.6 (0xb7796000)
	libXrender.so.1 => /usr/X11R7/lib/libXrender.so.1 (0xb778d000)
	libXinerama.so.1 => /usr/X11R7/lib/libXinerama.so.1 (0xb7789000)
	libXi.so.6 => /usr/X11R7/lib/libXi.so.6 (0xb7781000)
	libXrandr.so.2 => /usr/X11R7/lib/libXrandr.so.2 (0xb777d000)
	libXcursor.so.1 => /usr/X11R7/lib/libXcursor.so.1 (0xb7774000)
	libXfixes.so.3 => /usr/X11R7/lib/libXfixes.so.3 (0xb776f000)
	/lib/ld-linux.so.2 (0xb7ef8000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb774a000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb76e0000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x441e8000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7612000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7609000)
	libXxf86vm.so.1 => /usr/X11R7/lib/libXxf86vm.so.1 (0xb7603000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb75b0000)
	libdrm.so.2 => /usr/X11R7/lib/libdrm.so.2 (0xb75a9000)
	libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb75a6000)
	libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb75a1000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7581000)
	libz.so.1 => /lib/libz.so.1 (0xb756f000)

Posted: Thu 06 Sep 2007, 08:32
by muggins
i just ran the install program again and i see that, because it uses OpenGL, it checks if you've got libGL.so.1 & libGLU.so.1. so if you haven't got openGL libraries it would probably abort the installation.

i'm pretty sure i've installed one from mu's repository, but i'm not sure which one:

http://dotpups.de/dotpups/XServer/DRI/

Posted: Fri 21 Sep 2007, 16:25
by muggins
i thought i'd make a note here that john biles had some difficulty getting this program to install. i thought it was due to missing openGL libraries, but we've found that the culprit was a missing /sbin/ldconfig which the gCAD3D program was looking for during it's installation.

so if anyone dloaded the program, and couldn't get it to install, you need mu's openGL.pup & the file /sbin/ldconfig

Posted: Sun 23 Sep 2007, 09:17
by vanchutr
Thank you muggins,
I'd installed OpenGL.pup & ldconfig. But I can't install the gCAD3D.
(I run Puppy 2.17.1).
Please give some instructions?

Posted: Sun 23 Sep 2007, 10:20
by muggins
hi vanchutr ,

assuming you downloaded this .pup, from mu's repository :

http://dotpups.de/dotpups/XServer/DRI/OpenGL.pup

then the library files are extracted to /usr/X11R6/lib, with 2 symlinks going to /usr/lib. you should just need to symlink /usr/X11R7/lib/libGLU.so.1 to /usr/lib.

Posted: Sun 23 Sep 2007, 12:13
by vanchutr
I'd followed your instructions to make these symlink.
I chage to /usr/lib; open rxvt and use these commands

Code: Select all

#ln -s /usr/X11R7/lib/libGL.so.1.2 libGL.so.1
#ln -s /usr/X11R7/lib/libGLU.so.1.3.060402 libGLU.so.1
But nothing new? I get same old error message:

Code: Select all

 " *** ERROR: Library libGLU.so.1 doesnot exist ...
Cancel to terminate installation
What's error?
Thank you muggins.

Posted: Sun 23 Sep 2007, 12:21
by muggins
the file /usr/X11R7/lib/libGLU.so.1 should already exist, but gCAD3D is expecting it to be in /usr/lib, not /usr/X11R7/lib, so try this instead:

Code: Select all

ln -s /usr/X11R7/lib/libGLU.so.1 /usr/lib

Posted: Sun 23 Sep 2007, 13:48
by vanchutr
Thank you muggins.
But I met same trouble (as the last post).
Please give more instructions? Or a .pet

Posted: Sun 23 Sep 2007, 14:01
by muggins
if you type:

ls /usr/X11R7/lib/libGLU* ,and then
ls /usr/lib/libGLU*

what response do you have?

Posted: Sun 23 Sep 2007, 14:51
by vanchutr
After your note, I get these

Code: Select all

# ls /usr/X11R7/lib/libGLU*
/usr/X11R7/lib/libGLU.so    /usr/X11R7/lib/libGLU.so.1.3.060402
/usr/X11R7/lib/libGLU.so.1  /usr/X11R7/lib/libGLU.so.1.3.060500
# ls /usr/lib/libGLU* 
/usr/lib/libGLU.so.1
#

Posted: Mon 24 Sep 2007, 05:42
by muggins
sorry vanchutr,

but this one has got me well & truly bamboozled! and embarrassed. embarrassed because one of the things that so impressed me with gCAD3D was the self-extracting installation package, and now i can't replicate my previous install & i don't know why. (and i somehow managed to get all my gtk apps giving me seg-fault errors on my main partition! but i'm not blaming gCAD3D for that as i was trying to multitask & in the end don't know what caused my xserver to die).

anyway, i thought i'd boot puppy-2.16 cdrom into ram, then go through the steps of installing gCAD3D.

initially, without any additional libraries added, pup-2.16 already has libGLU.so.1 linked to /usr/X11R7/lib/libGLU.so.1.3.060402. thinking i'd retrace my steps, i downloaded, and installed, http://dotpups.de/dotpups/XServer/DRI/OpenGL.pup ,
so libGLU.so.1 is now symlinked with:
/usr/X11R7/lib/libGLU.so.1.3.060500

then, before i tried to install the program, i ran
ldconfig, then i ran the install program, and it installed without complaint. typing ldd /root/gCAD3D/gCAD3D says it has all it's library requirements met...yet it won't run!

if i try to run it from the commandline it complains that:

"OpenGL not supported"

the only other thing i had done was install mu's 3DCC graphics program. so i tried that, but whether i install openGL-A, or try openGL-B, either way i can't get it to run?

the critical thing is, which i suppose is logical for a 3D graphics program, you need to have a working openGL graphics environment.

but for now, i'm back on trying to get my main partition working again, as currently it's 1D!

Posted: Mon 24 Sep 2007, 05:59
by vanchutr
Thank you Muggins.
So I will try to install in Puppy 216 (IceWM)
If there any new I will post to forum.
Sincerly

Posted: Mon 24 Sep 2007, 07:14
by muggins
no, i'm not suggesting you need to use pup2.16. i was just reporting my lack of success in trying to replicate an install in pup2.16.

i think the critical thing for gCAD3D to work is getting openGL to work with your display. maybe you should try installing mu's 3DCC.

( changing subject, my normal distro is back in operation. as it seemed to be all the gtk apps that wouldn't work, i copied an untouched /usr/lib from a cdrom, then used diff to compare it with the damaged one. i found these files were all altered, and copying them from the cdrom & i was back in business:


/usr/lib/libbz2.so.1.0 and /usr/lib2/libbz2.so.1.0 differ /usr/lib/libcairo.so.2 and /usr/lib2/libcairo.so.2 differ
/usr/lib/libgdk-x11-2.0.so.0 and /usr/lib2/libgdk-x11-2.0.so.0 differ
/usr/lib/libgdk-x11-2.0.so.0.800.17 and
/usr/lib2/libgdk-x11-2.0.so.0.800.17 differ
/usr/lib/libgimpprint.so.1 and /usr/lib2/libgimpprint.so.1 differ
/usr/lib/libgtk-1.2.so.0 and /usr/lib2/libgtk-1.2.so.0 differ
/usr/lib/libgtk-1.2.so.0.9.1 and /usr/lib2/libgtk-1.2.so.0.9.1 differ
/usr/lib/libgutenprint.so and /usr/lib2/libgutenprint.so differ
/usr/lib/libgutenprint.so.2 and /usr/lib2/libgutenprint.so.2 differ
/usr/lib/libgutenprint.so.2.0.0 and /usr/lib2/libgutenprint.so.2.0.0 differ

how they were changed is the mystery?)

Posted: Mon 24 Sep 2007, 08:44
by vanchutr
is this strange. I use the ldd command. In console I see this:

Code: Select all

# ldd /usr/local/3DCC/3DCC
/usr/bin/ldd: line 102: lddlibc4: command not found
        not a dynamic executable
(I'd installed the MU-3DCC package)
Any comment?

Posted: Mon 24 Sep 2007, 10:59
by muggins
3DCC is an executable script & ldd gives library dependencies for compiled elf executables. so the output you're seeing is what you would get for a script. (if you compress an elf executable with upx & run ldd on it you'll also get this response, so you would need to upx -d the executable to decompress it, before doing ldd.

Posted: Mon 24 Sep 2007, 12:15
by vanchutr
Thank for your hint but:

Code: Select all

# upx -d 3DCC
                       Ultimate Packer for eXecutables
  Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
UPX 3.01        Markus Oberhumer, Laszlo Molnar & John Reiser   Jul 31st 2007

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
upx: 3DCC: NotPackedException: not packed by UPX

Unpacked 0 files.

Posted: Mon 24 Sep 2007, 22:42
by muggins
hi vanchutr,

no what i'm saying is that ldd won't give you library dependencies for elf executables which have been compressed with upx, or executable bash scripts. 3DCC is the latter case.

in any case, if you've installed 3DCC, when you run it & try the test example, do you have acceleration supported for your graphics?

also, with installing gCAD3D, i noticed that when it throws up the error of missing libGLU.so.1, if you ignore the error & click on continue, it still installs to /root/gCAD3D. The problem then is that it won't run unless you have openGL support installed for your graphics.

Posted: Mon 24 Sep 2007, 23:52
by vanchutr
Umh, I knew. Thank you muggins; you'd given many instructions. Thank agin