Mac OS X version

11 posts / 0 new
Last post
VE3PCD
Mac OS X version

I just heard about CQRlog and joined this site.

My question is; is there a version for CQRLog for the Mac?

Thanks,

ok2cqr
ok2cqr's picture
Re: Mac OS X version

Hi,

no, there is not version for Mac OS X. I've never had this system at home. But Lazarus works also in Mac OS X and Firebird, too. You can try to port it.

73 Petr, OK2CQR

k3ng
OS X

I'm trying to compile for OS X.  I was getting pretty far by placing {$DEFINE LINUX} and {$DEFINE FreeBSD} in various include files, but I've hit a dead end in the ipc unit.  Lazarus errors out on "uses Syscall" and Googling around it appears unit Syscall is not supported with OSX?
I'm shooting in the dark a bit here as I haven't used Pascal in 25 years (Borland Turbo Pascal) and things have changed a bit since then :-)

ok2cqr
ok2cqr's picture
Re: OS X

You can delete the IPC and MySQL directories, they are there only because I still use Ubuntu 12.04 with old version of Lazarus and Freepascal. There was a bug in IPC code and I had to use source from newer version. My Lazarus doesn't have support for MySQL 5.5, it's in mysql directory.
 
I suppose you have latest Lazarus version, ipc and mysql directories are no longer needed.
 
I'd like to create MaC OS X version of CQRLOG but we have only two iPad at home (version 1 and 2) for our children. I've seen some OS X vmware images but it seems my computer is too slow for it.
 
73 Petr

k3ng
OS X

Hi Petr,
I think I'm getting really close to having this working.  I copied the directory structure from my Linux machine for ~/.config/cqrlog/ and /usr/share/cqrlog/ to the OS X machine, and I copied the executable (binary) to /usr/bin/.  The app is loading, but now it's erroring out with "Error during connection to database: Can not load default MySQL library ("libmysqlclient16.dylib" or "libmysqlclient.dylib")
 
I did some Googling and tried these solutions, none of which worked:
 
ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.16.dylib ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.dylib
 
and...
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/:$DYLD_LIBRARY_PATH
 
Any ideas?
 
Thanks and 73
Goody

k3ng
OS X

I Googled some more and I got an indication that perhaps I'm using a 32 bit binary with 64 bit MySQL.  (I see the cqrlog binary is 32 bit).  I installed mysql-connector-c-6.1.3-osx10.7-x86 ( 32 bit version at http://dev.mysql.com/downloads/connector/c/ ) and I pointed the environmental variable at it:
export DYLD_LIBRARY_PATH=/usr/local/mysql-connector-c-6.1.3-osx10.7-x86/lib
Now the error I get is "Error during connection to the database: TMySQL55Connection can not work with the installed MySQL client version: Expected (5.5), got (6.1.3).

ok2cqr
ok2cqr's picture
Re: OS X

It seems there is a problem with MySQL. CQRlog supports MySQL 5.5 but you have version 6.1.3. Very strange, as far as I know, MySQL 5.6 is alredy available for download but version 6.1.3?

k3ng
OS X

I made more progress.  I desinstalled Mysql 5.6.16 (64 bit) and installed 32 bit 5.5.36.  Cqrlog then errored with that it couldn't find mysqld.  I had to manually modify my path to include /usr/local/mysql and /usr/local/mysql/bin.  (I couldn't find in code where it looks, but this is a minor thing right now.)  I run cqrlog from the command line and it now loads up the splash screen, the database selection screen and then the main QSO and QSO list forms appear.  However, I can't seem to get the forms to respond correctly and focus doesn't function right.  If you minimize forms, they disappear and you can't get them back.  The menu bars that you see in the Linux version are not visible and the OS X menu doesn't switch to the cqrlog menus.  I think there probably needs to be some OSX-specific coding to make this function.

ok2cqr
ok2cqr's picture
Re: OS X

I'd like to create OS X version but no Mac here. Yesterday evening I tried to find vmware image but I only have VMware Player and it didn't work :(.
 
73 Petr

k3ng
OS X

No worries.  I'm running a Linux virtual machine in Virtualbox on my new Mac, so I can still run CQRLog.  I works incredibly well and you wouldn't know it was a Mac when you have it operating full screen :-)
Maybe someday when I get a break from my coding projects, I'll work on learning Lazarus and I'll port the code.  It would be nice to use Pascal again.

k3ng
OS X

After removing the ipc and mysql directories I'm able to compile successfully.  When I run it I get several exception errors and it exits, however I think I need to drop the executable into a directory with the related files, like the MySQL files.  I'm going to take the ones from my Linux installation and see if I can get it to run with them.  (I did do an installtion of MySQL on this machine.)
One step at a time.  I think I may be able to get this to work!  :-)