From: Stefan J. <st...@gr...> - 2007-08-16 13:25:25
|
Am Mi, 11.07.2007, 13:23, schrieb Markus: > Hi Stefan! Hi Markus, > The new codepeace compiles without any problems. > > How can it be tested? Just printing a circuit? Printing into a > postscriptfile works fine! > > Thanks! I finally managed to commit the change (which I still wonder about) into CVS... Cheers, Stefan. >> > I have tried to build the latest qucs version 0.0.12. Note: All >> previous >> > qucs versions can be build successfully on my system. >> > >> > I got following result: >> > >> > make[3]: Entering directory `/home/meisi/murmel/qucs-0.0.12/qucs' >> > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include >> > -I/usr/lib/qt3/include -DQT_NO_DEBUG -DQT_NO_CHECK -DQT_THREAD_SUPPORT >> > -D_REENTRANT -O2 -pipe -fno-exceptions -fno-check-new -MT >> schematic.o >> > -MD -MP -MF ".deps/schematic.Tpo" -c -o schematic.o schematic.cpp; \ >> > then mv -f ".deps/schematic.Tpo" ".deps/schematic.Po"; else rm -f >> > ".deps/schematic.Tpo"; exit 1; fi >> > schematic.cpp: In member function `virtual void >> > Schematic::print(QPrinter*, >> > QPainter*, bool, bool)': >> > schematic.cpp:477: error: syntax error before `.' token >> > schematic.cpp:478: error: request for member `logicalDpiX' in >> > `smetrics', which >> > is of non-aggregate type `QPaintDeviceMetrics ()(...)' >> > schematic.cpp:479: error: request for member `logicalDpiY' in >> > `smetrics', which >> > is of non-aggregate type `QPaintDeviceMetrics ()(...)' >> > make[3]: *** [schematic.o] Fehler 1 >> > >> > >> > In line 477 we find >> > >> > QPaintDeviceMetrics smetrics(QPainter(viewport()).device()); >> > >> > changing viewport() to "this" to get the make through removes the >> error >> > (but probably not the problem). The rest of the program is then build >> > properly. >> > >> > Since my system is rather old my question is: Does somebody have a >> > similar problem there and was able to solve it and which g++ version >> and >> > which qt pakages are known to work properly for building v12? >> > >> > meisi@linux:~> g++ --version >> > g++ (GCC) 3.3.3 (SuSE Linux) >> > (suse 9.1) >> > >> > meisi@linux:~> rpm -qa | grep qt3 >> > qt3-man-3.3.1-32 >> > qt3-devel-3.3.1-33 >> > qt3-3.3.1-33 >> > qt3-devel-doc-3.3.1-33 >> > qt3-non-mt-3.3.1-36 >> > qt3-examples-3.3.1-32 >> > qt3-devel-tools-3.3.1-32 >> > qt3-extensions-3.3.1-32 >> >> This is odd. Thomas already reported this. He was using g++ 3.3.1-24 >> and got the same, but I still dont know the exact reason for it since >> other versions seem to swallow it correctly. The fix we worked out was >> this: >> >> From: >> >> > QPaintDeviceMetrics smetrics(QPainter(viewport()).device()); >> > float screenDpiX = (float)smetrics.logicalDpiX(); >> > float screenDpiY = (float)smetrics.logicalDpiY(); >> >> To: >> >> > QPainter pa(viewport()) >> > QPaintDeviceMetrics smetrics(pa.device()); >> > float screenDpiX = (float)smetrics.logicalDpiX(); >> > float screenDpiY = (float)smetrics.logicalDpiY(); >> >> Both are equivalent, but one works and the other not. Can you please >> verify that on your system? |