Building on Windows

Taco H. in den Bosch taco at heddesit.nl
Mon May 21 09:18:26 BST 2012


Hi everyone,

I am still trying to build Calligra Words on windows. I am having several 
problems doing this using Emerge. First there was a problem with the DBus 
implementation, which I have been able to work around with the help of Ivan 
Miraglia. After this, okular refused to build (see the errors below).

Additionally I am trying to build Words using my own Visual Studio projects 
and solution. I have a lot of projects (flake, kokross, kopageapp, 
koplugin, kotext, koundo2, main, odf, pigment, textlayout, widgets) 
compiling and linking with relatively little fuss, but 'words' is giving a 
large number of error messages, also shown below.

The errors generated while compiling the 'words' project are pretty basic, 
such as include files that do not exist (KWTextFrame.h), type members that 
do not exist (AutoRunAroundSide), undefined types (KDialog), type 
conversion problems (from qreal to QTextLength), redefined symbols (i18nc), 
and so on. In at least one case the non-existant type member 
KoParagraphStyle::setCharacterStyle is caused by the member being commented 
out, but this is not always the case.

I assume that the Calligra source that I downloaded (which I did recently) 
should be in a compileable state. However, the issues that I am seeing do 
not seem to be configuration related, so at this point I am unable to see 
what I might have done wrong.

So, to sum up my two questions:
* Why doesn't 'emerge okular' work?
* Why doesn't the words component of the Calligra source compile?

Any help would be greatly appreciated.

With kind regards,
Taco.

----------------------------------------

Errors compiling words with my own Visual Studio project:

