Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-07

unable to rebuild lazarus

12 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bob K.

When I attempt to build my project I'm getting the message:

C:\Photography\Software\Lazarus\rakphotography.lpr(6,28) Fatal: Can't find unit Interfaces used by rakphotography

When I attempt to run my project I'm getting the message:

"Compiling package rx 1.0" completed
"Compiling package rxnew 1.1.5.98" completed
"Compiling package zcore 6.6.2" completed
"Compiling package zplain 6.6.2" completed
"Compiling package zparsesql 6.6.2" completed
"Compiling package zdbc 6.6.2" completed
"Compiling package zcomponent 6.6.2" completed
rakphotography.lpr(17,1) Error: Can't create object file: rakphotography.exe rakphotography.lpr(17,1) Fatal: Can't create executable rakphotography.exe

If I Build Lazarus with my project open, I rebuilds to completion but my project still does not build or run.

If I Build Lazarus with no projects open I get the following message:

C:\lazarus\lcl\graphtype.pp(486,10) Note: User defined: check endian and/or source byte order
C:\lazarus\lcl\graphtype.pp(490,10) Note: User defined: check endian and/or source byte order
C:\lazarus\lcl\graphtype.pp(538,10) Note: User defined: check endian and/or source byte order
C:\lazarus\lcl\graphtype.pp(543,10) Note: User defined: check endian and/or source byte order
C:\lazarus\lcl\graphtype.pp(1038,6) Note: User defined: TODO: implement CheckAlpha
C:\lazarus\lcl\include\custombitmap.inc(476,4) Note: User defined: add better check for transparency
C:\lazarus\lcl\include\custombitmap.inc(825,6) Note: User defined: set pixelformat based on image, not device
C:\lazarus\lcl\include\custombitmap.inc(927,8) Note: User defined: todo choose the correct writer
C:\lazarus\lcl\include\custombitmap.inc(1184,4) Note: User defined: todo: move to IntfImage
C:\lazarus\lcl\intfgraphics.pas(4855,4) Note: User defined: check if height is also doubled without mask
C:\lazarus\lcl\include\imglist.inc(818,60) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\graphutil.pp(129,28) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\lconvencoding.pas(23,2) Warning: User defined: Windows/Wine/ReactOS locale conversion is not fully supported yet. Sorry.
C:\lazarus\lcl\postscriptcanvas.pas(1946,4) Warning: User defined: TPostScriptPrinterCanvas.TextRect is not yet fully implemented!
C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User defined: Fix implicit pointer conversions
C:\lazarus\lcl\interfaces\win32\win32proc.pp(931,2) Note: User defined: Should be moved to WSWin32Forms, if the windowproc is splitted
C:\lazarus\lcl\interfaces\win32\win32proc.pp(1015,2) Note: User defined: Belongs in Win32WSForms, but is needed in windowproc
C:\lazarus\lcl\interfaces\win32\win32proc.pp(1239,38) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\interfaces\win32\win32proc.pp(1529,27) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\interfaces\win32\win32wsmenus.pp(616,38) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\interfaces\win32\win32wsstdctrls.pp(1305,37) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\interfaces\win32\win32wsspin.pp(104,14) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\lcl\interfaces\win32\win32lclintf.inc(520,29) Warning: Mixing signed expressions and longwords gives a 64bit result
"LCL" completed
C:\lazarus\components\synedit\SynTextDrawer.pp(424,46) Warning: Symbol "Handle" is deprecated
C:\lazarus\components\synedit\synregexpr.pas(2251,54) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\components\synedit\synregexpr.pas(2265,50) Warning: Mixing signed expressions and longwords gives a 64bit result
C:\lazarus\components\synedit\synedit.pp(5069,34) Warning: Symbol "Handle" is deprecated
"SynEdit" completed
"CodeTools" completed
"Package Registration" completed
"IDE Interface" completed
"JIT Form" completed
C:\lazarus\ide\startlazarus.lpr(51,1) Error: Can't create object file: ...\startlazarus.exe
C:\lazarus\ide\startlazarus.lpr(51,1) Fatal: Can't create executable ...\startlazarus.exe

