[fpc-pascal] Implementing AggPas with PtcGraph

James Richters james at productionautomation.net
Wed Jun 14 02:25:07 CEST 2017


>Noting your problems with compilation, you may want to consider using Lazarus IDE as well.

I have just installed Lazarus but still can't get the aggpas_ptcgraph_output.pas sample program to run when compiled for x64.  
Here is what I have done.

Downloaded and installed lazarus-1.6.0-fpc-3.0.0-win64.exe and accepted all defaults
Downloaded and installed lazarus-1.6.4-fpc-3.0.2-cross-i386-win32-win64.exe and accepted the default install directory.
Copied aggpas to C:\lazarus\fpc\3.0.2\units\i386-win32
Copied aggpas to C:\lazarus\fpc\3.0.2\units\x86_64-win64

Opened a sample program the uses just ptcgraph, when it asked to create a project I said yes then selected 'Program' from the list
I was able to compile and run it with options for OS win32 CPU i386 as well as OS  win64 CPU x86_64 and it ran fine with both versions
I opened aggpas_ptcgraph_output.pas the same way and selected program.  If I select OS win32 CPU i386 it compiles and runs fine, no problems
When I select OS  win64 CPU x86_64 and try to run it, it opens both the console window and graphics window, then I get an error box reading:

Project aggpas_ptcgraph_output raised exception class 'external: SIGSEGV'
In file 'C:\lazarus\fpc\3.0.2\u..\agg_rasterizer_scanline_aa.pas' at line 611 while cell_aa_ptr_prt(ptrcomp(j) + 1 * 4^^.x<J^.x do

Any ideas why this is happening?

James






More information about the fpc-pascal mailing list