• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Post reply

Other options

Shortcuts: ALT+S save/post or ALT+P preview

Topic summary

Posted by arthurprs
 -  4 January 2008, 02:29:27
I can't find the fixed script  ???
Posted by Galfar
 -  3 January 2008, 20:47:18
There is a library path missing in the BuildLibraryFPC.bat script. I added fixed one
in the attachment.
With the fixed one it should work in FPC 2.0.4 and with 2.2 if you remove the resource reference.
Otherwise I get this error:

gcc: Warning: `-x c' after last input file has no effect
gcc: No input files
c:\progra~1\freepa~1\bin\i386-win32\windres.exe: no resources
VampyreImaging.dpr(129,1) Error: Error while linking
VampyreImaging.dpr(129,1) Error: Can't open object file: ..\Bin\fpc-res.or
VampyreImaging.dpr(129,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: c:\progra~1\freepa~1\bin\i386-win32\ppc386.exe returned an error exitcode
(normal if you did not specify a source file to be compiled)
Error when building library!


EDIT: Added the fixed script.
Posted by arthurprs
 - 22 December 2007, 20:58:46
No i don't use it as dll, just reporting a bug  :)

here is the details of the errors

Writing Resource String Table file: Imaging.rst
Compiling resource ..\Bin\fpc-res.res
VampyreImaging.dpr(129,1) Warning: Library libopenjpegwin32.a not found, Linking
may fail !
VampyreImaging.dpr(129,1) Warning: Library libcrtdll.a not found, Linking may fa
il !
Linking ..\Bin\VampyreImaging.dll
VampyreImaging.dpr(129,1) Error: Can't open object file: libopenjpegwin32.a
VampyreImaging.dpr(129,1) Error: Can't open object file: libcrtdll.a
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_set_default_decoder_para
meters
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_create_decompress
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_cio_open
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_setup_decoder
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_decode
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_image_destroy
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_destroy_decompress
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_cio_close
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_image_create
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_create_compress
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_set_default_encoder_para
meters
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_setup_encoder
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_encode
VampyreImaging.dpr(129,1) Error: Undefined symbol: _cio_tell
VampyreImaging.dpr(129,1) Error: Undefined symbol: _opj_destroy_compress
VampyreImaging.dpr(129,1) Fatal: There were 17 errors compiling module, stopping

Fatal: Compilation aborted
Error: C:\FPC\2.2.0\bin\i386-Win32\ppc386.exe returned an error exitcode (normal
if you did not specify a source file to be compiled)
Error when building library!
Deleting ugly files...


deleting the "{$R *.res}" in VampyreImaging.dpr does not work too (same error)
Posted by Galfar
 - 16 December 2007, 12:29:44
I get the same error with FPC 2.2 but it works with FPC 2.0.4.
Looks like there is some problem with resource compiler (windres) because
if you delete {$R *.res} line in VampyreImaging.dpr it compiles in FPC 2.2 too.

By the way do you use DLL version of Imaging?

Does you error output when compiling BuildLibraryFPC.bat look the same?

gcc: Warning: `-x c' after last input file has no effect
gcc: No input files
c:\progra~1\freepa~1\bin\i386-win32\windres.exe: no resources
VampyreImaging.dpr(129,1) Error: Error while linking
VampyreImaging.dpr(129,1) Error: Can't open object file: ..\Bin\fpc-res.or
VampyreImaging.dpr(129,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: c:\progra~1\freepa~1\bin\i386-win32\ppc386.exe returned an error exitcode
(normal if you did not specify a source file to be compiled)
Error when building library!

Posted by arthurprs
 - 12 December 2007, 15:29:41
I execute the BuildLibraryFPC.bat but im receiving the error:


Fatal: Compilation aborted
Error: C:\FPC\2.2.0\bin\i386-Win32\ppc386.exe returned an error exitcode (normal
if you did not specify a source file to be compiled)
Error when building library!
SMF spam blocked by CleanTalk