[SOLVED] Cannot find unit GLExt in Lazarus 64 bit Windows lazarus / 70-OpenGL ---------------------------------------------------------------------- johnya · 2012-12-06 17:28 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: [Select]unit1.pas(0,0) Fatal: Can not find unit glext used by Unit1. 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 · 2012-12-07 01:31 QuoteWhen I Ctrl+Click on GLExt, IDE opens the unit, so the file is here, but doesn't want to compile.Can you find glext.ppu and glext.o under you fpc's units directory? ---------------------------------------------------------------------- johnya · 2012-12-10 08:09 Quote from: Leledumbo on December 07, 2012, 02:31:23 amCan you find glext.ppu and glext.o under you fpc's units directory? No, these files are not there... ---------------------------------------------------------------------- Leledumbo · 2012-12-10 09:15 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 · 2012-12-10 09:45 Quote from: Leledumbo on December 10, 2012, 10:15:44 amThen 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? 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: [Select]c:\lazarus\fpc\2.6.0>bin\x86_64-win64\fpc.exe source\packages\opengl\src\glext.pp and copy glext.o, glext.ppu, and libimpglext.a to units folder. Then compiling of my project works. ---------------------------------------------------------------------- Leledumbo · 2012-12-10 11:40 QuoteI still consider myself a Lazarus newbie, so I thought I should not touch Lazarus folderIn fact, it's a good idea to dig into those directories to know the structure, etc. FPC 2.6.0 has some shipping bugs where some units aren't shipped in compiled form (e.g. fcl-stl).