Compiling from source

7 posts / 0 new
Last post
N1ESE
Compiling from source

Friends, I'm not familiar with fpc and lazarus but I have fpc 3.2.0-r1 and lazarus 2.1.0 (trunk) installed and working. How do I get the build to find the location of lazarus. I have it installed in /usr/local/share/lazarus

n1ese@ganymede ~/sources/cqrlog-2.4.0 $ make
lazbuild --ws=gtk2 --pcp=/tmp/.lazarus src/cqrlog.lpi
SetPrimaryConfigPath NewValue="/tmp/.lazarus" -> "/tmp/.lazarus"
Error: (lazarus) invalid Lazarus directory "": directory lcl not found
Error: (lazarus) Building failed: src/cqrlog.lpi
make: *** [Makefile:9: cqrlog] Error 2

Thanks for the help.

N1ESE
I fixed it. I found a post

I fixed it. I found a post from 2017 with a quick and dirty workaround to copy /home/user/.lazarus/* to /tmp/.lazarus/

Sorry for the wasted bandwidth.

N1ESE
Ok, now I have another

Ok, now I have another problem during the linking stage of cqrlog. Any ideas on this one?

(9009) Assembling cqrlog
(9022) Compiling resource /home/n1ese/sources/cqrlog-2.4.0/src/cqrlog.or
(9015) Linking /home/n1ese/sources/cqrlog-2.4.0/src/cqrlog
cqrlog.lpr(84) Warning: (9034) "crti.o" not found, this will probably cause a linking failure
cqrlog.lpr(84) Warning: (9034) "crtbegin.o" not found, this will probably cause a linking failure
cqrlog.lpr(84) Warning: (9034) "crtend.o" not found, this will probably cause a linking failure
cqrlog.lpr(84) Warning: (9034) "crtn.o" not found, this will probably cause a linking failure
/usr/bin/ld: /usr/lib64/libc_nonshared.a(elf-init.oS): in function `__libc_csu_init':
(.text+0x34): undefined reference to `_init'
cqrlog.lpr(84) Error: (9013) Error while linking
cqrlog.lpr(84) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppca64 returned an error exitcode
Error: (lazarus) Compile Project, Target: cqrlog: stopped with exit code 1
Error: (lazbuild) failed compiling of project /home/n1ese/sources/cqrlog-2.4.0/src/cqrlog.lpi
make: *** [Makefile:9: cqrlog] Error 2

oh1kh
Ok, now I have another

Hi!

Try to do the job in Lazarus-GUI (I always use it, never do compile via make)

https://cqrlog.com/comment/8293#comment-8293

Leave the QT5 related lines away if you need gtk2 version, Otherwise do as message says.

--
Saku
OH1KH

N1ESE
Saku, I couldn't get it to

Saku, I couldn't get it to build in the IDE either. I gave up and found an arm64 build from someone else. It is working fine.

Dumb question maybe.. what is this in the attached file? I don't understand it.

File: 

oh1kh
Oh I see now, it is local

Yep! It local sunrise and sunset.

Of course at wrong time if computer is not in time.

You did not mention you need arm64, or I did not understand that.
I have never compiled for RasperryPi (that is arm) but as far as I know there is a script at "tools" directory of source that bust be run before compile to remove some lines that do not work if compile is for arm (RPI). (remove unknown properties).

I do not know if this is still valid with latest Lazarus for arm.

NIce that you got the binary file from elsewhere.

--
Saku
OH1KH

N1ESE
Oh I see now, it is local

Oh I see now, it is local sunrise/set. I was confused because it was showing weird times but I had a system configuration issue and it is now working correctly.

Sorry Saku