Installing Scribus 1.3.4.x or lower from CVS sources on Mac OS X/Aqua: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
 
(27 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:MacOS]]
{{Update}}
{{HOWTO Index}}
[[Category:Installation]][[Category:EN]] [[Category:MacOS]][[Category:Outdated]]
----
 
=Introduction=
=Introduction=
Thanks to Andreas Vox and Craig Ringer, recent Scribus compiles straight from CVS on Mac/Aqua. Andreas Vox plans to organize a preview binary bundle which can be simply dropped into the system. If some daring alpha testers use it and report all errors to the developers, we might have a fully functional Aqua version when 1.3.0 final comes out. :-)
Thanks to Andreas Vox and Craig Ringer, recent Scribus compiles straight from CVS on Mac/Aqua. Andreas Vox periodically delivers updated preview binary bundles which can be simply dropped into the system — please download it from [http://www.scribus.net/index.php?name=Sections&req=viewarticle&artid=3&page=1 Scribus on Aqua/Mac OS X]. Remember to [http://bugs.scribus.net report all errors to the Scribus bug submission website].


Scribus 1.3.0cvs is not for production use.
Scribus 1.3.Xcvs is not for production use.
The current build on Mac/Aqua has some problems of its own:
The current build on Mac/Aqua has some problems of its own:


Line 13: Line 11:
* Focus problems with Edit mode (use toolbar button instead of double-click)
* Focus problems with Edit mode (use toolbar button instead of double-click)
* Aqua buttons need more space than X11 ones, that causes layout problems, notably with the page selector.
* Aqua buttons need more space than X11 ones, that causes layout problems, notably with the page selector.
* Colors are wrong for images in page preview.
* Needs a special freetype build to access native Mac fonts.
* Needs a special freetype build to access native Mac fonts.
* It's not really tested, so there may be much more.
* It's not really tested, so there may be much more.
Line 24: Line 21:


  2. Install Freetype 2.  
  2. Install Freetype 2.  
     We recommend to build it yourself with "./configure --enable-old-mac-fonts"
     We recommend to build it yourself with "./configure --enable-old-mac-fonts"


  3. Install Fontconfig 2
  3. Install Fontconfig 2


  4. Check that "freetype-config" and "pkgconfig fontconfig" report those libraries.
  4. Check that "freetype-config" and "pkgconfig fontconfig" report those libraries.


  5. Install libart, lcms, libtiff, libjpeg, and libpng via fink.
  5. Install libart, lcms, libtiff, libjpeg, and libpng via fink or using darwinports command ("sudo port install xxx")


  6. Checkout Scribus 1.3 from cvs or use a snapshot
  6. Checkout Scribus 1.3 from cvs or use a snapshot
Line 40: Line 37:
     export CPPFLAGS LDFLAGS QTDIR
     export CPPFLAGS LDFLAGS QTDIR


  8. run "make -f Makefile.cvs"
  8. run "make -f Makefile.cvs"


  9. unpack the Scribus.app skeleton
  9. unpack the Scribus.app skeleton


  10. run "./configure --enable-mac --enable-bundle --enable-debug \
  10. make sure you have gcc/g++ 3.3 and not gcc/g++ 4.0 which comes with
    Tiger by default.
 
11. run "./configure --enable-mac --enable-bundle --enable-debug \
         --prefix=/absoute/path/to/Scripus.app/Contents/  \
         --prefix=/absoute/path/to/Scripus.app/Contents/  \
         --with-extra-libs=/sw/lib --with-extra-includes=/sw/include"
         --with-extra-libs=/sw/lib --with-extra-includes=/sw/include"
  ** --enable-debug is mandatory since ld chokes on '-s' when linking  modules
  ** --enable-debug is mandatory since ld chokes on '-s' when linking  modules
  ** either CPP/LDFLAGS or --extra-include/libs might be superflous but I didn't try that
  ** either CPP/LDFLAGS or --extra-include/libs might be superflous but I didn't try that
   
   
  11. make
  12. make
  12. make install
  13. make install
  13. open Scribus.app :-)
  14. open Scribus.app :-)


You can also do it the old way:  
You can also do it the old way:  
-  leave out "--enable-bundle" in step 10 and choose another prefix
-  leave out "--enable-bundle" in step 10 and choose another prefix
-  copy scribus/scribus to /absoute/path/to/Scripus.app/Contents/MacOS/scribus
-  copy scribus/scribus to /absoute/path/to/Scripus.app/Contents/MacOS/scribus
== other problems that might occur ==
* First of all the compiler, for me g++-4.0 didn't work so I had to symlink /usr/bin/g++ to /usr/bin/g++3
* Qt 3.3.4 can be found as binary package at http://naranja.umh.es/~atg/software.html
* Python might miss the /usr/lib/libpython2.3.a the solution is a symlink to /usr/lib/libpython2.3.dylib


