On Wed, May 02, 2007 at 03:36:26PM -0300, Alejandro Pulver wrote:
> Hello.
> 
> I was making a FreeBSD port (it's like a Gento .ebuild) of the
> application, but I can't make (some parts of) it find the
> headers/libraries which are in /usr/{local,X11R6}/{include,lib}. I am
> passing CFLAGS/LDFLAGS environment variables to the configure script,
> but they don't get into files generated by 'qmake' and I don't know how
> to pass variables to it. The compilation fails here:

If QT is installed properly, qmake should use correct CFLAGS (BTW it 
should be CXXFLAGS for C++) and LDFLAGS (at least theoretically :) to get 
all necessary libraries. Maybe the problem is with xpdf which have its own 
configure and most variables are not passed probably between them. This 
may need fixing.
Which parts fail to compile?

> QOutputDevPixmap.cpp:27:20: qimage.h: No such file or directory

This is typical error when qmake from QT4 instead of QT3 is used.
Can you re-run ./post_configure script in root of source tree and send me 
its output? Probably qmake was wrongly detected and qmake from qt4 was 
used (if qt3 make is not found at all, this can happen). PDFedit is not 
compatible with qt4 (now, but qt4 compatibility is on the way, half of the 
app already compile under qt4), since qt3 and qt4 are incompatible and 
many things are different between qt3 and qt4.

BTW which freebsd version are you using? I may try to reproduce it here 
with the same settings ... 

> [...]
> *** Error code 1
> Stop in pdfedit-0.3.0/src/kpdf-kde-3.3.2.
> *** Error code 1
> Stop in pdfedit-0.3.0/src.
> *** Error code 1
> Stop in pdfedit-0.3.0.
> *** Error code 1
> 
> Do you know how can I pass that information to 'qmake'?

I'm not sure, but I am afraid qmake ignores environment variables.
Though if you edit config.pro.in.in (or config.pro generated from it by 
./configure) in root of pdfedit source tree, you may try stuffing the 
variables there for testing. All project files (except those from qsa) 
include it. But I am afraid the problem will be in xpdf.

BTW pdfedit 0.3.0 is old, use 0.3.1, many bugs was fixed in 0.3.1 ... 

Martin Petricek

   GPG/PGP Public key:  http://www.petricek.net/petricm.pgp
Fingerprint 6AA8 FFCE C061 1CB2 55F0  A1F3 3AA9 EB4F BD50 C1B8
/------------------------------------------------------------\
| WWW:                    http://www.petricek.net/           |
\------------------------------------------------------------/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to