gCAD3D: a 3D CAD program

Stuff that has yet to be sorted into a category.
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

gCAD3D: a 3D CAD program

#1 Post 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.
Attachments
libgio-2.0.so.0.pet
(157.63 KiB) Downloaded 3363 times
libgtkgl-2.0.so.1.0.0.pet
(6.16 KiB) Downloaded 2148 times
libselinux.so.1.pet
(44.04 KiB) Downloaded 2908 times
Last edited by muggins on Fri 02 Apr 2010, 04:56, edited 20 times in total.

User avatar
john biles
Posts: 1458
Joined: Sun 17 Sep 2006, 14:05
Location: Australia
Contact:

#2 Post 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
Legacy OS 2017 has been released.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#3 Post 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)

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post 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/

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#5 Post 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

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#6 Post 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?
Attachments
gCAD3D.gif
(Error from gCAD3D install program)
(12.93 KiB) Downloaded 3697 times

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post 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.

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#8 Post 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.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#9 Post 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

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#10 Post by vanchutr »

Thank you muggins.
But I met same trouble (as the last post).
Please give more instructions? Or a .pet

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#11 Post by muggins »

if you type:

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

what response do you have?

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#12 Post 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
#

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#13 Post 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!

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#14 Post 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

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#15 Post 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?)

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#16 Post 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?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#17 Post 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.

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#18 Post 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.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#19 Post 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.

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#20 Post by vanchutr »

Umh, I knew. Thank you muggins; you'd given many instructions. Thank agin

Post Reply