Could someone please help.

thanks,
bob k.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080725/4add8736/attachment-0001.html

Reply by email

Mattias Gaertner
to Bob K.
When I attempt to build my project I'm getting the message: C:\Photography\Software\Lazarus\rakphotography.lpr(6,28) Fatal: Can't find unit Interfaces used by rakphotography

Did you add the LCL as dependency in the project inspector? Did you compile the LCL?
Are you cross compiling?
Did you try to compile with -vu -vt?

Show quoted text 13 lines
When I attempt to run my project I'm getting the message: "Compiling package rx 1.0" completed "Compiling package rxnew 1.1.5.98" completed "Compiling package zcore 6.6.2" completed "Compiling package zplain 6.6.2" completed "Compiling package zparsesql 6.6.2" completed "Compiling package zdbc 6.6.2" completed "Compiling package zcomponent 6.6.2" completed rakphotography.lpr(17,1) Error: Can't create object file: rakphotography.exe rakphotography.lpr(17,1) Fatal: Can't create executable rakphotography.exe

Maybe the program is still running? Windows locks executables during run.

Show quoted text 7 lines
If I Build Lazarus with my project open, I rebuilds to completion but my project still does not build or run. If I Build Lazarus with no projects open I get the following message: [...]C:\lazarus\ide\startlazarus.lpr(51,1) Error: Can't create object file: ...\startlazarus.exe

You can not build startlazarus while it is running. And you don't need to.

C:\lazarus\ide\startlazarus.lpr(51,1) Fatal: Can't create executable ...\startlazarus.exe

Mattias

Reply by email

Bob K.
to Mattias Gaertner

Mattias,

