Forum > OpenGL

[SOLVED] Cannot find unit GLExt in Lazarus 64 bit Windows

(1/2) > >>

johnya:
I need to compile my program as 64 bit. Not to complicate things, I uninstalled old Lazarus, deleteed the Lazarus folder, and installed Lazarus 1.0.4 64 bit for Windows.

However I always get the error

--- Code: ---unit1.pas(0,0) Fatal: Can not find unit glext used by Unit1.
--- End code ---

I get this error even when I start new project, and add GLExt into uses section. Before it, the project compiled successfully, with adding GLExt, it fails. When I Ctrl+Click on GLExt, IDE opens the unit, so the file is here, but doesn't want to compile. Any suggestions?

Leledumbo:

--- Quote ---When I Ctrl+Click on GLExt, IDE opens the unit, so the file is here, but doesn't want to compile.
--- End quote ---
Can you find glext.ppu and glext.o under you fpc's units directory?

johnya:

--- Quote from: Leledumbo on December 07, 2012, 02:31:23 am ---Can you find glext.ppu and glext.o under you fpc's units directory?

--- End quote ---

No, these files are not there...

Leledumbo:
Then the file is not compiled yet, why don't you just compile the unit and put the resulting .o and .ppu somewhere the compiler can find?

johnya:

--- Quote from: Leledumbo on December 10, 2012, 10:15:44 am ---Then the file is not compiled yet, why don't you just compile the unit and put the resulting .o and .ppu somewhere the compiler can find?

--- End quote ---

You are right. That helped. I still consider myself a Lazarus newbie, so I thought I should not touch Lazarus folder. I don't know who to report the missing units to, so that the next Lazarus/FPC release gets all files.

I run the following command:

--- Code: ---c:\lazarus\fpc\2.6.0>bin\x86_64-win64\fpc.exe source\packages\opengl\src\glext.pp
--- End code ---

and copy glext.o, glext.ppu, and libimpglext.a to units folder. Then compiling of my project works.

Navigation

[0] Message Index

[#] Next page

Go to full version