On Thu, Feb 21, 2008 at 03:43:52PM +0100, Michal Hocko wrote: > 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.
I found out and fixed problem. Please try current CVS. Just for record: Installation targets are specified by qmake objects e.g. pdfedit.path = $$BIN_PATH pdfedit.files = pdfedit INSTALLS += pdfedit This one should be used for install_pdfedit makefile target (shown above). BUT, files named in pdfedit.files MUST EXIST when Makefile is generated, what obviously is not our case, because that file is created afterwards. I didn't notice this before, because I have allways done make && make install. Note that the second one generates src/gui/Makefile.qt again and binary already exists in that moment so install target (pdfedit binary) can create install_pdfedit without any problems. After some diging in qmake documentation, I have found that target object is used for precisely this purpose, so hopefully, this will be ok now. [...] Best regards -- 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
