From: Jozef M. <mis...@ho...> - 2010-04-22 13:57:41
|
try copying *pfb fonts from projects\libs to the same directory as the exe. if it does notwork, post me the pdf file. jozef ---------------------------------------- > From: rav...@se... > To: mis...@ho...; pdf...@li... > Subject: RE: Develop pdfedit under windows > Date: Thu, 22 Apr 2010 18:48:57 +0530 > > Thanks for your advice....now I am able to build the exe without any error.... > I copied it to some location along with zlib1.dll and test pdf > It is showing pdf but without any text.....inspite of the fact that I have included freetype lib > > Any specific reason for it.... > > > > Regards, > ☼Ravikant > > -----Original Message----- > From: Jozef Misutka [mailto:mis...@ho...] > Sent: Thursday, April 22, 2010 6:06 PM > To: rav...@se...; pdf...@li... > Subject: RE: Develop pdfedit under windows > > >> I did what u suggested but now getting these errors: >> >> Error 150 error LNK2019: unresolved external symbol _deflateEnd referenced in function "public: static unsigned char * __cdecl pdfobjects::utils::ZlibFilterStreamWriter::deflate_buffer(unsigned char *,unsigned int,unsigned int &)" (?deflate_buffer@ZlibFilterStreamWriter@utils@pdfobjects@@SAPAEPAEIAAI@Z) pdfedit-kernel-win32.lib >> Error 151 error LNK2019: unresolved external symbol _deflate referenced in function "public: static unsigned char * __cdecl pdfobjects::utils::ZlibFilterStreamWriter::deflate_buffer(unsigned char *,unsigned int,unsigned int &)" (?deflate_buffer@ZlibFilterStreamWriter@utils@pdfobjects@@SAPAEPAEIAAI@Z) pdfedit-kernel-win32.lib >> Error 152 error LNK2019: unresolved external symbol _deflateInit_ referenced in function "public: static unsigned char * __cdecl pdfobjects::utils::ZlibFilterStreamWriter::deflate_buffer(unsigned char *,unsigned int,unsigned int &)" (?deflate_buffer@ZlibFilterStreamWriter@utils@pdfobjects@@SAPAEPAEIAAI@Z) pdfedit-kernel-win32.lib >> >> I am using zlib-1.2.4 > > you should have a lib file similar to > zlib.lib > somewhere. > > add it to pdfedit-kernel->properties->librarian->general->additional dependencies > and add the path to the folder where it resides to pdfedit-kernel->properties->librarian->general->additional library directories (or copy it to projects\libs) > > /jozef > >> >> Regards, >> ☼Ravikant >> >> -----Original Message----- >> From: Jozef Misutka [mailto:mis...@ho...] >> Sent: Wednesday, April 21, 2010 5:20 PM >> To: rav...@se...; pdf...@li... >> Subject: RE: Develop pdfedit under windows >> >> >> try to do a clean checkout of pdfedit cvs sources and compile it again. now everything should work as expected. if not, do not hesitate to ask again. >> >> i just did >> 1. cvs >> -d:pserver:ano...@pd...:/cvsroot/pdfedit login >> >> 2. cvs -z3 >> -d:pserver:ano...@pd...:/cvsroot/pdfedit co -P pdfedit >> 3. copy freetype221_D.lib to projects\libs >> 4. open pdfedit.vc2008.sln and compile with Debug-Win32Gui >> 5. build gui.installer which produces projects\output\gui.win32.zip >> 6. unzip somewhere, copy a pdf file to that directory with name from config (e.g. test.pdf) and run gui.win32.exe >> >> >> cheers >> /jozef >> >> >> >>> But still getting these errors: >>> Error 2 error PRJ0019: A tool returned an error code from "XPDF needs generated header file for each operating system. Generate it. Remove after first build (xpdf Property Page->Configuration Properties->Build Events->Pre-Build Event)" xpdf >>> Error 127 fatal error LNK1181: cannot open input file '..\output\libs\xpdf-win32.lib' gui.win32 >>> >>> >>> Regards, >>> ☼Ravikant >>> >>> -----Original Message----- >>> From: Jozef Misutka [mailto:mis...@ho...] >>> Sent: Tuesday, April 20, 2010 9:22 PM >>> To: rav...@se...; pdf...@li... >>> Subject: RE: Develop pdfedit under windows >>> >>> >>> There are two things which need to be done for using an external library >>> >>> 1. add proper include directories with header files so the compiler knows what can he use from a library (e.g. boost, zlib, freetype) >>> >>> 2. add proper libs directories so he can actually use the library >>> >>> There are several ways how to do it, we will simply add appropriate directories to appropriate Visual Studio Settings. >>> >>> You should have >>> >>> 1. >>> >>> C:\Program Files\boost\boost_1_42 >>> path to zlib (e.g. for me g:\private\work\projects\pdfedit\zlib\zlib-1.2.3) >>> path to freetype\include (e.g. for me G:\private\work\projects\pdfedit\freetype\include) >>> >>> >>> to Tools->Options(Project and Solutions)->VC++ Directories->Include >>> files >>> >>> note that there is no include directory for the first two because the header files are either in the root folder or the include use directories relative to root folder >>> >>> >>> >>> >>> and >>> >>> 2. >>> >>> C:\Program Files\boost\boost_1_42\lib >>> C:\Documents and >>> Settings\ravikantd\Desktop\pdfedit-0.4.4.1\pdfedit-0.4.4.1\projects\libs >>> >>> >>> >>> to Tools->Options(Project and Solutions)->VC++ Directories->Library files >>> >>> >>> if you have similar errors, try playing with the directories. if you get any other errors, please post it again. >>> >>> cheers, >>> jozef >>> >>> >>> ---------------------------------------- >>>> From: rav...@se... >>>> To: mis...@ho...; pdf...@li... >>>> Subject: RE: Develop pdfedit under windows >>>> Date: Tue, 20 Apr 2010 12:27:34 +0530 >>>> >>>> I did what u told me but now I am getting following errors: >>>> Error 1 fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory c:\Documents and Settings\ravikantd\Desktop\pdfedit-0.4.4.1\pdfedit-0.4.4.1\projects\other\test_boost\test_boost.cpp 5 >>>> Error 2 fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\Documents and Settings\ravikantd\Desktop\pdfedit-0.4.4.1\pdfedit-0.4.4.1\projects\other\test_zlib\test_zlib.cpp 8 >>>> Error 3 error PRJ0019: A tool returned an error code from "XPDF needs generated header file for each operating system. Generate it. Remove after first build (xpdf Property Page->Configuration Properties->Build Events->Pre-Build Event)" xpdf >>>> Error 4 fatal error C1083: Cannot open include file: 'boost/smart_ptr.hpp': No such file or directory C:\Documents and Settings\ravikantd\Desktop\pdfedit-0.4.4.1\pdfedit-0.4.4.1\src\kernel\static.h 77 >>>> >>>> >>>> I added two paths in include of Tools->Options->Directories as per your advice: >>>> C:\Documents and Settings\ravikantd\Desktop\pdfedit-0.4.4.1\pdfedit-0.4.4.1\projects\libs >>>> C:\Program Files\boost\boost_1_42\lib >>>> But still getting errors. >>>> >>>> Regards, >>>> ☼Ravikant >>>> >>>> -----Original Message----- >>>> From: Jozef Misutka [mailto:mis...@ho...] >>>> Sent: Tuesday, April 20, 2010 12:12 PM >>>> To: rav...@se...; pdf...@li... >>>> Subject: RE: Develop pdfedit under windows >>>> >>>> >>>> hi >>>> >>>>> I am getting following errors: >>>>> Error 1 fatal error LNK1104: cannot open file 'libboost_program_options-vc90-mt-s-1_42.lib' test_boost >>>>> Error 2 fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\Documents and Settings\ravikantd\Desktop\pdfedit-0.4.4.1\pdfedit-0.4.4.1\projects\other\test_zlib\test_zlib.cpp 8 >>>>> Error 3 error PRJ0019: A tool returned an error code from "XPDF needs generated header file for each operating system. Generate it. Remove after first build (xpdf Property Page->Configuration Properties->Build Events->Pre-Build Event)" xpdf >>>>> >>>>> Apart from that I think following information is useful for u. I >>>>> - put the zlib1d.lib to projects\output\libs\ >>>> >>>> put it to projects\libs >>>> >>>>> - add zlib1d.lib to Linker->Input in project Properties >>>>> - put the dll to projects\ >>>>> - added path(C:\Program Files\boost\boost_1_42) to include/libs to VS Tools->Options->Directories >>>> >>>> - add "C:\Program Files\boost\boost_1_42\lib" instead of "C:\Program Files\boost\boost_1_42" >>>> - add path to include directory of zlib to VS Tools->Options->Directories >>>> >>>> jozef >>>> >>>> >>>>> >>>>> Regards, >>>>> ☼Ravikant >>>>> -----Original Message----- >>>>> From: Jozef Misutka [mailto:mis...@ho...] >>>>> Sent: Tuesday, April 20, 2010 2:46 AM >>>>> To: rav...@se...; pdf...@li... >>>>> Subject: RE: Develop pdfedit under windows >>>>> >>>>> >>>>> please, post the errors. >>>>> >>>>> jozef >>>>> >>>>> ---------------------------------------- >>>>>> From: rav...@se... >>>>>> To: mis...@ho...; pdf...@li... >>>>>> Subject: RE: Develop pdfedit under windows >>>>>> Date: Mon, 19 Apr 2010 17:07:48 +0530 >>>>>> >>>>>> Sorry I forget to check out new files from cvs. But now I got all files updated by you. >>>>>> I compiled gui.win32 but getting errors regarding zlib & boost lib >>>>>> I got the boost library installer from the >>>>>> http://www.boost-consulting.com/products/free >>>>>> It installed the lib at C:\Program Files\boost\boost_1_42. >>>>>> >>>>>> As far as zlib is concerned I am confused as I have zlibwapi.dll not zlib1.dll I added it at \projects\output\libs. >>>>>> >>>>>> As far as CPPUNIt is concerned I don't think it is necessary for compiling so I didn't get this. >>>>>> >>>>>> I got the freetype2, compiled it but there is no directory like includes/library. So I added it at \projects\output\libs. >>>>>> >>>>>> Now guide me what to do to compile without errors >>>>>> >>>>>> Regards, >>>>>> ☼Ravikant >>>>>> >>>>>> -----Original Message----- >>>>>> From: Jozef Misutka [mailto:mis...@ho...] >>>>>> Sent: Monday, April 19, 2010 4:13 PM >>>>>> To: rav...@se...; pdf...@li... >>>>>> Subject: RE: Develop pdfedit under windows >>>>>> >>>>>> >>>>>> Did you perform a clean cvs update, I commited the code and project cca 10 hours ago. I did a clean checkout 5 minutes ago and the solution loads properly. >>>>>> >>>>>> regarding the exe file, what does it say? a crash? see readme or >>>>>> http://pdfedit.cvs.sourceforge.net/viewvc/pdfedit/pdfedit/projects/gui/win32/main.cpp?revision=1.1&view=markup >>>>>> of how it should behave. >>>>>> >>>>>> jozef >>>>>> >>>>>> >>>>>> ---------------------------------------- >>>>>>> From: rav...@se... >>>>>>> To: mis...@ho...; pdf...@li... >>>>>>> Subject: RE: Develop pdfedit under windows >>>>>>> Date: Mon, 19 Apr 2010 13:26:00 +0530 >>>>>>> >>>>>>> Hi >>>>>>> Whenever I am opening pdfedit.vc2008.sln, the project called gui.win32 is missing. No file is shown in that project. Then the exe provided in the download is not working. As far as the addition of freetype2 is concerned where should I include it(in which folder). >>>>>>> >>>>>>> Regards, >>>>>>> ☼Ravikant >>>>>>> -----Original Message----- >>>>>>> From: Jozef Misutka [mailto:mis...@ho...] >>>>>>> Sent: Monday, April 19, 2010 4:21 AM >>>>>>> To: rav...@se...; pdf...@li... >>>>>>> Subject: RE: Develop pdfedit under windows >>>>>>> >>>>>>> >>>>>>> hi, >>>>>>> >>>>>>> finally i found time to create a small proof of concept for pdfedit display capabilities in win32. >>>>>>> >>>>>>> you can find it in cvs >>>>>>> >>>>>>> run >>>>>>> cvs/projects/pdfedit.vc2008.sln >>>>>>> >>>>>>> the project is called gui.win32 and you need freetype2 in addition to default pdfedit dependencies (boost, zlib). try reading readme file. >>>>>>> >>>>>>> or try >>>>>>> http://sourceforge.net/projects/pdfedit/files/pdfedit-tools/tools-beta/win32-gui/gui.win32.exe/download >>>>>>> >>>>>>> for now the application is really stupid and loads hardcoded g:\test.pdf with predefined DPI. the important thing you can learn is how to get a windows compatible bitmap from xpdf (small kudos to Pocket XPDF). >>>>>>> >>>>>>> cheers, >>>>>>> jozef >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ---------------------------------------- >>>>>>>> From: rav...@se... >>>>>>>> To: pdf...@li... >>>>>>>> Subject: RE: Develop pdfedit under windows >>>>>>>> Date: Fri, 16 Apr 2010 16:36:56 +0530 >>>>>>>> >>>>>>>> Is the gui code given tested on Windows. At one place u have described that GUI is developed in QT. So can I develop the GUI using the given code. If yes then do I need some changes to do. (Actually I want to develop the GUI in MFC) >>>>>>>> >>>>>>>> Regards, >>>>>>>> ☼Ravikant >>>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Ravikant Dubey [mailto:rav...@se...] >>>>>>>> Sent: Friday, April 16, 2010 3:49 PM >>>>>>>> To: 'Jozef Misutka'; 'pdf...@li...' >>>>>>>> Subject: RE: Develop pdfedit under windows >>>>>>>> >>>>>>>> Is the gui code given tested on Windows. At one place u have defined that GUI is developed in QT. So can I develop the GUI using the given code. If yes then do I need some changes to do. >>>>>>>> >>>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Jozef Misutka [mailto:mis...@ho...] >>>>>>>> Sent: Friday, April 16, 2010 1:45 AM >>>>>>>> To: rav...@se...; pdf...@li... >>>>>>>> Subject: RE: Develop pdfedit under windows >>>>>>>> >>>>>>>> >>>>>>>>>>> Can anybody tell me how can I develop PdfEdit under windows> using visual studio 2008.>>>> Which files I should include to compile the project and> which one should I exclude.>These parts can be successfully compiled under win*- kernel library- tools- teststhe sln file is in CVS (/projects/pdfedit.vc2008.sln). see sourceforge help for more details.if you have any problems try following readme file in the same directory.if you are looking for GUI then you must wait till qt4 port/qt4 example is done.../jozef >>>>>>>> _________________________________________________________________ >>>>>>>> The New Busy is not the old busy. Search, chat and e-mail from your inbox. >>>>>>>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3= >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> Download Intel® Parallel Studio Eval >>>>>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>>>>> proactively, and fine-tune applications for parallel performance. >>>>>>>> See why Intel Parallel Studio got high marks during beta. >>>>>>>> http://p.sf.net/sfu/intel-sw-dev >>>>>>>> _______________________________________________ >>>>>>>> Pdfedit-devel mailing list >>>>>>>> Pdf...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/pdfedit-devel >>>>>>> >>>>>>> _________________________________________________________________ >>>>>>> Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. >>>>>>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 >>>>>>> >>>>>> >>>>>> _________________________________________________________________ >>>>>> The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. >>>>>> http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 >>>>>> >>>>> >>>>> _________________________________________________________________ >>>>> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. >>>>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 >>>>> >>>> >>>> _________________________________________________________________ >>>> The New Busy is not the old busy. Search, chat and e-mail from your inbox. >>>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 >>>> >>> >>> _________________________________________________________________ >>> The New Busy is not the old busy. Search, chat and e-mail from your inbox. >>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 >>> >> >> _________________________________________________________________ >> Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. >> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 >> > > _________________________________________________________________ > The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. > http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 > _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 |