==Some caveats==
==Some caveats==
* Some dialogs don't have a close button, ESC usually works though.
* Some dialogs don't have a close button, ESC usually works though.
* Preview shows wrong colors for images.
* Preferences and About dialogs are now in menu "scribus"!
* Preferences and About dialogs are now in menu "scribus"!
** This is by design. It's done automatically by Qt to fit MacOS/X interface standards. "NOTABUG".
** This is by design. It's done automatically by Qt to fit MacOS/X interface standards. "NOTABUG".
* Some fonts might not work.
* <fill in yourself>
* <fill in yourself>


'''See also:'''
'''See also:'''
* [http://bugs.scribus.net/view.php?id=2015 Summary bug report for Scribus/Aqua]
* [[Installing Scribus on Mac OS_X]] - Howto on installing Scribus  (Fink/X11)
* [[Installing Scribus on Mac OS_X]] - Howto on installing Scribus  (Fink/X11)
* [[MacOSX version of Scribus]] - Ongoing discussion on bringing a native version of Scribus to Mac (hot!)
* [[MacOSX version of Scribus]] - Ongoing discussion on bringing a native version of Scribus to Mac

Latest revision as of 21:18, 21 February 2023

Update.png
This article is outdated. Please update the information to reflect the current status or knowledge. We will deprecate/delete in the future.

Introduction

Thanks to Andreas Vox and Craig Ringer, recent Scribus compiles straight from CVS on Mac/Aqua. Andreas Vox periodically delivers updated preview binary bundles which can be simply dropped into the system — please download it from Scribus on Aqua/Mac OS X. Remember to report all errors to the Scribus bug submission website.

Scribus 1.3.Xcvs is not for production use. The current build on Mac/Aqua has some problems of its own:

  • It's slow (Part of this may be to do with menus, part is the sub-optimal canvas code)
  • Dialogs behave strangely (no close button, menu disappears, ...)
  • Focus problems with Edit mode (use toolbar button instead of double-click)
  • Aqua buttons need more space than X11 ones, that causes layout problems, notably with the page selector.
  • Needs a special freetype build to access native Mac fonts.
  • It's not really tested, so there may be much more.

Installation

What to do

1. Install Qt/Mac (not the X version!)
2. Install Freetype 2. 
    We recommend to build it yourself with "./configure --enable-old-mac-fonts"
3. Install Fontconfig 2
4. Check that "freetype-config" and "pkgconfig fontconfig" report those libraries.
5. Install libart, lcms, libtiff, libjpeg, and libpng via fink or using darwinports command ("sudo port install xxx")
6. Checkout Scribus 1.3 from cvs or use a snapshot
7. Set some environment variables:
    QTDIR=/absolut/path/to/qt/dir
    CPPFLAGS=-I/sw/lib 
    LDFLAGS=-L/sw/lib 
    export CPPFLAGS LDFLAGS QTDIR
8. run "make -f Makefile.cvs"
9. unpack the Scribus.app skeleton
10. make sure you have gcc/g++ 3.3 and not gcc/g++ 4.0 which comes with
    Tiger by default.
11. run "./configure --enable-mac --enable-bundle --enable-debug \
        --prefix=/absoute/path/to/Scripus.app/Contents/  \
        --with-extra-libs=/sw/lib --with-extra-includes=/sw/include"
** --enable-debug is mandatory since ld chokes on '-s' when linking  modules
** either CPP/LDFLAGS or --extra-include/libs might be superflous but I didn't try that

12. make
13. make install
14. open Scribus.app :-)

You can also do it the old way: - leave out "--enable-bundle" in step 10 and choose another prefix - copy scribus/scribus to /absoute/path/to/Scripus.app/Contents/MacOS/scribus

other problems that might occur

  • First of all the compiler, for me g++-4.0 didn't work so I had to symlink /usr/bin/g++ to /usr/bin/g++3
  • Qt 3.3.4 can be found as binary package at http://naranja.umh.es/~atg/software.html
  • Python might miss the /usr/lib/libpython2.3.a the solution is a symlink to /usr/lib/libpython2.3.dylib

Some caveats

  • Some dialogs don't have a close button, ESC usually works though.
  • Preferences and About dialogs are now in menu "scribus"!
    • This is by design. It's done automatically by Qt to fit MacOS/X interface standards. "NOTABUG".
  • <fill in yourself>

See also: