Trying to get V2

15 posts / 0 new
Last post
w6jhb
Trying to get V2

I currently have CQRlog 1.9.0 running on my Raspberry Pi 3 with Raspian Jessie. I ran a sudo apt-get update, then sudo apt-get install cqrlog. After a few lines of the usual info I get "cqrlog is already the newest version."

I thought there was a version 2 - how do I do the upgrade on this system?

Thanks, Jim / W6JHB

w6jhb
Trying to get V2

I figured part of it out - I downloaded the source and am attempting to compile it on this Raspberry Pi3. But it fails and I need help getting it to complete. Below is what I get when I attempt the "sudo make" command. How can I get the missing stuff? I have installed the current mysql-server-5.5 and mysql-client-5.5..........

Free Pascal Compiler version 2.6.4+dfsg-4+rpi1 [2014/10/21] for arm
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling cqrlog.lpr
2 167/1.120 Kb Used
Compiling fMain.pas
Compiling dLogUpload.pas
dLogUpload.pas(11,38) Fatal: Can't find unit mysql57dyn used by dLogUpload
ERROR: failed compiling of project /home/pi/Downloads/cqrlog-2.0.1/src/cqrlog.lpi
Makefile:9: recipe for target 'cqrlog' failed
make: *** [cqrlog] Error 2
pi@raspberrypi:~/Downloads/cqrlog-2.0.1 $

Jim / W6JHB
Folsom, CA

kf5rll
Trying to get V2

someone with the same problem:

https://github.com/ok2cqr/cqrlog/issues/34

Petr says problem could stem from old pascal compiler version!

73 KF5RLL

w6jhb
Trying to get V2

Well, I can honestly say this has been just about the most frustrating experience I've had with software installations in a very long time. All I want to do is get version 2 of CQRlog installed and running. I've been mucking around with this now for several days, instead of simply operating my rig and the software.

The FPC (Free Pascal Compiler) that is installed on Raspian Jessie via sudo apt-get install fpc is version 2.6.4. There apparently is a version 3.0 out there, but getting it installed on my RPi at a point where the cqrlog make command sees it is another story. Is there anyone on this list who can give me some instructions on how to get it installed so I can get V2 of CQRlog compiled?

Also - KF5RLL - thanks for the link to the other post related to this issue. Unfortunately, the fellow who posted that entry wound up (from what he typed) simply doing a sudo apt-get install cqrlog. I tried that and it tells me that I have the most current version; this is not the case.

Need help here......! :-)

Jim / W6JHB
Folsom, CA

kf5rll
Trying to get V2

Looks like the Debian Jessie repo version of CQRLOG is 1.8.2-1.1 I bet that the Raspbian repo's are based on the same core Jessie release. The link I quoted previously makes no mention of version 2.0. (missed that sorry), so they may have only gotten 1.8 or 1.9 to apt-get install.
Looks like your only option may be to update the compiler and required libraries as Petr mentioned and roll your own.

You might try asking around in the Pi forums, specifically Pi / Ham forums and I bet you will find someone that has already done it.

Good luck and if you find a solution please post it here to help others.

73' de KF5RLL

w6jhb
Trying to get V2

Tim / KF5RLL - I think you are right - I need to get someone from the RPi forums to help me with this. I can see where the Pascal stuff is located and am able to download it, but unfortunately getting it installed correctly is a bit beyond my competency level in Linux. Thanks again for your help. If/when I get any progress on this I'll post back here.

73, Jim / W6JHB

Jim / W6JHB
Folsom, CA

w6jhb
Trying to get V2

Got a reply from one of the folks on the Raspberry Pi forums. He pointed me to the link you did. That link also got me to a Pascal site with instructions on how to install Pascal 3.0 and Lazarus 1.6. That is the good news. The bad news is that the install process will ONLY permit installing to a directory in your HOME directory. I did that but the CQRlog "make" process does not see that directory and winds up using the old version of the Pascal compiler.

So, if for example, my new Pascal v3 compiler is in my /home/Pi/fpc3 directory, how can I get the CQRlog make process to get Pascal from there? Petr, anyone.........?

Jim / W6JHB
Folsom, CA

