[Chugalug] Help building ancient app...

DaWorm daworm at gmail.com
Mon Jan 7 00:50:34 UTC 2013


If this is not appropriate for this list, let me know.

I'm definitely a Linux user, not developer or admin.  So I'm having a bit
of trouble building an ancient (2003) app for doing furniture CAD.

Somewhere a few years back someone managed, by using a set of patches from
a distro called PLD.  Perhaps someone can tell me what I'm doing wrong.

The program is called lignumCAD.  Here's what I've done so far:

Download source rpm (not the tar.gz link!).
http://sourceforge.net/projects/lignumcad/files/lignumCAD/0.2/

Extract source to ~\src

Open terminal, cd ~\src

sudo apt-get install build-essential

sudo apt-get install qt3-apps-dev

sudo apt-get install opencascade4

sudo apt-get install libopencascade-dev

navigate to
http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/lignumCAD/ and
download all patches
    Click each link, right click on download in "Links to HEAD" and save to
~\src\lignumCAD
(I couldn't get CVS to pull these)

patch -p1 < lignumCAD-gcc4.patch
patch -p1 < lignumCAD-Xft.patch
patch -p1 < lignumCAD-delete-pointer.patch
patch -p1 < lignumCAD-gcc-enum-warning.patch
patch -p1 < lignumCAD-gcc3.patch
patch -p1 < lignumCAD-gcc34.patch
patch -p1 < lignumCAD-gcc41.patch
patch -p1 < lignumCAD-gcc42.patch
patch -p1 < lignumCAD-gcc43.patch
patch -p1 < lignumCAD-gcc44.patch
patch -p1 < lignumCAD-qt3.patch -- had to apply by hand for some reason
patch -p1 < lignumCAD-ui.patch
patch -p1 < lignumCAD-xft.patch

edit lignumCAD.pro
  find unix:INCLUDEPATH, remove "local" from the paths
  comment out both lines with QMAKE_LIBS_QT_THREAD

This is as far as I have gotten.  It fails to build with the following:

daworm at Compaq-A900:~/src/lignumCAD$ qmake lignumCAD.pro
daworm at Compaq-A900:~/src/lignumCAD$ make
gcc -c -pipe -g -Wall -W -O0 -D_REENTRANT  -DOGLFT_NO_SOLID -DGL2PS_USE_QT
-DGL2PS_USE_EMF -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
-DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -Ilcfilechooser
-Ilcfontchooser -Ilccolorchooser -Ilcdefaultfilechooser -Ilcdefaultcombobox
-Ilcdefaultlengthspinbox -Ilcdefaultratiospinbox -Ilcconstraintchooser
-Ilcdefaultspinbox -Ilcdefaultlengthconstraint -I. -I/usr/include/freetype2
-I/usr/local/src/Mesa/include -I/usr/include/X11/Xft
-I/usr/include/opencascade -I/usr/include/qt3 -I.ui/ -I.moc/ -o
.obj/gl2ps.o gl2ps.c
In file included from ./wine/windef.h:16:0,
                 from ./emf.h:27,
                 from gl2ps.h:34,
                 from gl2ps.c:33:
./wine/winnt.h:45:3: error: #error Unknown CPU architecture!
./wine/winnt.h:98:0: warning: "APIENTRY" redefined [enabled by default]
/usr/include/GL/gl.h:107:0: note: this is the location of the previous
definition
In file included from ./wine/windef.h:16:0,
                 from ./emf.h:27,
                 from gl2ps.h:34,
                 from gl2ps.c:33:
./wine/winnt.h:1036:2: error: #error You need to define a CONTEXT for your
CPU
./wine/winnt.h:1039:1: error: unknown type name ‘CONTEXT’
In file included from ./emf.h:28:0,
                 from gl2ps.h:34,
                 from gl2ps.c:33:
./wine/winbase.h:1243:44: error: unknown type name ‘CONTEXT’
./wine/winbase.h:1377:1: error: unknown type name ‘CONTEXT’
make: *** [.obj/gl2ps.o] Error 1

I'm on Xubuntu 12.04.  If anyone knows a quick workaround/fix, I'd greatly
appreciate it.

Thanks,
  Jeff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://chugalug.org/pipermail/chugalug/attachments/20130106/ea009f74/attachment.html>


More information about the Chugalug mailing list