On Oct 23, 2010, at 1:41 PM, Tim Edwards wrote:

> Kuba,
> 
>> The SVN repository snapshot is available for download from 
>> <http://home.wowway.com/~mandasoft/xcircuit-8.tar.gz>.
>> The codebase has been updated to 3.7.8.
>> To fetch & compile on unices, assuming you have Qt 3.6/3.7:
>> echo $QTPATH
>> echo $QMAKESPEC
>> # both should show something with Qt is installed for development
>> bash
>> curl -O http://home.wowway.com/~mandasoft/xcircuit-8.tar.gz
>> tar -zxf xcircuit-8.tar.gz
>> svn co file:///$(pwd)/xcircuit xc
>> cd xc
>> qmake xcircuit.pro PREFIX=/path/to/xcircuit/install
>> make
>> ./xcircuit
> 
> Thanks for the detailed instructions, although my main problem was
> finding Qt---I didn't get anything helpful like a pointer to
> /usr/lib/qt4/bin/qmake from somewhere in my normal path.  Anyway,
> I managed to run qmake, get the Makefile, but here's what I get on
> running "make":
> 
> ------------------------------------------------------------------------
> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DRESOURCES_DIR=\"/opt/xcircuit\" 
> -DBUILTINS_DIR=\"/opt/xcircuit\" -DPROLOGUE_DIR=\"/opt/xcircuit\" 
> -DPROLOGUE_FILE=\"xcircps2.pro\" -DSCRIPTS_DIR=\"/opt/xcircuit\" 
> -DSTARTUP_FILE=\"startup.script\" -DUSER_RC_FILE=\".xcircuitrc\" 
> -DGS_EXEC=\"gs\" -DTEMP_DIR=\"/tmp\" -DPROG_REVISION=165 -DPROG_VERSION=3.6 
> -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 
> -DHAVE_DIRENT_H=1 -DHAVE_U_CHAR=1 -DXC_QT=1 -DHAVE_LIBZ=1 -DQT_NO_DEBUG 
> -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
> -I/opt/qtsdk-2010.05/qt/mkspecs/linux-g++ -I. 
> -I/opt/qtsdk-2010.05/qt/include/QtCore -I/opt/qtsdk-2010.05/qt/include/QtGui 
> -I/opt/qtsdk-2010.05/qt/include -I. -o colors.o colors.cpp
> 
> In file included from xcqt.h:15,
>                from colors.cpp:10:
> 
> xctypes.h:29: error: conflicting declaration 'typedef class QPainter* GC'
> /opt/qtsdk-2010.05/qt/include/QtGui/qwindowdefs.h:117: error: 'GC' has a 
> previous declaration
> as 'typedef struct _XGC* GC'
> -------------------------------------------------------------------------
> 
> with similar errors for XEvent and Display;  this seems to be a system
> issue, probably having to do with the fact that you are running on a
> Mac and so don't encounter any libraries defining such X11 types as 'GC'.
> I can't just remove the "-I/opt/qtsdk-2010.05/qt/include/QtGui" without
> getting all sorts of other errors, of course, so I'm not sure how to go
> about fixing it without a wholesale replacement of the use of 'GC',
> 'XEvent', and 'Display' (plus, I expect others will show up once it gets
> past compiling colors.cpp).  I decided I wouldn't waste any more time on
> it in case you know of an easy fix.
> 
> There is also a 'real' error at xcqt.h, line 66:
> 
> void XClearArea(Display*, Window w, int x, int y, unsigned w, unsigned h, 
> bool exposures);
> 
> My compiler, at least, doesn't like "w" repeated, even if it is just a
> throwaway name in a declaration;  easily enough corrected by changing
> the first "w" to "win".
>                                               ---Tim

Your diagnosis is right. I will have to clean it up. I have a CentOS image to 
compile
it for X11, so I'll make sure it works and submit an update.

As for XClearArea: Apple's g++ 4.2 doesn't seem to care, I will of course 
change it.

Thanks for letting me know, I'll post as soon as I have fixes done.

If you're on Fedora, you need both qt and qt-devel packages. Then simply relogin
and qmake etc. should be in your path. Or, in the terminal session, dive into a 
login shell:
$ bash -

This saves on having to relogin.

-- Kuba
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to