Forum > Windows (32/64)

[SOLVED]Lazarus&CI/CD

(1/2) > >>

zamtmn:
I try appveyor.com for build my app. Build is performed by this script https://github.com/zamtmn/zcad/blob/master/appveyor.yml
In project options Execute before compile i have $(Make) crutch_before_compilation to which I always get an error:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Error: (lazarus) [TExternalTool.DoExecute.CheckError] Error=missing executable "C:\lazarus\$Lazarusdir\fpc\3.2.2\bin\i386-win32\make.exe"Error: (lazarus) Project: Executing command before: missing executable "C:\lazarus\$Lazarusdir\fpc\3.2.2\bin\i386-win32\make.exe"Error: (lazbuild) failed "tool before" of project C:\projects\zcad\cad_source\zcad.lpimake: *** [zcadelectrotech] Error 2There are no problems with this on the local computer. I understand correctly that lazarus needs a startup to complete this setup, and since I compile the project immediately after installation, some things don't work?

trev:
Your script suggests the executable is at: C:\lazarus\fpc\3.2.2\bin\i386-win32\make.exe

The error message says it cannot find the executable at: C:\lazarus\$Lazarusdir\fpc\3.2.2\bin\i386-win32\make.exe

Being unfamiliar with your process and setup all I can suggest is that you change your script and relocate make.exe to C:\lazarus\$Lazarusdir\fpc\3.2.2\bin\i386-win32\ instead of C:\lazarus\fpc\3.2.2\bin\i386-win32\

Martin_fr:
Check c:\lazarus\environmentoptions.xml

Maybe some path is wrong. The installer is supposed to set them.

zamtmn:
C:\lazarus \$Lazarusdir\fpc\3.2.2\bin\i386-win32\make.exe
lazbuild does not correctly substitute the $(Make) macro

The problem is that I run lazbuild immediately after installing Lazarus. My scripts want that the configuration folder "C:\Documents and Settings\test\AppData\Local\lazarus\" has already been created and filled.

Here is an example fragment my Makefile

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---PCP=$(LOCALAPPDATA)\lazaruslazbuild --pcp=$(PCP) myprog.lpi
But the installer does not do this, it only happens when Lazarus is first started. How do I create and fill it myself? or specify that lazbuild do it?

update:
Another question arose: where can I download the official Lazarus builds from? Are there official mirrors for new releases?

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---curl -fsSL -o lazarus-2.2.0-fpc-3.2.2-win32.exe "https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%202.2.0/lazarus-2.2.0-fpc-3.2.2-win32.exe/download"sourceforge give 404 for appveyor

Thaddy:
make clashes with make.... (Embardacodereowhatever make? )

Navigation

[0] Message Index

[#] Next page

Go to full version