Recent

Author Topic: Lazarus & opengl in dll.  (Read 5372 times)

k00m

  • Guest
Lazarus & opengl in dll.
« on: June 19, 2006, 06:47:04 am »
Hi I have a little opengl dll project in delphi and I have try to reproduce it with Lazarus and I getting a major problem.
With delphi 6 personal I can exemple start a dll prj and add to it some opengl units to use opengl in my dll. When I create same with Lazarus and when I try to build the dll I getting a fatal error and it can't compile the opengl unit. If I do same from a normal application prj it working.
I getting this problem only from a dll prj. I have try different opengl units and it is all times same problem from lazarus, why it can't compile opengl units in a dll prj any ideas ?

Thanks.

Anonymous

  • Guest
RE: Lazarus & opengl in dll.
« Reply #1 on: June 19, 2006, 06:49:47 am »
I have forget to say when i remove the opengl units from the dll prj all working good and the dll working normaly.

Anonymous

  • Guest
RE: Lazarus & opengl in dll.
« Reply #2 on: June 19, 2006, 06:53:35 am »
I have try with Opengl12.pas or dglopengl.pas or old gl unit and it is same problem again.

RudieD

  • Full Member
  • ***
  • Posts: 234
RE: Lazarus & opengl in dll.
« Reply #3 on: June 20, 2006, 07:41:07 pm »
If you create a application, there are some units and search paths automaticaly added that's not added when you create a dll ?
The FRED Trainer. (Training FRED with Lazarus/FPC)

Anonymous

  • Guest
RE: Lazarus & opengl in dll.
« Reply #4 on: June 21, 2006, 12:04:42 am »
I try to see after my work thanks, I back to say if it is the problem.

k00m

  • Guest
Lazarus & opengl in dll.
« Reply #5 on: June 21, 2006, 02:45:24 am »
No same problem ):
Fatal: Compilation aborted

When I remove the opengl unit the dll compile and work good.
If I use the opengl unit in a application it working, it is only from the dll compilation.

Anonymous

  • Guest
Lazarus & opengl in dll.
« Reply #6 on: June 21, 2006, 03:39:18 am »
Here it is my test
http://www.dave.serveusers.com/oxGLPower.rar
You can try it and in the dll remove the {} to enable the gl unit and it don't work.
If you not remove the {} it working good.

 

TinyPortal © 2005-2018