Yes the LCL is a dependency in the project inspector. Yes the LOL in compiled.
I am not cross compiling (although I'm not sure what that is) How do I compile with -vu -vt?

thanks,
bob k.

--------------------------------------------------

Earlier message 56 lines
From: "Mattias Gaertner" Sent: Friday, July 25, 2008 5:14 PM To: Subject: Re: [Lazarus] unable to rebuild lazarus > On Fri, 25 Jul 2008 11:07:22 -0400 > "Bob K." wrote: > >> When I attempt to build my project I'm getting the message: >> >> C:\Photography\Software\Lazarus\rakphotography.lpr(6,28) Fatal: Can't >> find unit Interfaces used by rakphotography > > Did you add the LCL as dependency in the project inspector? > Did you compile the LCL? > Are you cross compiling? > Did you try to compile with -vu -vt? > > >> When I attempt to run my project I'm getting the message: >> >> "Compiling package rx 1.0" completed >> "Compiling package rxnew 1.1.5.98" completed >> "Compiling package zcore 6.6.2" completed >> "Compiling package zplain 6.6.2" completed >> "Compiling package zparsesql 6.6.2" completed >> "Compiling package zdbc 6.6.2" completed >> "Compiling package zcomponent 6.6.2" completed >> rakphotography.lpr(17,1) Error: Can't create object file: >> rakphotography.exe >> rakphotography.lpr(17,1) Fatal: Can't create >> executable rakphotography.exe > > Maybe the program is still running? Windows locks executables during > run. > > >> If I Build Lazarus with my project open, I rebuilds to completion but >> my project still does not build or run. >> >> If I Build Lazarus with no projects open I get the following message: >> >>[...]C:\lazarus\ide\startlazarus.lpr(51,1) Error: Can't create >> object file: ...\startlazarus.exe > > You can not build startlazarus while it is running. And you don't need > to. > >> C:\lazarus\ide\startlazarus.lpr(51,1) Fatal: Can't create >> executable ...\startlazarus.exe > > Mattias > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Bob K.
Show quoted text 5 lines
Mattias, Yes the LCL is a dependency in the project inspector. Yes the LOL in compiled. I am not cross compiling (although I'm not sure what that is)

Good.

How do I compile with -vu -vt?

These are verbosity flag in the compiler options (Messages).

Mattias

Reply by email

Bob K.
to Mattias Gaertner

Compiled with -vu -vt options:

rakphoto.pas(53,61) Hint: Parameter "Field" not used
rakphoto.pas(54,7) Hint: Parameter "AFont" not used
rakphoto.pas(54,25) Hint: Parameter "Background" not used
rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used
rakphoto.pas(55,7) Hint: Parameter "IsDown" not used
rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto
rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto
rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto
rakphotography.lpr(17,1) Error: Can't create object file: rakphotography.exe
rakphotography.lpr(17,1) Fatal: Can't create executable rakphotography.exe

--------------------------------------------------

Earlier message 25 lines
From: "Mattias Gaertner" Sent: Saturday, July 26, 2008 10:28 AM To: Subject: Re: [Lazarus] unable to rebuild lazarus > On Sat, 26 Jul 2008 09:38:39 -0400 > "Bob K." wrote: > >> Mattias, >> >> Yes the LCL is a dependency in the project inspector. >> Yes the LOL in compiled. >> I am not cross compiling (although I'm not sure what that is) > > Good. > >> How do I compile with -vu -vt? > > These are verbosity flag in the compiler options (Messages). > > Mattias > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Bob K.
Show quoted text 14 lines
Compiled with -vu -vt options: rakphoto.pas(53,61) Hint: Parameter "Field" not used rakphoto.pas(54,7) Hint: Parameter "AFont" not used rakphoto.pas(54,25) Hint: Parameter "Background" not used rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used rakphoto.pas(55,7) Hint: Parameter "IsDown" not used rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto rakphotography.lpr(17,1) Error: Can't create object file: rakphotography.exe rakphotography.lpr(17,1) Fatal: Can't create executable rakphotography.exe

Sorry. You misunderstood me.
To find the error 'unit interfaces not found' you should compile with -vt -vu.

The can not create object files means for example: disk full, no write permissions, output directory does not exist or output file is locked. Delete the old exe before compiling.

Mattias

Reply by email

Bob K.
to Mattias Gaertner

Mattais,

I deleted the exe file, then selected Run. The project recompiled successfully, but now it says (debugging...) and is not doing anything else.

bob k.

--------------------------------------------------

Earlier message 36 lines
From: "Mattias Gaertner" Sent: Saturday, July 26, 2008 1:46 PM To: Subject: Re: [Lazarus] unable to rebuild lazarus > On Sat, 26 Jul 2008 13:21:55 -0400 > "Bob K." wrote: > >> Compiled with -vu -vt options: >> >> rakphoto.pas(53,61) Hint: Parameter "Field" not used >> rakphoto.pas(54,7) Hint: Parameter "AFont" not used >> rakphoto.pas(54,25) Hint: Parameter "Background" not used >> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used >> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used >> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto >> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto >> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto >> rakphotography.lpr(17,1) Error: Can't create object file: >> rakphotography.exe >> rakphotography.lpr(17,1) Fatal: Can't create >> executable rakphotography.exe > > Sorry. You misunderstood me. > To find the error 'unit interfaces not found' you should compile with > -vt -vu. > > The can not create object files means for example: disk full, no write > permissions, output directory does not exist or output file is locked. > Delete the old exe before compiling. > > Mattias > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin Friebe
to Bob K.

Hi Bob,

Lazarus use GDB (from the mingw project) for windows. Unfortunately I have not yet found a realty bug-free version of GDB.

I would advice to:
a) use the "reset debugger" entry from the "run" menu. (especially if you get error msgs running an app the 2nd time)
b) Check with the task manager for any gdb processes, that are left over. (That could also have cause your files to be locked)

Best Regards
Martin

Bob K. wrote 54 lines
Mattais, I deleted the exe file, then selected Run. The project recompiled successfully, but now it says (debugging...) and is not doing anything else. bob k. -------------------------------------------------- From: "Mattias Gaertner" Sent: Saturday, July 26, 2008 1:46 PM To: Subject: Re: [Lazarus] unable to rebuild lazarus > On Sat, 26 Jul 2008 13:21:55 -0400 > "Bob K." wrote: > > >> Compiled with -vu -vt options: >> >> rakphoto.pas(53,61) Hint: Parameter "Field" not used >> rakphoto.pas(54,7) Hint: Parameter "AFont" not used >> rakphoto.pas(54,25) Hint: Parameter "Background" not used >> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used >> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used >> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto >> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto >> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto >> rakphotography.lpr(17,1) Error: Can't create object file: >> rakphotography.exe >> rakphotography.lpr(17,1) Fatal: Can't create >> executable rakphotography.exe >> > Sorry. You misunderstood me. > To find the error 'unit interfaces not found' you should compile with > -vt -vu. > > The can not create object files means for example: disk full, no write > permissions, output directory does not exist or output file is locked. > Delete the old exe before compiling. > > Mattias > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Bob K.
to Martin Friebe

Still the same problem.

--------------------------------------------------

Earlier message 83 lines
From: "Martin Friebe" Sent: Sunday, July 27, 2008 1:17 PM To: "General mailing list" Subject: Re: [Lazarus] unable to rebuild lazarus > Hi Bob, > > Lazarus use GDB (from the mingw project) for windows. Unfortunately I > have not yet found a realty bug-free version of GDB. > > I would advice to: > a) use the "reset debugger" entry from the "run" menu. (especially if > you get error msgs running an app the 2nd time) > b) Check with the task manager for any gdb processes, that are left > over. (That could also have cause your files to be locked) > > > > Best Regards > Martin > > > > Bob K. wrote: >> Mattais, >> >> I deleted the exe file, then selected Run. The project recompiled >> successfully, but now it says (debugging...) and is not doing anything >> else. >> >> bob k. >> >> -------------------------------------------------- >> From: "Mattias Gaertner" >> Sent: Saturday, July 26, 2008 1:46 PM >> To: >> Subject: Re: [Lazarus] unable to rebuild lazarus >> >> >>> On Sat, 26 Jul 2008 13:21:55 -0400 >>> "Bob K." wrote: >>> >>> >>>> Compiled with -vu -vt options: >>>> >>>> rakphoto.pas(53,61) Hint: Parameter "Field" not used >>>> rakphoto.pas(54,7) Hint: Parameter "AFont" not used >>>> rakphoto.pas(54,25) Hint: Parameter "Background" not used >>>> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used >>>> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used >>>> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto >>>> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto >>>> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto >>>> rakphotography.lpr(17,1) Error: Can't create object file: >>>> rakphotography.exe >>>> rakphotography.lpr(17,1) Fatal: Can't create >>>> executable rakphotography.exe >>>> >>> Sorry. You misunderstood me. >>> To find the error 'unit interfaces not found' you should compile with >>> -vt -vu. >>> >>> The can not create object files means for example: disk full, no write >>> permissions, output directory does not exist or output file is locked. >>> Delete the old exe before compiling. >>> >>> Mattias >>> _______________________________________________ >>> Lazarus mailing list >>> >>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >> >> >> _______________________________________________ >> Lazarus mailing list >> >> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >> > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin Friebe
to Bob K.