Error	40	error C1083: Cannot open include file: 'KWTextFrame.h': No such 
file or 
directory	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plugins\
scripting\FrameSet.h	33	1	words
Error	38	error C2039: 'AutoRunAroundSide' : is not a member of 
'KoShape'	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plugins\
scripting\Frame.h	78	1	words
Error	203	error C2039: 'BorderDashDotDotPattern' : is not a member of 
'KoBorder'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\KW
DLoader.cpp	898	1	words
Error	201	error C2039: 'BorderDashDotPattern' : is not a member of 
'KoBorder'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\KW
DLoader.cpp	897	1	words
Error	36	error C2039: 'characterStyle' : is not a member of 
'KoParagraphStyle'	d:\taco\clients\zylab\projects\flexion\calligra_src\words
\plugins\scripting\Style.h	415	1	words
Error	205	error C2039: 'characterStyle' : is not a member of 
'KoParagraphStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words
\part\KWDLoader.cpp	1164	1	words
Error	191	error C2039: 'endNoteDistance' : is not a member of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	242	1	words
Error	37	error C2039: 'setCharacterStyle' : is not a member of 
'KoParagraphStyle'	d:\taco\clients\zylab\projects\flexion\calligra_src\words
\plugins\scripting\Style.h	422	1	words
Error	190	error C2039: 'setEndNoteDistance' : is not a member of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	242	1	words
Error	185	error C2039: 'setFootnoteDistance' : is not a member of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	145	1	words
Error	186	error C2039: 'setFootNoteSeparatorLineLength' : is not a member 
of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	147	1	words
Error	189	error C2039: 'setFootNoteSeparatorLinePosition' : is not a member 
of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	171	1	words
Error	188	error C2039: 'setFootNoteSeparatorLineType' : is not a member of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	160	1	words
Error	187	error C2039: 'setFootNoteSeparatorLineWidth' : is not a member of 
'KWPageStyle'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	150	1	words
Error	39	error C2065: 'AutoRunAroundSide' : undeclared 
identifier	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plugins
\scripting\Frame.h	78	1	words
Error	204	error C2065: 'BorderDashDotDotPattern' : undeclared 
identifier	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\KW
DLoader.cpp	898	1	words
Error	202	error C2065: 'BorderDashDotPattern' : undeclared 
identifier	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\KW
DLoader.cpp	897	1	words
Error	42	error C2078: too many 
initializers	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\
i18n\stylenames.cpp	21	1	words
[ many more of the above ]
Error	45	error C2374: 'i18nc' : redefinition; multiple 
initialization	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\par
t\i18n\stylenames.cpp	22	1	words
[ many more of the above ]
Error	103	error C2440: 'initializing' : cannot convert from 'const char 
[10]' to 
'int'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\i18n\st
ylenames.cpp	38	1	words
[ many more of the above ]
Error	176	error C2653: 'KDialog' : is not a class or namespace 
name	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_zylab\words\ui_KWStartu
pWidget.h	45	1	words
Error	178	error C2653: 'KDialog' : is not a class or namespace 
name	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_zylab\words\ui_KWStartu
pWidget.h	70	1	words
Error	196	error C2664: 'KoParagraphStyle::setBottomMargin' : cannot convert 
parameter 1 from 'double' to 
'QTextLength'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	798	1	words
Error	35	error C2664: 'KoParagraphStyle::setBottomMargin' : cannot convert 
parameter 1 from 'qreal' to 
'QTextLength'	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plug
ins\scripting\Style.h	315	1	words
Error	199	error C2664: 'KoParagraphStyle::setBreakAfter' : cannot convert 
parameter 1 from 'bool' to 
'KoText::KoTextBreakProperty'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligr
a_src\words\part\KWDLoader.cpp	832	1	words
Error	198	error C2664: 'KoParagraphStyle::setBreakBefore' : cannot convert 
parameter 1 from 'bool' to 
'KoText::KoTextBreakProperty'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligr
a_src\words\part\KWDLoader.cpp	830	1	words
Error	200	error C2664: 'KoParagraphStyle::setBreakBefore' : cannot convert 
parameter 1 from 'bool' to 
'KoText::KoTextBreakProperty'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligr
a_src\words\part\KWDLoader.cpp	836	1	words
Error	193	error C2664: 'KoParagraphStyle::setLeftMargin' : cannot convert 
parameter 1 from 'double' to 
'QTextLength'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	792	1	words
Error	32	error C2664: 'KoParagraphStyle::setLeftMargin' : cannot convert 
parameter 1 from 'qreal' to 
'QTextLength'	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plug
ins\scripting\Style.h	312	1	words
Error	197	error C2664: 'KoParagraphStyle::setMinimumLineHeight' : cannot 
convert parameter 1 from 'qreal' to 'const QTextLength 
&'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\KWDLoader.
cpp	818	1	words
Error	194	error C2664: 'KoParagraphStyle::setRightMargin' : cannot convert 
parameter 1 from 'double' to 
'QTextLength'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	793	1	words
Error	34	error C2664: 'KoParagraphStyle::setRightMargin' : cannot convert 
parameter 1 from 'qreal' to 
'QTextLength'	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plug
ins\scripting\Style.h	314	1	words
Error	192	error C2664: 'KoParagraphStyle::setTextIndent' : cannot convert 
parameter 1 from 'double' to 
'QTextLength'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	791	1	words
Error	195	error C2664: 'KoParagraphStyle::setTopMargin' : cannot convert 
parameter 1 from 'double' to 
'QTextLength'	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part
\KWDLoader.cpp	797	1	words
Error	33	error C2664: 'KoParagraphStyle::setTopMargin' : cannot convert 
parameter 1 from 'qreal' to 
'QTextLength'	d:\taco\clients\zylab\projects\flexion\calligra_src\words\plug
ins\scripting\Style.h	313	1	words
Error	180	error C3861: 'i18n': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\dialogs
\KWSelectBookmarkDialog.cpp	79	1	words
Error	181	error C3861: 'i18n': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\dialogs
\KWSelectBookmarkDialog.cpp	80	1	words
Error	182	error C3861: 'i18n': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\dialogs
\KWSelectBookmarkDialog.cpp	89	1	words
Error	183	error C3861: 'i18n': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\dialogs
\KWSelectBookmarkDialog.cpp	121	1	words
Error	184	error C3861: 'i18n': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\dialogs
\KWCreateBookmarkDialog.cpp	48	1	words
Error	177	error C3861: 'spacingHint': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_zylab\words\ui_KWStart
upWidget.h	45	1	words
Error	179	error C3861: 'spacingHint': identifier not 
found	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_zylab\words\ui_KWStart
upWidget.h	70	1	words
Error	41	error C4430: missing type specifier - int assumed. Note: C++ does 
not support 
default-int	D:\Taco\Clients\ZYLAB\Projects\Flexion\calligra_src\words\part\i
18n\stylenames.cpp	21	1	words
[ many more of the above ]

