On Thu, Feb 21, 2008 at 11:04:17PM +1000, James Bird wrote:
>> So, you have used only --with-root parameter?
>
> I used:
>
> ./configure --with-root-dir=/Users/James/PDFedit --with-boost=/sw
>
>> Compilation was successful according tour output files. There were
>> only some minor warnings.
>> Could you send also generated Makefile.flags and src/gui/Makefile.qt
>> files? It seems that something could be broken there.
I have reviewed those files and Makefile.flags was generated (by
configure) correctly.
However Makefile.qt is somehow broken (it is generated by qmake). It
doesn't contain target which installs binary!
My Makefile.qt contains:
install_pdfedit: all
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)$(bindir)/" || $(MKDIR)
"$(INSTALL_ROOT)$(bindir)/"
-$(INSTALL_FILE) "pdfedit" "$(INSTALL_ROOT)$(bindir)/"
Your, doesn't contain anything which contains $(bindir) (directory set
by configure where binary should go).
I have no idea where can be a problem. Maybe our src/gui/pdfedit.pro file
which is used as template for qmake to create Makefile.qt is not
portable to MAC.
>> Nevertheless, you can try to run application with
>> src/gui/pdfedit in the meantime. Hard part is behind us (I do believe)
>> and the rest should be easy.
>
>
> In Users/James/Software/PDFEditor/src/gui/ there is a directory called
> pdfedit.app. In /Users/James/Software/PDFEditor/pdfedit-test/src/gui/
> pdfedit.app/Contents/MacOS there is an executable called pdfedit.
Yes, qmake can decide to put result binary wherever it wants. I have
never seen this location, so I proposed simple src/gui/pdfedit which is
used for almost all linux boxes.
> I tried ./pdfedit in that directory and got:
>
> James:MacOs James$ ./pdfedit
> Error: No display font for 'Courier'
> Error: No display font for 'Courier-Bold'
> Error: No display font for 'Courier-BoldOblique'
> Error: No display font for 'Courier-Oblique'
> Error: No display font for 'Helvetica'
> Error: No display font for 'Helvetica-Bold'
> Error: No display font for 'Helvetica-BoldOblique'
> Error: No display font for 'Helvetica-Oblique'
> Error: No display font for 'Symbol'
> Error: No display font for 'Times-Bold'
> Error: No display font for 'Times-BoldItalic'
> Error: No display font for 'Times-Italic'
> Error: No display font for 'Times-Roman'
> Error: No display font for 'ZapfDingbats'
This seems like problem with freetype fonts. However Makefile.flags says
that it was detected correctly with proper compiler flags and libraries.
So again, no clue what can be wrong. Have you installed these fonts?
Are they configured? I don't have any idea about font management under
MAC OS.
> 2:GUI:settings.cc:initSettings:133: Main configuration file not found.
> PDFedit is unlikely to start
> 2:GUI:settings.cc:initSettings:134: Searched in: /usr/local/share/
> pdfedit/pdfeditrc
> 2:GUI:settings.cc:initSettings:135: Searched in: /Users/James/Software/
> PDFEditor/pdfedit-test/src/gui/pdfedit.app/Contents/MacOS/pdfeditrc
>
> Fatal Error!
I see. Configuration file is not found. This is caused because you
haven't installed the package yet. Unfortunately we have primary
configuration file path hard-coded to the binary (I hope that this will
change in future - it is tracked as feature request in our bug tracker
system under number 211).
You have configured package with --with-root-dir which only says that
everything is installed under alternative root directory rather than /
(so that you can see what everything would be installed without a risk
of messing your system files *or* for packagers who want to create
system/platform package - deb, rpm, ...).
I believe that you didn't want to use --with-root-dir but rather -prefix
parameter. This parameter is used to define where you want to install
(note that if you specify both parameters then prefix is relative to
the specified root).
Sorry for confusion, I just wanted to know what everything is
installed. See README for more information.
So I would suggest (for your special case):
cd PDFEDIT_DIR
make distclean # only if you have compiled in that directory before
./configure -prefix=/Users/James/PDFedit --with-boost=/sw
make && make install
cp /src/gui/pdfedit.app/Contents/MacOS/pdfedit /Users/James/PDFedit/bin
Hopefully, binary is the only one missing thing in installation targets.
> Missing item in config:
> gui/items/MainMenu
>
> James.
Uff, MAC OS looks pretty complicated when you want to compile third
party stuff.
--
Michal Hocko
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support