Hi Bob,

I understand this as follows:
- Lazarus compiles, and a new exe is generated.
- the exe can be started from windows explorer, and works if your exe doesn't start from the win explorer neither, the below dbg questions are irrelevant.
- the exe does *not* open in a shell => it's linked as a win32-gui-app (compiler-options/linking)

1) What is the "debugger optins" (environment menu) setup on your lazarus? type should be "Gnu debugger", no ssh
path must point to a valid gdb.exe

2) What version of GDB?

3) If you open "view menu"/"debug windows"/"debug output" can you copy the content ?

Best Regards
Martin

Bob K. wrote 100 lines
Still the same problem. -------------------------------------------------- From: "Martin Friebe" Sent: Sunday, July 27, 2008 1:17 PM To: "General mailing list" Subject: Re: [Lazarus] unable to rebuild lazarus > Hi Bob, > > Lazarus use GDB (from the mingw project) for windows. Unfortunately I > have not yet found a realty bug-free version of GDB. > > I would advice to: > a) use the "reset debugger" entry from the "run" menu. (especially if > you get error msgs running an app the 2nd time) > b) Check with the task manager for any gdb processes, that are left > over. (That could also have cause your files to be locked) > > > > Best Regards > Martin > > > > Bob K. wrote: > >> Mattais, >> >> I deleted the exe file, then selected Run. The project recompiled >> successfully, but now it says (debugging...) and is not doing anything >> else. >> >> bob k. >> >> -------------------------------------------------- >> From: "Mattias Gaertner" >> Sent: Saturday, July 26, 2008 1:46 PM >> To: >> Subject: Re: [Lazarus] unable to rebuild lazarus >> >> >> >>> On Sat, 26 Jul 2008 13:21:55 -0400 >>> "Bob K." wrote: >>> >>> >>> >>>> Compiled with -vu -vt options: >>>> >>>> rakphoto.pas(53,61) Hint: Parameter "Field" not used >>>> rakphoto.pas(54,7) Hint: Parameter "AFont" not used >>>> rakphoto.pas(54,25) Hint: Parameter "Background" not used >>>> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used >>>> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used >>>> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto >>>> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto >>>> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto >>>> rakphotography.lpr(17,1) Error: Can't create object file: >>>> rakphotography.exe >>>> rakphotography.lpr(17,1) Fatal: Can't create >>>> executable rakphotography.exe >>>> >>>> >>> Sorry. You misunderstood me. >>> To find the error 'unit interfaces not found' you should compile with >>> -vt -vu. >>> >>> The can not create object files means for example: disk full, no write >>> permissions, output directory does not exist or output file is locked. >>> Delete the old exe before compiling. >>> >>> Mattias >>> _______________________________________________ >>> Lazarus mailing list >>> >>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >>> >> _______________________________________________ >> Lazarus mailing list >> >> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Bob K.
to Martin Friebe