ok2cqr
ok2cqr's picture
Re: Trying to get V2

Hi Jim,

when you have Lazarus and fpc installed, it's not hard to compile cqrlog.

If you look to Makefile in the cqrlog source directory, there is something like this:


CC=lazbuild
ST=strip

You can correct the path to the right directories with the binaries lazbuild and strip and compilation should work.

73 Petr

w6jhb
Trying to get V2

Petr,

Well, making some progress but I still need two questions answered. First, I have installed Lazarus and fpc - that went well. I have found the binary for Lazarus. But, what is "strip"? There is no binary anywhere on this computer called strip. Please explain strip.

Second, the binary for Lazarus is located in: /home/pi/Development/FreePascal/lazarus/lazbuild This is the first few lines of the CQRlog Makefile:
CC=lazbuild
ST=strip
datadir = $(DESTDIR)/usr/share/cqrlog
bindir = $(DESTDIR)/usr/bin
sharedir = $(DESTDIR)/usr/share
tmpdir = /tmp

cqrlog: src/cqrlog.lpi
$(CC) --ws=gtk2 --pcp=$(tmpdir)/.lazarus src/cqrlog.lpi
$(ST) src/cqrlog
gzip tools/cqrlog.1 -c > tools/cqrlog.1.gz

Sorry, but my "newbieness" has me scratching my head as to what I need to change in the Makefile to have it point at that Lazarus binary.

Thanks, Jim

Jim / W6JHB
Folsom, CA

ok2cqr
ok2cqr's picture
Re: Trying to get V2

Jim,

the first line of Makefile should look like this:

CC=/home/pi/Development/FreePascal/lazarus/lazbuild

and on the beginning of the line with $(ST) src/cqrlog put # or delete the line completely.

Strip removes debug data from executable and makes it smaller but it's not needed.

73 Petr

w6jhb
Trying to get V2

Petr,

Thanks for the reply. Made the changes to Makefile and re-ran the make command. Fails looking for something else, terminal output is below. I had removed the $(ST) line, but the error I see makes me think it is still doing something with debugger code. Any ideas?

(BTW - my CQRlog 1.9 is working and I'd like to get to v 2.0.01, so I'm trying to get to a point where I can upgrade if I need to)

pi@raspberrypi:~/cqrlog-2.0.1 $ make
/home/pi/Development/FreePascal/lazarus/lazbuild --ws=gtk2 --pcp=/tmp/.lazarus src/cqrlog.lpi
SetPrimaryConfigPath NewValue="/tmp/.lazarus" -> "/tmp/.lazarus"

$002507E0
$0008F80C
$00011474
$001F2208
$001E1420
$001E12D0
$00014CA0
$00012EB4
$000117DC
Error: (lazbuild) Package file not found
The package "DebuggerIntf" is installed, but no valid package file (.lpk) was found.
A broken dummy package was created.
lazbuild is non interactive, aborting now.
Makefile:9: recipe for target 'cqrlog' failed
make: *** [cqrlog] Error 2
pi@raspberrypi:~/cqrlog-2.0.1 $

Jim / W6JHB
Folsom, CA

w6jhb
Trying to get V2

Petr,

Unless there is some quick fix on this problem, I am ready to simply forget about it for now and stay with v 1.9.0 since it works fine for me. While having the more current version would be nice, it is simply taking up too much time (yours and mine!) to go any further with it.

If, in the future, someone builds another more current binary for the Raspberry Pi ARM that would be great. But now I'll just stay where I am at.

Thanks for the help from you and others who have tried to help me get it going

73, Jim / W6JHB

Jim / W6JHB
Folsom, CA

OH1E
C.H.I.P has same issue

As chip is ARM aswell jessie.
there is same issue, only i cannot get 1.9. its even older.

