Re: Re: [Scribus] Qt/Mac port of Scribus
Jon S <[email protected]> Sat, 24 Jan 2004 15:24:08 -0600
| Newsgroups | gmane.comp.kde.darwin,gmane.comp.graphics.scribus |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 what we have been trying is ifdef first to see: 1. if it compiles (or at least gets past the error) and 2. to see if ifdefing breaks the app badly RangerRick and some of my other more knowegeable peers have told me that alot of the X11 related stuff is from workarounds for when things were broken in various places. We are finding, correct me if I am wrong, alot of the X11 code that we are ifdefing out is not needed. Cheers! - -pH1nk On Jan 24, 2004, at 1:07 PM, Kevin Walzer wrote: > Thanks to a patch provided by Ranger Rick, Scribus/Mac is no longer > choking when generating the makefiles. This allows me to move a little > further ahead into getting a working build. I've been trying a > different approach over the past couple of days, just to see what > happens--instead of working with the standard ./configure (which dies > at predictable places now) or qmake -macx/qmake -macxpbuilder (which > does funny things to the file names), I have been working with the > KDE-Darwin's build of KDevelop 3.0 on the Mac, running natively. It > runs reasonably fast, and more importantly, doesn't screw up the file > names like Xcode/qmake does (foo.moc isn't changed to moc_foo.cpp). > This allows me to get to actual issues with the code that might need > to be addressed in porting to the Mac. > > So far the three tries I've made at building tend to hang up on > scpainter.h and scpainter.cpp, which I gather is a standard KDE > library/component. The X11 dependencies here seem to be causing some > problems. In an earlier build, things hung up on GC/gc (GC is used as > a type but not defined as a type) which Martin Castobel tells me is > Qt's X11 graphics context. I commented this line out in the > scpainter.h file and then got these error messages: > > *cd /Users/kevinwalzer/Desktop/scribus-1.1.4 && make -k > *compiling fi (g++) > *scpainter.cpp:24:6: warning: "_MSC_VER" is not defined > *scpainter.cpp:88: error: `x11Display' undeclared (first use this > function) > *scpainter.cpp:89: error: `x11Screen' undeclared (first use this > function) > *scpainter.cpp:89: error: `x11Depth' undeclared (first use this > function) > *scpainter.cpp:91: error: `gc' undeclared (first use this function) > *scpainter.cpp:104: error: `x11Display' undeclared (first use this > function) > *scpainter.cpp:129: warning: invalid conversion from `void*' to `long > unsigned int' > *compiling fi (g++) > *helpbrowser.cpp:79: error: `PREL' undeclared (first use this function) > **** Exited with status: 2 *** > > I'm assuming that the X11 stuff referenced here is derived from > Graphics Context. I probably need to replace this with some Mac OS > X-specific material, but I'm not sure what. Or is this something I can > ifdef out? I'm not real knowledgable about how to proceed on ifdef, so > any advice is appreciated. > > _______________________________________________ > KDE-Darwin mailing list > [email protected] > http://www.opendarwin.org/mailman/listinfo/kde-darwin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAEuJ4EzC4Fc844K8RAhRdAJ4hWeuK8v2uC7tfaBDjaK2NUwEwyACeMDaO EqL75lFgEJZ5PLisPT8gQBM= =yIK5 -----END PGP SIGNATURE-----