hello thanks for responding i have been trying to compile the source for few days first i tried with qt5 then i change the kit to qt4.8.5 with mingw4.4 and i managed it to work but now after you update the libbok.pro file and tried to compile it give zip.h issues its seems there is no such file in the lib directory as the output show should i download this missing headers :
C:/mingw4.4/bin/mingw32-make -f Makefile.Release
mingw32-make[3]: Entering directory C:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib/libebook'
g++ -c -pipe -O2 -Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DUSE_PATCHED_CHMLIB -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.5\include\QtCore" -I"c:\Qt\4.8.5\include\QtGui" -I"c:\Qt\4.8.5\include" -I"..\..\..\kchmviewer\src" -I"c:\Qt\4.8.5\include\ActiveQt" -I"release" -I"..\..\..\kchmviewer\lib\libebook" -I"." -I"c:\Qt\4.8.5\mkspecs\win32-g++" -o release\ebook_chm.o ..\..\..\kchmviewer\lib\libebook\ebook_chm.cpp
g++ -c -pipe -O2 -Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DUSE_PATCHED_CHMLIB -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.5\include\QtCore" -I"c:\Qt\4.8.5\include\QtGui" -I"c:\Qt\4.8.5\include" -I"..\..\..\kchmviewer\src" -I"c:\Qt\4.8.5\include\ActiveQt" -I"release" -I"..\..\..\kchmviewer\lib\libebook" -I"." -I"c:\Qt\4.8.5\mkspecs\win32-g++" -o release\ebook_epub.o ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp
In file included from ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:23:
..\..\..\kchmviewer\lib\libebook\/ebook_epub.h:28:17: error: zip.h: No such file or directory
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp: In member function 'virtual bool EBook_EPUB::load(const QString&)':
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:55: error: 'zip_fdopen' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp: In member function 'virtual void EBook_EPUB::close()':
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:74: error: 'zip_close' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp: In member function 'bool EBook_EPUB::getFileAsBinary(QByteArray&, const QString&) const':
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:280: error: aggregate 'zip_stat fileinfo' has incomplete type and cannot be defined
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:291: error: invalid use of incomplete type 'struct zip_stat'
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:280: error: forward declaration of 'struct zip_stat'
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:298: error: 'ZIP_STAT_SIZE' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:298: error: 'ZIP_STAT_INDEX' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:302: error: 'zip_fopen_index' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:311: error: 'zip_fread' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:314: error: 'zip_fclose' was not declared in this scope
..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:318: error: 'zip_fclose' was not declared in this scope
mingw32-make[3]: *** [release/ebook_epub.o] Error 1
mingw32-make[3]: Leaving directoryC:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib/libebook'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory C:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib/libebook'
mingw32-make[1]: *** [sub-libebook-make_default] Error 2
mingw32-make[1]: Leaving directoryC:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib'
mingw32-make: *** [sub-lib-make_default] Error 2
01:29:46: The process "C:\mingw4.4\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project kchmviewer (kit: Desktop QT 4.8.5 MinGW 32bit)
When executing step 'Make'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi i need some help in compiling there is directory issue message given me while compile chm lib as follow :
g++: ../lib/libebook/chmlib-win32/chmlib.lib: No such file or directory
ok here is wat i did first didn't had libzib so i had to delete all epub classes and headers from lib directly and all the codes and flags related to libzip and then copied libebook/chmlib-win32/chmlib.lib in release folder and i compile it using qt creates version 2.6.2 with kit Desktop QT 4.8.5 MinGW 32bit and the compile was succeed but here the issues when i tried to run the stand alone exe in release folder an error message showed: libgcc_s_dw2-1.dll so wat i did i linked it as static in src.pro file like this :
QMAKE_LFLAGS += -static-libgcc then i copied all the dll files needed from qt bin folder
then again a message asked for libgcc_s_dw2-1.dll so i had to copy it also from mingw bin folder after that i managed to run the stand alone exe file but there is also issues :
1>when open chm file first time its doesn't show the children pages of the chm file if it was saved to view it in some certain page
2> the search engine don't show the title tag of the listed pages only the location of the searched pages and when click on one of them doesn't show the target page
so this time i will try to compile it with libzib support and see what happens but how to compile it with this libzip library do i have to build it ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, after so many modifications and removals and using a different toolchain you then ended up with a completely different application, so I doubt any bug report would really apply here.
If you just want a Windows version, I've released the 7.0beta1 yesterday, just use it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
actually i want it the source because i needed to do some modification to support Arabic language highlighters i had javascript able to highlight Arabic and English and Latin characters even if they contained diacritical marks if i succeeded this will be awesome features for the kchmviewer and may support other languages as well i will send to you the script when i finish it if you may interested to merge it
thanks man
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi i downloaded you last binary package and i got same issue as the last source code the search result not showing the title of search list also cant locate it the the wanted page from search result you can see in the attachment
Fixed. Please try again.
hello thanks for responding i have been trying to compile the source for few days first i tried with qt5 then i change the kit to qt4.8.5 with mingw4.4 and i managed it to work but now after you update the libbok.pro file and tried to compile it give zip.h issues its seems there is no such file in the lib directory as the output show should i download this missing headers :
C:/mingw4.4/bin/mingw32-make -f Makefile.Release
mingw32-make[3]: Entering directory
C:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib/libebook' g++ -c -pipe -O2 -Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DUSE_PATCHED_CHMLIB -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.5\include\QtCore" -I"c:\Qt\4.8.5\include\QtGui" -I"c:\Qt\4.8.5\include" -I"..\..\..\kchmviewer\src" -I"c:\Qt\4.8.5\include\ActiveQt" -I"release" -I"..\..\..\kchmviewer\lib\libebook" -I"." -I"c:\Qt\4.8.5\mkspecs\win32-g++" -o release\ebook_chm.o ..\..\..\kchmviewer\lib\libebook\ebook_chm.cpp g++ -c -pipe -O2 -Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DUSE_PATCHED_CHMLIB -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.5\include\QtCore" -I"c:\Qt\4.8.5\include\QtGui" -I"c:\Qt\4.8.5\include" -I"..\..\..\kchmviewer\src" -I"c:\Qt\4.8.5\include\ActiveQt" -I"release" -I"..\..\..\kchmviewer\lib\libebook" -I"." -I"c:\Qt\4.8.5\mkspecs\win32-g++" -o release\ebook_epub.o ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp In file included from ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:23: ..\..\..\kchmviewer\lib\libebook\/ebook_epub.h:28:17: error: zip.h: No such file or directory ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp: In member function 'virtual bool EBook_EPUB::load(const QString&)': ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:55: error: 'zip_fdopen' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp: In member function 'virtual void EBook_EPUB::close()': ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:74: error: 'zip_close' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp: In member function 'bool EBook_EPUB::getFileAsBinary(QByteArray&, const QString&) const': ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:280: error: aggregate 'zip_stat fileinfo' has incomplete type and cannot be defined ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:291: error: invalid use of incomplete type 'struct zip_stat' ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:280: error: forward declaration of 'struct zip_stat' ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:298: error: 'ZIP_STAT_SIZE' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:298: error: 'ZIP_STAT_INDEX' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:302: error: 'zip_fopen_index' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:311: error: 'zip_fread' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:314: error: 'zip_fclose' was not declared in this scope ..\..\..\kchmviewer\lib\libebook\ebook_epub.cpp:318: error: 'zip_fclose' was not declared in this scope mingw32-make[3]: *** [release/ebook_epub.o] Error 1 mingw32-make[3]: Leaving directoryC:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib/libebook'mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory
C:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib/libebook' mingw32-make[1]: *** [sub-libebook-make_default] Error 2 mingw32-make[1]: Leaving directoryC:/kchmviewer_trunk/trunk/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Release/lib'mingw32-make: *** [sub-lib-make_default] Error 2
01:29:46: The process "C:\mingw4.4\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project kchmviewer (kit: Desktop QT 4.8.5 MinGW 32bit)
When executing step 'Make'
hi i need some help in compiling there is directory issue message given me while compile chm lib as follow :
g++: ../lib/libebook/chmlib-win32/chmlib.lib: No such file or directory
here is the complete log error :
g++ -c -pipe -g -Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DUSE_PATCHED_CHMLIB -DQT_DLL -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"........\Qt\4.8.5\include\QtCore" -I"........\Qt\4.8.5\include\QtNetwork" -I"........\Qt\4.8.5\include\QtGui" -I"........\Qt\4.8.5\include\QtXml" -I"........\Qt\4.8.5\include\QtWebKit" -I"........\Qt\4.8.5\include" -I"....\kchmviewer\lib\libebook" -I"........\Qt\4.8.5\include\ActiveQt" -I"debug" -I"." -I"....\kchmviewer\src" -I"." -I"........\Qt\4.8.5\mkspecs\win32-g++" -o debug\moc_toolbareditor.o debug\moc_toolbareditor.cpp
c:\Qt\4.8.5\bin\rcc.exe -name images ....\kchmviewer\src\resources\images.qrc -o debug\qrc_images.cpp
g++ -c -pipe -g -Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DUSE_PATCHED_CHMLIB -DQT_DLL -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"........\Qt\4.8.5\include\QtCore" -I"........\Qt\4.8.5\include\QtNetwork" -I"........\Qt\4.8.5\include\QtGui" -I"........\Qt\4.8.5\include\QtXml" -I"........\Qt\4.8.5\include\QtWebKit" -I"........\Qt\4.8.5\include" -I"....\kchmviewer\lib\libebook" -I"........\Qt\4.8.5\include\ActiveQt" -I"debug" -I"." -I"....\kchmviewer\src" -I"." -I"........\Qt\4.8.5\mkspecs\win32-g++" -o debug\qrc_images.o debug\qrc_images.cpp
g++ -mthreads -Wl,-subsystem,windows -o bin\kchmviewer.exe object_script.kchmviewer.Debug -L"c:\Qt\4.8.5\lib" -lmingw32 -lqtmaind -lzip ../lib/libebook/debug/libebook.a -lwsock32 ../lib/libebook/chmlib-win32/chmlib.lib -lzip -lz -lQtWebKitd4 -lQtXmld4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
g++: ../lib/libebook/chmlib-win32/chmlib.lib: No such file or directory
mingw32-make[2]: *** [bin\kchmviewer.exe] Error 1
mingw32-make[2]: Leaving directory
C:/kchmOrginal/trunk - Copy/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Debug/src' mingw32-make[1]: *** [debug] Error 2 mingw32-make[1]: Leaving directoryC:/kchmOrginal/trunk - Copy/kchmviewer-build-Desktop_QT_4_8_5_MinGW_32bit-Debug/src'mingw32-make: *** [sub-src-make_default] Error 2
07:54:55: The process "C:\mingw4.4\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project kchmviewer (kit: Desktop QT 4.8.5 MinGW 32bit)
When executing step 'Make'
ok here is wat i did first didn't had libzib so i had to delete all epub classes and headers from lib directly and all the codes and flags related to libzip and then copied libebook/chmlib-win32/chmlib.lib in release folder and i compile it using qt creates version 2.6.2 with kit Desktop QT 4.8.5 MinGW 32bit and the compile was succeed but here the issues when i tried to run the stand alone exe in release folder an error message showed: libgcc_s_dw2-1.dll so wat i did i linked it as static in src.pro file like this :
QMAKE_LFLAGS += -static-libgcc then i copied all the dll files needed from qt bin folder
then again a message asked for libgcc_s_dw2-1.dll so i had to copy it also from mingw bin folder after that i managed to run the stand alone exe file but there is also issues :
1>when open chm file first time its doesn't show the children pages of the chm file if it was saved to view it in some certain page
2> the search engine don't show the title tag of the listed pages only the location of the searched pages and when click on one of them doesn't show the target page
so this time i will try to compile it with libzib support and see what happens but how to compile it with this libzip library do i have to build it ??
Well, after so many modifications and removals and using a different toolchain you then ended up with a completely different application, so I doubt any bug report would really apply here.
If you just want a Windows version, I've released the 7.0beta1 yesterday, just use it.
actually i want it the source because i needed to do some modification to support Arabic language highlighters i had javascript able to highlight Arabic and English and Latin characters even if they contained diacritical marks if i succeeded this will be awesome features for the kchmviewer and may support other languages as well i will send to you the script when i finish it if you may interested to merge it
thanks man
hi i downloaded you last binary package and i got same issue as the last source code the search result not showing the title of search list also cant locate it the the wanted page from search result you can see in the attachment