chip@chip:~/cqrlog$ make
lazbuild --ws=gtk2 --pcp=/tmp/.lazarus src/cqrlog.lpi
SetPrimaryConfigPath NewValue="/tmp/.lazarus" -> "/tmp/.lazarus"
primary config path: /tmp/.lazarus/
TProjectResources.Regenerate Save failed
TLazBuildApplication.BuildProject Project1.Resources.Regenerate failed
TBuildManager.CheckIfProjectNeedsCompilation Compile was incomplete for Project
TCompiler.Compile WorkingDir="/home/chip/cqrlog/src/" CompilerFilename="/usr/bin/fpc" CompilerParams=" -MObjFPC -Sghi -O3 -Tlinux -Parm -g -gl -vewil -Fl/usr/lib/lazarus/1.2.4/lcl -Fl/opt/gnome/lib -Fu/home/chip/cqrlog/src/lnet/lib -Fu/home/chip/cqrlog/src/mysql -Fu/usr/lib/lazarus/1.2.4/components/turbopower_ipro/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/tachart/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/sqldb/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/rtticontrols/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/memds/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/tdbf/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/printers/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/ideintf/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/synedit/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/sdf/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/lazcontrols/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/cairocanvas/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/lcl/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/lcl/units/arm-linux -Fu/usr/lib/lazarus/1.2.4/components/codetools/units/arm-linux -Fu/usr/lib/lazarus/1.2.4/components/lazutils/lib/arm-linux -Fu/usr/lib/lazarus/1.2.4/packager/units/arm-linux -Fu/home/chip/cqrlog/src/ -l -dLCL -dLCLgtk2 -dNO_CONTEST cqrlog.lpr"
[TCompiler.Compile] CmdLine="/usr/bin/fpc -MObjFPC -Sghi -O3 -Tlinux -Parm -g -gl -vewil -Fl/usr/lib/lazarus/1.2.4/lcl -Fl/opt/gnome/lib -Fu/home/chip/cqrlog/src/lnet/lib -Fu/home/chip/cqrlog/src/mysql -Fu/usr/lib/lazarus/1.2.4/components/turbopower_ipro/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/tachart/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/sqldb/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/rtticontrols/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/memds/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/tdbf/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/printers/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/ideintf/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/synedit/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/sdf/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/lazcontrols/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/components/cairocanvas/lib/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/lcl/units/arm-linux/gtk2 -Fu/usr/lib/lazarus/1.2.4/lcl/units/arm-linux -Fu/usr/lib/lazarus/1.2.4/components/codetools/units/arm-linux -Fu/usr/lib/lazarus/1.2.4/components/lazutils/lib/arm-linux -Fu/usr/lib/lazarus/1.2.4/packager/units/arm-linux -Fu/home/chip/cqrlog/src/ -l -dLCL -dLCLgtk2 -dNO_CONTEST cqrlog.lpr"
Free Pascal Compiler version 2.6.4+dfsg-4 [2014/10/14] for arm
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling cqrlog.lpr
2 163/1.088 Kb Used
Compiling fMain.pas
Compiling dLogUpload.pas
dLogUpload.pas(11,38) Fatal: Can't find unit mysql57dyn used by dLogUpload
ERROR: failed compiling of project /home/chip/cqrlog/src/cqrlog.lpi
Makefile:9: recipe for target 'cqrlog' failed
make: *** [cqrlog] Error 2
chip@chip:~/cqrlog$ apt-cache policy cqrlog
cqrlog:
Installed: (none)
Candidate: 1.8.2-1.1
Version table:
1.8.2-1.1 0
500 http://ftp.us.debian.org/debian/ jessie/main armhf Packages
chip@chip:~/cqrlog$

ok2cqr
ok2cqr's picture
Re: C.H.I.P has same issue

Problem is here:

Free Pascal Compiler version 2.6.4+dfsg-4 [2014/10/14] for arm

CQRLOG needs Free Pascal Compiler version 3.0 or higher.

OH1E
hmm

okey, thanks for info but i tried from repo the 1.8 binary version that seems to work.
another issue came, the resolution is pal/ntsc so tried to get dpi lower and fonts smaller, but i was unable to fit that window on screen where could insert log information, as there is no scroll bars, the program is not usable on that resolution. :DD it just not fit, and half of fields is hidden :DD
im going move to other single board computer, i have also couple OrangePI:s i just need find a sd card for it next to try there. :) it has at least HDMI output, so resolution should be at least HD or (FHD if screen support it)

i admit chip resolution is way to small for anything without the hdmi or vga dongle.. :D but anyway it works there(it start and show logs).