----------------------------------------

 Errors building okular:

----------------------------------------------------------------------------
-
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these 
packages.
----------------------------------------------------------------------------
-
   * QImageBlitz - An image effects library
   * Poppler-Qt4 - A PDF rendering library
   * libspectre - A PostScript rendering library
   * CHM - A library for dealing with Microsoft ITSS/CHM format files
   * DjVuLibre - A library for dealing with DjVu formatted files
   * libTIFF - A library for reading and writing TIFF formatted files,
   * FreeType - A font rendering engine
   * JPEG - A library for reading and writing JPEG image files.
   * ZLib - The Zlib compression library
   * libepub - A library for reading EPub documents
   * QCA - Qt Cryptographic Architecture (QCA)

----------------------------------------------------------------------------
-
-- Congratulations! All external packages have been found.
----------------------------------------------------------------------------
-

-- Configuring done
-- Generating done
-- Build files have been written to: 
C:/oss/kde/build/kde/okular-4.8.2-20120419/
work/msvc2010-RelWithDebInfo-4.8.2
entering: 
c:\oss\kde\build\kde\okular-4.8.2-20120419\work\msvc2010-RelWithDebInf
o-4.8.2
CMake Error: Parse error in cache file 
C:/oss/kde/build/kde/okular-4.8.2-2012041
9/work/msvc2010-RelWithDebInfo-4.8.2/CMakeCache.txt. Offending entry: for 
comman
d: "C:\Program Files (x86)\Graphviz 2.28\bin\freetype-config" --libs;
-- Found Qt-Version 4.8.0 (using c:/oss/kde/bin/qmake.exe)
-- Found KDEWin library: C:/oss/kde/lib/kdewin.lib
-- Found KDE 4.8 include dir: c:/oss/kde/include
-- Found KDE 4.8 library dir: c:/oss/kde/lib
-- Found the KDE4 kconfig_compiler preprocessor: 
c:/oss/kde/bin/kconfig_compiler
.exe
-- Found automoc4: C:/oss/kde/bin/automoc4.exe
-- Found Freetype: CreateProcessError: %1 is not a valid Win32 
application.

for command: "C:\Program Files (x86)\Graphviz 2.28\bin\freetype-config" 
--libs

----------------------------------------------------------------------------
-
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these 
packages.
----------------------------------------------------------------------------
-
   * QImageBlitz - An image effects library
   * Poppler-Qt4 - A PDF rendering library
   * libspectre - A PostScript rendering library
   * CHM - A library for dealing with Microsoft ITSS/CHM format files
   * DjVuLibre - A library for dealing with DjVu formatted files
   * libTIFF - A library for reading and writing TIFF formatted files,
   * FreeType - A font rendering engine
   * JPEG - A library for reading and writing JPEG image files.
   * ZLib - The Zlib compression library
   * libepub - A library for reading EPub documents
   * QCA - Qt Cryptographic Architecture (QCA)

----------------------------------------------------------------------------
-
-- Congratulations! All external packages have been found.
----------------------------------------------------------------------------
-

-- Configuring incomplete, errors occurred!
NMAKE : fatal error U1077: 'c:\oss\kde\dev-utils\bin\cmake.exe' : return 
code '0
x1'
Stop.
emerge fatal error: while running make cmd: nmake /NOLOGO
emerge fatal error: running python 
c:\oss\kde\emerge\portage\kde\kdegraphics\oku
lar\okular-4.8.2-20120419.py compile
emerge debug: Task: Emerge stopped after: 0:00:35.900000

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20120521/d36522cb/attachment.htm>


More information about the calligra-devel mailing list