jun-zhang / fop-miniscribus

Automatically exported from code.google.com/p/fop-miniscribus
1 stars 0 forks source link

Linux: Compiler Error #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

svn co http://fop-miniscribus.googlecode.com/svn/trunk/fop_miniscribus.2.0.0/ 
scribe
 cd scribe
 ./configure
 make

What is the expected output? What do you see instead?
In file included from main.cpp:3:0:
Config.h:4:26: fatal error: xslt_convert.h: File or directory not found
compilation terminated.

I get errors about missing modules. For me it looks as if 'make' doesn't search 
for source files in the modules directory.

What version of the product are you using? On what operating system?
The current svn version on openSuse 11.3

Original issue reported on code.google.com by joess...@gmail.com on 3 Feb 2013 at 4:52

GoogleCodeExporter commented 9 years ago
Hi,

Same issue for me (on Ubuntu),

I step forward little bit doing a simple link (because I didn't successfully 
changed the MakeFile include paths)
ln -s /usr/include/libxml2/libxml src/

But I remain stuck anyway :

g++ -c -m64 -pipe -O2 -w -D_REENTRANT -DOPENGLINITYES -DQT_NO_DEBUG 
-DQT_SVG_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB 
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml 
-I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtSvg -I/usr/include/qt4 
-I. -Ibookmark -Ifoformat -Ipaperformat -Itextapi -Iui -I../include 
-I../modules/tidy -I../modules/ooo -I/usr/X11R6/include -Ibuild/.moc -I. -o 
build/.obj/MainWindow.o MainWindow.cpp
In file included from MainWindow.cpp:4:0:
format_fop/Fo_Reader.h:159:37: error: ‘OOTYPE’ has not been declared
    OO_Xslt( const QString filedoc , OOTYPE doc );
                                     ^
format_fop/Fo_Reader.h:160:43: error: ‘OOTYPE’ has not been declared
    void OpenFile( const QString filedoc , OOTYPE doc);
                                           ^
format_fop/Fo_Reader.h:171:22: error: ‘OOTYPE’ has not been declared
     void convertXslt(OOTYPE doc);
                      ^
In file included from ../modules/ooo/oo_handler.h:39:0,
                 from MainWindow.cpp:6:
../modules/ooo/styleparser.h: In function ‘qreal DPIactualDiff()’:
../modules/ooo/styleparser.h:29:21: error: redefinition of ‘qreal 
DPIactualDiff()’
 static inline qreal DPIactualDiff()
                     ^
In file included from paperformat/PageFormatDlg.h:9:0,
                 from MainWindow.cpp:2:
./format_fop/FoColorName.h:34:21: error: ‘qreal DPIactualDiff()’ previously 
defined here
 static inline qreal DPIactualDiff()
                     ^
MainWindow.cpp: In member function ‘void GraphicsView::openFile(QString)’:
MainWindow.cpp:643:64: error: ‘DOC_1_VERSION’ was not declared in this scope
         OO_Xslt *oohandler = new OO_Xslt(fi.absoluteFilePath(),DOC_1_VERSION);
                                                                ^
MainWindow.cpp:673:64: error: ‘DOC_1_VERSION’ was not declared in this scope
         OO_Xslt *oohandler = new OO_Xslt(fi.absoluteFilePath(),DOC_1_VERSION);
                                                                ^
make[1]: *** [build/.obj/MainWindow.o] Error 1
make[1]: Leaving directory 
`/home/ubuntu/tmp/fop-miniscribus-read-only/fop_miniscribus.2.0.2/src'
make: *** [sub-src-make_default] Error 2

Original comment by franc...@liot.org on 6 Jan 2015 at 10:39