[Chugalug] Help building ancient app...

Sean Brewer seabre986 at gmail.com
Mon Jan 7 01:49:03 UTC 2013


GCC on Ubuntu 12.04 is much newer I believe.. Do gcc -v, and I think it
should give you the 4.7 release. The latest GCC patch for your app appears
to be for the 4.4 series. You need to do something like this. I haven't
tried it, so YMMV.

Install GCC 4.4 and friends:

$ sudo apt-get install gcc-4.4 g++-4.4

Follow instructions here with additional instructions below:
http://askubuntu.com/a/26518

We want to be switching between 4.4 and 4.7, so instead of 4.3 and 4.4 in
those instructions use 4.4 and 4.7

Switch to GCC 4.4 compiler as shown in instructions in given link, then
attempt to build. Make sure to do qmake clean, make clean, and all that
before attempting to build again.

On Sun, Jan 6, 2013 at 7:50 PM, DaWorm <daworm at gmail.com> wrote:

> 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.
>
>
> _______________________________________________
> Chugalug mailing list
> Chugalug at chugalug.org
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://chugalug.org/pipermail/chugalug/attachments/20130106/1dd893f1/attachment-0001.html>


More information about the Chugalug mailing list