Recent

Author Topic: Can't compile new empty application after lazarus 4.0 installation on Win 64...  (Read 344 times)

gelinp

  • Full Member
  • ***
  • Posts: 116
Hi,

I installed Lazarus 4.0 on Windows 64 then I created a new application and compile it without writing any code. So I've got compiling error below. I'm unsertanding that it is a problem with ressources compiling (an empty form)...
Code: Pascal  [Select][+][-]
  1. Compilation du projet, Cible : C:\Users\Patrick\Documents\DATABASES\test\project1.exe: Code de sortie 1, Erreurs : 2
  2. Error: Can't create file 'C:\Users\Patrick\Documents\DATABASES\test\lib\x86_64-win64\project1.obj'
  3. project1.lpr(27,1) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.
  4.  
So I can see in project options that Windows 32 LCL is checked and I'm compiling with FPC win 64 ... (See screenshot attached).
I'm remember this is because LCL 64 bit doensn't exist yet (so an other question is do I need to use sqlite3.Dll file 32 Bit or 64 bit ?).

I checked -dv compiler option but I can't see any other error informations. So what can I do ?
Thanks for your helps.
Patrick
My configuration is : Lazarus 1.6+dfsg-1 / FPC 3.0.0 / Debian Mint / x86_64-linux-gtk2

CharlyTango

  • Full Member
  • ***
  • Posts: 127
this is just an assumption based on the error message:

Error: Can't create file 'C:\Users\Patrick\Documents\DATABASES\test\lib\x86_64-win64\project1.obj'

For some reason Lazarus cannot create the object file. This can have many reasons, but a very common one is that some permissions prevent it.
in my opinion, this still has nothing to do with any dlls
Lazarus stable, Win32/64

gelinp

  • Full Member
  • ***
  • Posts: 116
Thank you for your response, I'm asking myself the same thing... But Lazarus created some files (see attachments). You can this objectfs files looks like .o and not .obj !
« Last Edit: June 07, 2025, 05:48:37 pm by gelinp »
My configuration is : Lazarus 1.6+dfsg-1 / FPC 3.0.0 / Debian Mint / x86_64-linux-gtk2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11334
  • Debugger - SynEdit - and more
    • wiki
The important line is
  Error while compiling resources

This indicates that some input file is broken (could be one of the LFM files, or a data module).


Do what it says, compile with -vd.

If then you do not see any useful info in the output => right click and
copy => copy all/original messages

Paste them in an editor and check them. They may contain the important error.
This will be a lot of lines, the error you look for should be in the last 10 to max 50 lines.

If you can't spot it, paste those lines here on the forum.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11334
  • Debugger - SynEdit - and more
    • wiki
Quote
I checked -dv compiler option but I can't see any other error informations. So what can I do ?

-vd

Go to "Custom Options" ("opt personalizer") in the project options (where you had been looking).

There is a memo, where you can type the
-vd

 

TinyPortal © 2005-2018