Hi,

I think Boost is fine for PoDoFoBrowser as it targets a smaller audience. 
Regarding the model used, I might have some useful information for you. 
Trolltech was so glad to sponsor my attendence at Developer Days in Munich 
two weeks ago. They had an interesting speech on models (slides can be found 
here: http://labs.trolltech.com/page/Projects/DevDays/DevDays2007). The 
interesting part is that trolltech has some model test classes available at 
http://labs.trolltech.com/page/Projects/Itemview/Modeltest which test your 
model implementation during runtime!

Optionall boost support in PoDoFo is fine, too. Maybe you get me finally with 
it :) Right now it is not optional though. I just got the following error 
when compiling latest PoDoFo:

[EMAIL PROTECTED]:~/Desktop/Programming/podofo/podofo-build (2)>
_make
WANT_LIB64 unset; assuming normal library directory names
Will install libraries to /usr/local/lib
Both PODOFO_BUILD_SHARED and PODOFO_BUILD_STATIC set
  so disabling shared library generation (CMake version < 2.5)
Using gcc specific compiler options
Have gcc 4.x
Found zlib headers in /usr/include, library at /usr/lib64/libz.so
-- Found LIBJPEG: /usr/lib64/libjpeg.so
Found libjpeg headers in /usr/include, library at /usr/lib64/libjpeg.so
-- Found TIFF: /usr/lib64/libtiff.so
Found libtiff headers in /usr/include, library at /usr/lib64/libtiff.so
Found freetype library at /usr/lib64/libfreetype.so, 
headers /usr/include/freetype2;/usr/include
Looking for Boost.
Boost is optional, so don't worry if it is not found.
Set the BOOST_ROOT env var if you have problems.
CMake Error: BOOST_DIR is not set.  It must be set to the directory containing 
BOOSTConfig.cmake in order to use BOOST.
If you don't need graph support you can ignore the above error.
Building static PoDoFo library
-- Configuring done
make: *** [cmake_check_build_system] Fehler 255

I have libboost-graph (and of course the dev package) installed. Somehow I do 
not even have a BOOSTConfig.cmake on my system. 

After getting the attached BOOSTConfig.cmake and setting BOOST_DIR everything 
build fine.

Is there any chance to get this working without BOOSTConfig.cmake? BTW, I 
tried to ignore the error, but it came whenever I tried to run make.

        Dom


Am Thursday 08 November 2007 schrieb Leonard Rosenthol:
> No question that you need a DAG for handling PDF objects - esp. for
> search.  It's also potentially useful for object use computation
> (such as garbage collection).
>
> But as discussed before - right now you'd definitely want it done
> optionally.
>
> Leonard
>
> On Nov 8, 2007, at 7:04 AM, Craig Ringer wrote:
> > Hi
> >
> > I'm just writing this to the list as a bit of a note/idea in case I
> > don't get to it:
> >
> > I'm wondering if Boost::Graph might be useful, in combination with an
> > external adapter or by building a new graph, for traversing PDF data
> > structures for (eg) searches. I've wanted to add search to
> > PoDoFoBrowser
> > for a while, but it's not a trivial thing to do on a cyclic directed
> > graph (which is what the relationship between PDF objects looks like).
> > Boost::Graph is made to handle that sort of thing. It might be handy
> > enough for other apps for it to be worth including optional support
> > (by
> > way of an external adapter, graph construction routines, or
> > whatever) in
> > podofo its self too.
> >
> > It might also prove handy if it can provide a better base for
> > implementing the underlying data model for the tree view in
> > PoDoFoBrowser. I'm much less sure of that, though.
> >
> > Anyway, that's just an idea I might have a play with if I get a
> > chance.
> >
> > --
> > Craig Ringer
> >
> > ----------------------------------------------------------------------
> > ---
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Podofo-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/podofo-users
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
##########################################################################
# Boost Configuration Information                                        #
##########################################################################
#
# This module defines several variables that provide information about
# the target compiler and platform.
#
# Variables defined:
# 
#   BOOST_TOOLSET:
#     The Boost toolset name, used by the library version mechanism to
#     encode the compiler and version into the name of the
#     library. This toolset name will correspond with Boost.Build
#     version 2's toolset name.
#
#   MULTI_THREADED_COMPILE_FLAGS:
#     Compilation flags when building multi-threaded programs.
#
#   MULTI_THREADED_LINK_FLAGS:
#     Linker flags when building multi-threaded programs.
#

