Author Topic: 0.24.2.0 error compilig with FPC  (Read 6261 times)

Offline arthurprs

  • Imaging User
  • *
  • Posts: 17
    • View Profile
0.24.2.0 error compilig with FPC
« on: 12 December 2007, 15:29:41 »
I execute the BuildLibraryFPC.bat but im receiving the error:

Code: [Select]
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!

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 361
    • View Profile
    • Galfar's Homepage
Re: 0.24.2.0 error compilig with FPC
« Reply #1 on: 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?
Code: [Select]
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!

Offline arthurprs

  • Imaging User
  • *
  • Posts: 17
    • View Profile
Re: 0.24.2.0 error compilig with FPC
« Reply #2 on: 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

Code: [Select]
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)

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 361
    • View Profile
    • Galfar's Homepage
Re: 0.24.2.0 error compilig with FPC
« Reply #3 on: 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:
Code: [Select]
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.
« Last Edit: 25 January 2008, 00:29:21 by Galfar »

Offline arthurprs

  • Imaging User
  • *
  • Posts: 17
    • View Profile
Re: 0.24.2.0 error compilig with FPC
« Reply #4 on: 4 January 2008, 02:29:27 »
I can't find the fixed script  ???