Hi Martin,

1. lazarus/mingw/bin/gdb.exe
2. I'm unable to find the version of gdb.exe
3. there is nothing in the debug output window

the exe will not run from windows explorer.

I'm running Windows Vista.

--------------------------------------------------

Earlier message 133 lines
From: "Martin Friebe" Sent: Monday, July 28, 2008 10:49 AM To: "General mailing list" Subject: Re: [Lazarus] unable to rebuild lazarus > Hi Bob, > > I understand this as follows: > - Lazarus compiles, and a new exe is generated. > - the exe can be started from windows explorer, and works > if your exe doesn't start from the win explorer neither, the below > dbg questions are irrelevant. > - the exe does *not* open in a shell => it's linked as a win32-gui-app > (compiler-options/linking) > > 1) What is the "debugger optins" (environment menu) setup on your lazarus? > type should be "Gnu debugger", no ssh > path must point to a valid gdb.exe > > 2) What version of GDB? > > 3) If you open "view menu"/"debug windows"/"debug output" can you copy > the content ? > > > Best Regards > Martin > > Bob K. wrote: >> Still the same problem. >> >> >> -------------------------------------------------- >> From: "Martin Friebe" >> Sent: Sunday, July 27, 2008 1:17 PM >> To: "General mailing list" >> Subject: Re: [Lazarus] unable to rebuild lazarus >> >> >>> Hi Bob, >>> >>> Lazarus use GDB (from the mingw project) for windows. Unfortunately I >>> have not yet found a realty bug-free version of GDB. >>> >>> I would advice to: >>> a) use the "reset debugger" entry from the "run" menu. (especially if >>> you get error msgs running an app the 2nd time) >>> b) Check with the task manager for any gdb processes, that are left >>> over. (That could also have cause your files to be locked) >>> >>> >>> >>> Best Regards >>> Martin >>> >>> >>> >>> Bob K. wrote: >>> >>>> Mattais, >>>> >>>> I deleted the exe file, then selected Run. The project recompiled >>>> successfully, but now it says (debugging...) and is not doing anything >>>> else. >>>> >>>> bob k. >>>> >>>> -------------------------------------------------- >>>> From: "Mattias Gaertner" >>>> Sent: Saturday, July 26, 2008 1:46 PM >>>> To: >>>> Subject: Re: [Lazarus] unable to rebuild lazarus >>>> >>>> >>>> >>>>> On Sat, 26 Jul 2008 13:21:55 -0400 >>>>> "Bob K." wrote: >>>>> >>>>> >>>>> >>>>>> Compiled with -vu -vt options: >>>>>> >>>>>> rakphoto.pas(53,61) Hint: Parameter "Field" not used >>>>>> rakphoto.pas(54,7) Hint: Parameter "AFont" not used >>>>>> rakphoto.pas(54,25) Hint: Parameter "Background" not used >>>>>> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used >>>>>> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used >>>>>> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto >>>>>> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto >>>>>> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto >>>>>> rakphotography.lpr(17,1) Error: Can't create object file: >>>>>> rakphotography.exe >>>>>> rakphotography.lpr(17,1) Fatal: Can't create >>>>>> executable rakphotography.exe >>>>>> >>>>>> >>>>> Sorry. You misunderstood me. >>>>> To find the error 'unit interfaces not found' you should compile with >>>>> -vt -vu. >>>>> >>>>> The can not create object files means for example: disk full, no write >>>>> permissions, output directory does not exist or output file is locked. >>>>> Delete the old exe before compiling. >>>>> >>>>> Mattias >>>>> _______________________________________________ >>>>> Lazarus mailing list >>>>> >>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>>>> >>>>> >>>> _______________________________________________ >>>> Lazarus mailing list >>>> >>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>>> >>>> >>> _______________________________________________ >>> Lazarus mailing list >>> >>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >> >> >> _______________________________________________ >> Lazarus mailing list >> >> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >> > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin Friebe
to Bob K.
the exe will not run from windows explorer.

