<div class="markdown-here-wrapper" id="markdown-here-wrapper-950914" style="font-size:1em;font-family:Helvetica,arial,freesans,clean,sans-serif;color:rgb(34,34,34);background-color:rgb(255,255,255);border:none;line-height:1.2">

<p style="margin:1em 0px">GCC on Ubuntu 12.04 is much newer I believe.. Do <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">gcc -v</code>, and I think it should give you the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.7</code> 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.

</p>
<p style="margin:1em 0px">Install GCC 4.4 and friends:

</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;overflow:auto;margin:1em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;color:rgb(51,51,51);background-color:rgb(248,248,255);background-repeat:initial initial">$ sudo apt-get install gcc-4.4 g++-4.4</code></pre>


<p style="margin:1em 0px">Follow instructions here with additional instructions below: <a href="http://askubuntu.com/a/26518" style="color:rgb(51,51,238);text-decoration:none">http://askubuntu.com/a/26518</a>

</p>
<p style="margin:1em 0px">We want to be switching between <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.4</code> and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.7</code>, so instead of <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.3</code> and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.4</code> in those instructions use <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.4</code> and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">4.7</code>

</p>
<p style="margin:1em 0px">Switch to GCC 4.4 compiler as shown in instructions in given link, then attempt to build. Make sure to do <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">qmake clean</code>, <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">make clean</code>, and all that before attempting to build again.</p>


</div><div></div><div><br><div class="gmail_quote">On Sun, Jan 6, 2013 at 7:50 PM, DaWorm <span dir="ltr"><<a href="mailto:daworm@gmail.com" target="_blank">daworm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

If this is not appropriate for this list, let me know.  <br><br>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.<br><br>
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.<br>

<br>The program is called lignumCAD.  Here's what I've done so far:<br><br>Download source rpm (not the tar.gz link!).  <a href="http://sourceforge.net/projects/lignumcad/files/lignumCAD/0.2/" target="_blank">http://sourceforge.net/projects/lignumcad/files/lignumCAD/0.2/</a><br>


<br>Extract source to ~\src<br><br>Open terminal, cd ~\src<br><br>sudo apt-get install build-essential<br><br>sudo apt-get install qt3-apps-dev<br><br>sudo apt-get install opencascade4<br><br>sudo apt-get install libopencascade-dev<br>


<br>navigate to <a href="http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/lignumCAD/" target="_blank">http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/lignumCAD/</a> and download all patches<br>    Click each link, right click on download in "Links to HEAD" and save to ~\src\lignumCAD<br>


(I couldn't get CVS to pull these)<br><br>patch -p1 < lignumCAD-gcc4.patch<br>patch -p1 < lignumCAD-Xft.patch<br>patch -p1 < lignumCAD-delete-pointer.patch<br>patch -p1 < lignumCAD-gcc-enum-warning.patch<br>


patch -p1 < lignumCAD-gcc3.patch<br>patch -p1 < lignumCAD-gcc34.patch<br>patch -p1 < lignumCAD-gcc41.patch<br>patch -p1 < lignumCAD-gcc42.patch<br>patch -p1 < lignumCAD-gcc43.patch<br>patch -p1 < lignumCAD-gcc44.patch<br>


patch -p1 < lignumCAD-qt3.patch -- had to apply by hand for some reason<br>patch -p1 < lignumCAD-ui.patch<br>patch -p1 < lignumCAD-xft.patch<br><br>edit lignumCAD.pro<br>  find unix:INCLUDEPATH, remove "local" from the paths<br>


  comment out both lines with QMAKE_LIBS_QT_THREAD<br><br>This is as far as I have gotten.  It fails to build with the following:<br><br>daworm@Compaq-A900:~/src/lignumCAD$ qmake lignumCAD.pro<br>daworm@Compaq-A900:~/src/lignumCAD$ make<br>


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<br>


In file included from ./wine/windef.h:16:0,<br>                 from ./emf.h:27,<br>                 from gl2ps.h:34,<br>                 from gl2ps.c:33:<br>./wine/winnt.h:45:3: error: #error Unknown CPU architecture!<br>


./wine/winnt.h:98:0: warning: "APIENTRY" redefined [enabled by default]<br>/usr/include/GL/gl.h:107:0: note: this is the location of the previous definition<br>In file included from ./wine/windef.h:16:0,<br>                 from ./emf.h:27,<br>


                 from gl2ps.h:34,<br>                 from gl2ps.c:33:<br>./wine/winnt.h:1036:2: error: #error You need to define a CONTEXT for your CPU<br>./wine/winnt.h:1039:1: error: unknown type name ‘CONTEXT’<br>In file included from ./emf.h:28:0,<br>


                 from gl2ps.h:34,<br>                 from gl2ps.c:33:<br>./wine/winbase.h:1243:44: error: unknown type name ‘CONTEXT’<br>./wine/winbase.h:1377:1: error: unknown type name ‘CONTEXT’<br>make: *** [.obj/gl2ps.o] Error 1<br>


<br>I'm on Xubuntu 12.04.  If anyone knows a quick workaround/fix, I'd greatly appreciate it.<br><br>Thanks,<br>  Jeff.<br><br>
<br>_______________________________________________<br>
Chugalug mailing list<br>
<a href="mailto:Chugalug@chugalug.org">Chugalug@chugalug.org</a><br>
<a href="http://chugalug.org/cgi-bin/mailman/listinfo/chugalug" target="_blank">http://chugalug.org/cgi-bin/mailman/listinfo/chugalug</a><br>
<br></blockquote></div><br></div>