Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2013, 09:07 AM   #1
vepo
Junior Member
vepo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2013
Location: Campinas, SP - Brazil
Device: android
Building on Windows with MinGW

I'm trying to build sigil on Windows, but I'm facing several erros.

The last error I'm facing is with Xerces. I need to compile xercesc?


Quote:
[ 7%] Building CXX object src/Xerces/CMakeFiles/Xerces.dir/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp.obj
cd /d C:\dev\sigil\src\Xerces && c:\MinGW\bin\g++.exe -DHAVE_FTIME -DHAVE_LIMITS_H -DHAVE_STRCASECMP -DHAVE_STRING_H -DHAVE_STRNCASECMP -DHAVE_SYS_TIMEB_H -DHAVE_TOWLOWER -DHAVE_TOWUPPER -DHAVE_WCHAR_H -DHAVE_WCSICMP -DHAVE_WCSLWR -DHAVE_WCSNICMP -DHAVE_WCSUPR -DHAVE_WCTYPE_H -DXERCES_BUILDING_LIBRARY -DXERCES_STATIC_LIBRARY -DXERCES_USE_FILEMGR_POSIX -DXERCES_USE_MSGLOADER_INMEMORY -DXERCES_USE_MUTEXMGR_POSIX -DXERCES_USE_TRANSCODER_GNUICONV @CMakeFiles/Xerces.dir/includes_CXX.rsp -msse2 -o CMakeFiles\Xerces.dir\xercesc\util\Transcoders\Ico nvGNU\IconvGNUTransService.cpp.obj -c C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:131: error: 'LITTLE_ENDIAN' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:132: error: 'BIG_ENDIAN' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:133: error: 'LITTLE_ENDIAN' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:134: error: 'BIG_ENDIAN' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:135: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:137: error: too many initializers for 'const xercesc_3_1::IconvGNUEncoding'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:137: error: too many initializers for 'const xercesc_3_1::IconvGNUEncoding'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:137: error: too many initializers for 'const xercesc_3_1::IconvGNUEncoding'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:137: error: too many initializers for 'const xercesc_3_1::IconvGNUEncoding'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:137: error: too many initializers for 'const xercesc_3_1::IconvGNUEncoding'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In constructor 'xercesc_3_1::IconvGNUWrapper::IconvGNUWrapper(xer cesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:171: error: 'LITTLE_ENDIAN' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'void xercesc_3_1::IconvGNUWrapper::mbcToXMLCh(const char*, XMLCh*) const':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:196: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'void xercesc_3_1::IconvGNUWrapper::xmlChToMbc(XMLCh, char*) const':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:216: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'XMLCh xercesc_3_1::IconvGNUWrapper::toUpper(XMLCh)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:254: error: invalid conversion from 'char**' to 'const char**'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:254: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:262: error: invalid conversion from 'char**' to 'const char**'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:262: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'XMLCh xercesc_3_1::IconvGNUWrapper::toLower(XMLCh)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:287: error: invalid conversion from 'char**' to 'const char**'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:287: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:295: error: invalid conversion from 'char**' to 'const char**'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:295: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'XMLCh* xercesc_3_1::IconvGNUWrapper::mbsToXML(const char*, XMLCh*, size_t) const':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:312: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'char* xercesc_3_1::IconvGNUWrapper::xmlToMbs(const XMLCh*, char*, size_t) const':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:351: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'size_t xercesc_3_1::IconvGNUWrapper::iconvFrom(const char*, size_t*, char**, size_t)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:388: error: invalid conversion from 'char**' to 'const char**'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:388: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'size_t xercesc_3_1::IconvGNUWrapper::iconvTo(const char*, size_t*, char**, size_t)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:401: error: invalid conversion from 'char**' to 'const char**'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:401: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In constructor 'xercesc_3_1::IconvGNUTransService::IconvGNUTransS ervice(xercesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:446: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual XMLSize_t xercesc_3_1::IconvGNULCPTranscoder::calcRequiredSi ze(const XMLCh*, xercesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:697: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual char* xercesc_3_1::IconvGNULCPTranscoder::transcode(cons t XMLCh*, xercesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:759: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual bool xercesc_3_1::IconvGNULCPTranscoder::transcode(cons t XMLCh*, char*, XMLSize_t, xercesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:814: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual XMLCh* xercesc_3_1::IconvGNULCPTranscoder::transcode(cons t char*, xercesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:871: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:893: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual bool xercesc_3_1::IconvGNULCPTranscoder::transcode(cons t char*, XMLCh*, XMLSize_t, xercesc_3_1::MemoryManager*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:929: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:952: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual XMLSize_t xercesc_3_1::IconvGNUTranscoder::transcodeFrom(con st XMLByte*, XMLSize_t, XMLCh*, XMLSize_t, XMLSize_t&, unsigned char*)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:1030: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:1062: error: 'BYTE_ORDER' was not declared in this scope
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp: In member function 'virtual XMLSize_t xercesc_3_1::IconvGNUTranscoder::transcodeTo(const XMLCh*, XMLSize_t, XMLByte*, XMLSize_t, XMLSize_t&, xercesc_3_1::XMLTranscoder::UnRepOpts)':
C:\dev\sigil\src\Xerces\xercesc\util\Transcoders\I convGNU\IconvGNUTransService.cpp:1083: error: 'BYTE_ORDER' was not declared in this scope
mingw32-make[2]: *** [src/Xerces/CMakeFiles/Xerces.dir/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp.obj] Error 1
mingw32-make[2]: Leaving directory `C:/dev/sigil'
mingw32-make[1]: *** [src/Xerces/CMakeFiles/Xerces.dir/all] Error 2
mingw32-make: *** [all] Error 2
mingw32-make[1]: Leaving directory `C:/dev/sigil'
vepo is offline   Reply With Quote
Old 02-28-2013, 09:21 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,567
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
While it may in fact turn out to be possible to build Sigil on Windows with MinGW, you'll note in the build instructions that only Microsoft's Visual C++ is supported. Not a very satisfying answer, I know, but there it is. Be prepared to go this alone.

And yes, Xerces is a required component.
DiapDealer is online now   Reply With Quote
Old 02-28-2013, 09:32 AM   #3
vepo
Junior Member
vepo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2013
Location: Campinas, SP - Brazil
Device: android
Ok. I'm expecting this....
Quote:
Originally Posted by DiapDealer View Post
And yes, Xerces is a required component.
Maybe, this error is because cmake cannot find xerces implementation. How can I define where xercesc code is?
vepo is offline   Reply With Quote
Old 02-28-2013, 09:42 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,567
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
How can I define where xercesc code is?
I know nothing about the MinGW build environment, so I won't really be able to help. All I know is that the necessary xercesc stuff is in src/Xerces/xercesc folder of Sigil's source package. I have no clue how you go about making sure MinGW uses it properly.

What did your initial cmake command look like to build the make files in the first place? On Windows, I'd imagine the "NMake Makefiles" and the "Visual Studio 10" are the only Generator options that are going to work "out of the box," so to speak. Otherwise, you're probably looking at modifying the CMake conf files before you even create the Make files.

Last edited by DiapDealer; 02-28-2013 at 10:30 AM.
DiapDealer is online now   Reply With Quote
Old 02-28-2013, 09:50 AM   #5
vepo
Junior Member
vepo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2013
Location: Campinas, SP - Brazil
Device: android
Quote:
Originally Posted by DiapDealer View Post
I know nothing about the MinGW build environment, so I won't really be able to help. All I know is that the necessary xercesc stuff is in src/Xerces/xercesc folder of Sigil's source package. I have no clue how you go about making sure MinGW uses it properly.
Thanks. I will wait for more answer and search a little more.
vepo is offline   Reply With Quote
Old 02-28-2013, 10:13 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,567
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'd say your first step will be searching the CMake configuration files (CMakeLists.txt) and making sure all "if (MSVC)" and/or "if ( WIN32 )" sections are ported to make sense in a MinGW environment. It's likely to be a fairly daunting task. You're basically going to be telling cmake how to create the proper make files with the "MinGW Makefiles" Generator from the ground up -- since the current included configurations only take the "NMake" and "Visual Studio" Generators into consideration on the Windows platform.

Last edited by DiapDealer; 02-28-2013 at 10:25 AM.
DiapDealer is online now   Reply With Quote
Old 02-28-2013, 09:21 PM   #7
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
MinGW cannot be used to build Sigil. The build system requires Microsoft's compiler.
user_none is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a PC Corpsegoddess Lounge 26 12-31-2012 10:02 AM
New: Building Windows 8 Blog (simple) spedinfargo Recipes 0 10-09-2011 10:15 PM
Building for OS X rhaleblian Calibre 7 09-17-2011 12:40 PM
Building you own e-book M T McGuire Writers' Corner 18 04-11-2011 05:29 PM
Building Windows Binaries itimpi Calibre 4 01-30-2009 02:22 PM


All times are GMT -4. The time now is 03:27 PM.


MobileRead.com is a privately owned, operated and funded community.