Problem building with lazbuild lazarus / 21-General ---------------------------------------------------------------------- calebs · 2022-03-02 20:49 Hello all, i have a project that when i open in lazarus and run it starts fine, compiles without problem. But when i try to compile from commandline it gives me the error (lazbuild) project has no main unit. i've searched everywhere and i can't find where to specify it... i recall never have to do that with any project and if i compile in 64 bits the same project doesn't give that error im using win10 x86 with lazarus 2.2 x86 Cheers! ---------------------------------------------------------------------- Martin_fr · 2022-03-02 20:57 Are you using a release, or your own lazarus build? In case of the latter: Is your lazbuild up to date? Maybe recompile your lazbuild. ---------------------------------------------------------------------- dbannon · 2022-03-03 05:33 You are passing lazbuild the .lpi file ? And if you specify a build mode, make sure its one that exists. Maybe you should show us your command line ? Davo