Hello!

We tried to build the latest SVN rev. 1699 of PoDoFo in Linux Ubuntu 
14.04 LTS x64.
We have CMake 2.8.12.2, and CMake step went fine.

But we got this error during build:
Linking CXX static library libpodofo.a
[ 66%] Built target podofo_static
Scanning dependencies of target ContentParser
[ 66%] Building CXX object 
test/ContentParser/CMakeFiles/ContentParser.dir/main.cpp.o
Linking CXX executable ContentParser
c++: error: ${CMAKE_CXX_FLAGS}: No such file or directory
c++: fatal error: no input files
compilation terminated.
make[2]: *** [test/ContentParser/ContentParser] Error 4
make[1]: *** [test/ContentParser/CMakeFiles/ContentParser.dir/all] Error 2
make: *** [all] Error 2


It looks that the root of this problem is the following line in CMakeLists:
     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
         -Wall \
         -Woverloaded-virtual \
         -Wswitch-enum \
         -Wcast-qual \
         -Wwrite-strings \
         -Wredundant-decls \
         -Wreorder"
         #-Wold-style-cast
        )

Simple changing this line to:

     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Woverloaded-virtual 
-Wswitch-enum -Wcast-qual -Wwrite-strings -Wredundant-decls -Wreorder")

Solves this problem!

Probably someone who has write access to SVN PoDoFo repository can 
update it.
Thank you very much!

-- 
Cheers,
Peter


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to