# Toolset detection.
if (NOT BOOST_TOOLSET)
  if (MSVC60)
    set(BOOST_TOOLSET "vc6")
  elseif(MSVC70)
    set(BOOST_TOOLSET "vc7")
  elseif(MSVC71)
    set(BOOST_TOOLSET "vc71")
  elseif(MSVC80)
    set(BOOST_TOOLSET "vc80")
  elseif(MSVC)
  elseif(BORLAND)
    set(BOOST_TOOLSET "bcb")
  elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
    # Execute GCC with the -dumpversion option, to give us a version string
    execute_process(
      COMMAND ${CMAKE_CXX_COMPILER} "-dumpversion" 
      OUTPUT_VARIABLE GCC_VERSION_STRING)
    
    # Match only the major and minor versions of the version string
    string(REGEX MATCH "[0-9]+.[0-9]+" GCC_MAJOR_MINOR_VERSION_STRING
      "${GCC_VERSION_STRING}")
    
    # Strip out the period between the major and minor versions
    string(REGEX REPLACE "\\." "" BOOST_VERSIONING_GCC_VERSION
      "${GCC_MAJOR_MINOR_VERSION_STRING}")
    
    # Set the GCC versioning toolset
    set(BOOST_TOOLSET "gcc${BOOST_VERSIONING_GCC_VERSION}")
  endif(MSVC60)
endif (NOT BOOST_TOOLSET)

# Determine whether we should use library versioning by default
if(BOOST_TOOLSET)
  set(BUILD_VERSIONED_BY_DEFAULT ON)
else(BOOST_TOOLSET)
  set(BUILD_VERSIONED_BY_DEFAULT OFF)
endif(BOOST_TOOLSET)

option(
  BUILD_VERSIONED 
  "Use versioned library names, e.g., boost_filesystem-gcc41-1_34" 
  ${BUILD_VERSIONED_BY_DEFAULT})

if(BUILD_VERSIONED)
  # Set BOOST_TOOLSET to the string that describes the
  # Boost.Build toolset. This is used as part of the versioned library
  # name.
  if(NOT BOOST_TOOLSET)
    message("Unable to determine compiler toolset. Library versioning cannot be 
used")
    set(BUILD_VERSIONED OFF CACHE BOOL 
      "Use versioned library names, e.g., boost_filesystem-gcc41-1_34" FORCE)
    set(BOOST_LIBRARY_VERSION_STRING "")
    set(BOOST_LIBRARY_VERSION_STRING_DEBUG "")
  endif(NOT BOOST_TOOLSET)
endif(BUILD_VERSIONED)

# Multi-threading support
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
  set(MULTI_THREADED_COMPILE_FLAGS "-pthreads")
  set(MULTI_THREADED_LINK_FLAGS "-lrt")
elseif(CMAKE_SYSTEM_NAME STREQUAL "BeOS")
  # No threading options necessary for BeOS
elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSD")
  set(MULTI_THREADED_COMPILE_FLAGS "-pthread")
elseif(CMAKE_SYSTEM_NAME STREQUAL "DragonFly")
  # DragonFly is  FreeBSD bariant
  set(MULTI_THREADED_COMPILE_FLAGS "-pthread")
elseif(CMAKE_SYSTEM_NAME STREQUAL "IRIX")
  # TODO: GCC on Irix doesn't support multi-threading?
elseif(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
  # TODO: gcc on HP-UX does not support multi-threading?
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
  # No threading options necessary for Mac OS X
elseif(UNIX)
  # Assume -pthread and -lrt on all other variants
  set(MULTI_THREADED_COMPILE_FLAGS "-pthread")
  set(MULTI_THREADED_LINK_FLAGS "-lrt")  
endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")

Attachment: pgpYYaW5KXzmd.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to