Recent

Author Topic: CAD program written in Lazarus / FPC  (Read 188656 times)

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #15 on: July 22, 2012, 11:10:25 am »
Сomment line 29
Code: [Select]
{glu}TViewPortArray = array [0..3] of GLint;in misc\OGLSpecFunc.pas
In the FPC 2.6, this type is defined in glu.pp

It is also possible there will be errors:
Quote
GDBCommandsBase.pas(741,13) Error: identifier idents no member "AuxBuffers"
GDBCommandsBase.pas(742,13) Error: identifier idents no member "StencilBits"
GDBCommandsBase.pas(744,13) Error: identifier idents no member "DepthBits"
Comment out the line causing them to
« Last Edit: July 22, 2012, 11:29:36 am by zamtmn »

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: CAD program written in Lazarus / FPC
« Reply #16 on: July 22, 2012, 05:31:23 pm »
Сomment line 29
Code: [Select]
{glu}TViewPortArray = array [0..3] of GLint;in misc\OGLSpecFunc.pas
In the FPC 2.6, this type is defined in glu.pp


Thanks for the help. But Now I have a error, with DefaultSystemCodePage in Zcad file, this lines:
Code: Pascal  [Select][+][-]
  1.                               programlog.logoutstr('DefaultSystemCodePage:='+inttostr(DefaultSystemCodePage),0);
  2.                              programlog.logoutstr('DefaultUnicodeCodePage:='+inttostr(DefaultUnicodeCodePage),0);  
  3.                              programlog.logoutstr('UTF8CompareLocale:='+inttostr(UTF8CompareLocale),0);    
  4.  
The errors are:
Quote
zcad.pas(101,107) Error: Identifier not found "DefaultSystemCodePage"
zcad.pas(102,109) Error: Identifier not found "DefaultUnicodeCodePage"
zcad.pas(103,99) Error: Identifier not found "UTF8CompareLocale"

/BlueIcaro





zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #17 on: July 22, 2012, 05:49:35 pm »
This from fpc 2.7.1, comment out these lines

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: CAD program written in Lazarus / FPC
« Reply #18 on: July 22, 2012, 07:44:19 pm »
This from fpc 2.7.1, comment out these lines
Thanks, I did it, and now I can compile the source. I going to explore your code, because I found it very interesting, the use that makes of OpenGl and import of cad files.

/BlueIcaro

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #19 on: September 09, 2012, 09:52:08 pm »
I fixed a compilation in fpc 2.6

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #20 on: September 11, 2012, 09:19:33 pm »
ZCAD need linetype property for entities. i choose from two variants:
- like AutoCAD, with an honest calculation of each dash and use of SHX shapes
- like LibreCAD using fake dash in display space (with glLineStipple) without SHX shapes
The first variant is preferable, but very complex. Perhaps there is still a ways?

noctrex

  • New Member
  • *
  • Posts: 22
Re: CAD program written in Lazarus / FPC
« Reply #21 on: September 13, 2012, 12:31:14 pm »
Amazing work!
Keep it up!
Lazarus-1.1-37420-fpc-2.6.1-20120526-win32

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #22 on: September 14, 2012, 09:02:05 am »
noctrex
Thanks.

I will do linetype like in AutoCAD

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #23 on: October 09, 2012, 12:10:45 pm »
Need to write some GUI forms - color selection, and editor text styles. Forms i do not like and do not know how - so if someone has free time and desire to help - please help with the implementation

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: CAD program written in Lazarus / FPC
« Reply #24 on: October 09, 2012, 01:20:27 pm »
I'm porting mbcolorlib to lazarus it is in a very unstable state at the moment but it already produces slow (painfully slow) results on windows. I'm thinking to use BGRABitmap instead of the lazarus tbitmap but this will take some time. After I'm done it would be easy to create color selection screens for any one.

some teaser shots.
« Last Edit: October 09, 2012, 01:25:32 pm by taazz »
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #25 on: October 09, 2012, 08:52:07 pm »
taazz
Where to find these components?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: CAD program written in Lazarus / FPC
« Reply #26 on: October 09, 2012, 09:51:01 pm »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: CAD program written in Lazarus / FPC
« Reply #27 on: October 09, 2012, 10:18:54 pm »
The original components can be found at http://mxs.bergsoft.net/index.php?p=2.
The ported components are only on my disk at the moment, I need to clean the code for each component and test them on various widget sets. For the moment they only work on win32 they do not work with GTK and I haven't tested them with QT yet.

In any case I can send you an archive of my current development tree if you want to try them out on windows.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #28 on: October 10, 2012, 03:57:49 pm »
taazz
please send me zamtmn(at)yandex.ru

jmpessoa
thanks

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: CAD program written in Lazarus / FPC
« Reply #29 on: October 10, 2012, 04:37:52 pm »
I will send you everything I have so far probably tomorrow. I need to change some painting from pixel based to rawimage based 1st other wise they might be too slow for any kind of use. Hopefully I'll finish that tonight. Be forewarned the code does not work on gtk haven't tested it on qt and I'll never test it on MACos.

I have small workaround for GTK to work and I might implement that as a 1st port until I find out why they do not work.

Regards
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018