PDA

View Full Version : Cannot find sdl_image.dcu.. How to force delphi to generate it?



chronozphere
12-02-2011, 09:42 AM
Hey guys,

Allthough I'm fairly experienced with delphi, sometimes I run into some simple yet annoying problems. For example, I would like to run the "Aliens" demo now, which requires sdl_image. So I added "SDL_Image\pas\" to the search path (in project options, not enviroment), but it didn't help. It can't find the DCU (because it isn't there).

I thought that when I press Ctrl+F9 (build) delphi would automatically find all *.pas files used in the project and then generate the corresponding *.dcu's which are then used. Why isn't that the case now?

When does delphi turn *.pas into *.dcu EXACTLY? ???

Thanks

paul_nicholls
12-02-2011, 10:30 AM
Not sure if it helps, but Ctrl+F9 only compiles with out running...Shift+F9 actually does a build.

cheers,
Paul

AirPas
12-02-2011, 01:33 PM
i think you should add pas files into Environment options ->library

i never used project option to add extra units

chronozphere
12-02-2011, 07:40 PM
Arrgh.. this is kinda silly.

I am used to the interface of Delphi 7 and Delphi 2006, but recently I started using Delphi 2010. I accidently added all the paths in the settings for the "resource compiler" instead of the delphi compiler. It works now. :)