Ah ok, so it's not a debugger problem. Does the above mean: 1- Windows says it is not a valid executable? => probably best to go to the fpc mailing list
2- Window claims you haven't got permission to run it? 3- Windows doesn't say anything

--> And just to be on the save side, compiling a simple new project with a form, does that get you a working executable? <--

Also worth checking in the compiler option, that you selected to produce a windows option, and for the correct cpu.... Best to reset all settings to their default.
Remove all optimizations / Enable All range, Stack etc checking. / Remove using a manifest

In case 3:

It looks like your exe either goes into an endless loop (check the process list/task manager), or crashes/exits it imported into lazarus, from Delphi or some other tool? -Does it use special libs that are not part of lazarus, freepascal, could they have initialization code?

In any case it will be hard to find, since you can't debug it from inside Lazarus (unless you are a GDB expert and can use GDB standalone).

You could try to remove features from the app, until you get a working executable. Then add them again, and see which one breaks it... But it's a lot of work, and no promise it will lead anywhere.

Best Regards
Martin.

Sorry if this isn't of much help, but I am purely guessing here. Good luck.

Bob K. wrote 161 lines
Hi Martin, 1. lazarus/mingw/bin/gdb.exe 2. I'm unable to find the version of gdb.exe 3. there is nothing in the debug output window the exe will not run from windows explorer. I'm running Windows Vista. -------------------------------------------------- From: "Martin Friebe" Sent: Monday, July 28, 2008 10:49 AM To: "General mailing list" Subject: Re: [Lazarus] unable to rebuild lazarus > Hi Bob, > > I understand this as follows: > - Lazarus compiles, and a new exe is generated. > - the exe can be started from windows explorer, and works > if your exe doesn't start from the win explorer neither, the below > dbg questions are irrelevant. > - the exe does *not* open in a shell => it's linked as a win32-gui-app > (compiler-options/linking) > > 1) What is the "debugger optins" (environment menu) setup on your lazarus? > type should be "Gnu debugger", no ssh > path must point to a valid gdb.exe > > 2) What version of GDB? > > 3) If you open "view menu"/"debug windows"/"debug output" can you copy > the content ? > > > Best Regards > Martin > > Bob K. wrote: > >> Still the same problem. >> >> >> -------------------------------------------------- >> From: "Martin Friebe" >> Sent: Sunday, July 27, 2008 1:17 PM >> To: "General mailing list" >> Subject: Re: [Lazarus] unable to rebuild lazarus >> >> >> >>> Hi Bob, >>> >>> Lazarus use GDB (from the mingw project) for windows. Unfortunately I >>> have not yet found a realty bug-free version of GDB. >>> >>> I would advice to: >>> a) use the "reset debugger" entry from the "run" menu. (especially if >>> you get error msgs running an app the 2nd time) >>> b) Check with the task manager for any gdb processes, that are left >>> over. (That could also have cause your files to be locked) >>> >>> >>> >>> Best Regards >>> Martin >>> >>> >>> >>> Bob K. wrote: >>> >>> >>>> Mattais, >>>> >>>> I deleted the exe file, then selected Run. The project recompiled >>>> successfully, but now it says (debugging...) and is not doing anything >>>> else. >>>> >>>> bob k. >>>> >>>> -------------------------------------------------- >>>> From: "Mattias Gaertner" >>>> Sent: Saturday, July 26, 2008 1:46 PM >>>> To: >>>> Subject: Re: [Lazarus] unable to rebuild lazarus >>>> >>>> >>>> >>>> >>>>> On Sat, 26 Jul 2008 13:21:55 -0400 >>>>> "Bob K." wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Compiled with -vu -vt options: >>>>>> >>>>>> rakphoto.pas(53,61) Hint: Parameter "Field" not used >>>>>> rakphoto.pas(54,7) Hint: Parameter "AFont" not used >>>>>> rakphoto.pas(54,25) Hint: Parameter "Background" not used >>>>>> rakphoto.pas(54,49) Hint: Parameter "SortMarker" not used >>>>>> rakphoto.pas(55,7) Hint: Parameter "IsDown" not used >>>>>> rakphoto.pas(10,11) Hint: Unit "rxlookup" not used in rakphoto >>>>>> rakphoto.pas(10,21) Hint: Unit "rxdbcomb" not used in rakphoto >>>>>> rakphoto.pas(10,30) Hint: Unit "rxmemds" not used in rakphoto >>>>>> rakphotography.lpr(17,1) Error: Can't create object file: >>>>>> rakphotography.exe >>>>>> rakphotography.lpr(17,1) Fatal: Can't create >>>>>> executable rakphotography.exe >>>>>> >>>>>> >>>>>> >>>>> Sorry. You misunderstood me. >>>>> To find the error 'unit interfaces not found' you should compile with >>>>> -vt -vu. >>>>> >>>>> The can not create object files means for example: disk full, no write >>>>> permissions, output directory does not exist or output file is locked. >>>>> Delete the old exe before compiling. >>>>> >>>>> Mattias >>>>> _______________________________________________ >>>>> Lazarus mailing list >>>>> >>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Lazarus mailing list >>>> >>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>>> >>>> >>>> >>> _______________________________________________ >>> Lazarus mailing list >>> >>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >>> >> _______________________________________________ >> Lazarus mailing list >> >> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email