MacOS 64-bit
I recently installed GridInQuestII-OSX-0101b.zip from Downloads on my Macbook running High Sierra.
On first opening the application I received a warning that the developer needs to update the application as it is no longer compatible. The program appears to run ok.
Trying to use the libgiq.dylib library in python3 (64-bit) using:
giqdll = CDLL(os.path.join(SourceFolder, "libgiq.dylib"))
I received the following error:
builtins.OSError: dlopen(/path/to/libgiq.dylib
6): no suitable image found. Did find:
/path/to/libgiq.dylib: mach-o, but wrong architecture
It appears that the OS X version is compiled in 32-bit. If this correct, is it possible to distribute the OS X version in 64-bit, please?
Comments (10)
-
-
I am trying to use a work around. Is it possible to use giqtrans with the --CGI option to avoid creating a csv file every time I make an enquiry. I am trying with no success.
./giqtrans --CGI TargetSRID=27700&Geometry={"type":"Point","coordinates":[52.0,0.0,0.0]}&SourceSRID=4937
-
repo owner Gareth,
You are correct, the Mac build is 32bit and is not compatible with High Sierra. It is possible to build it for 64bit, but that was not a target platform for the project unfortunately. I would be happy to do the porting work for this, but there is currently no funding for the project from OS I regret to say.
I've not tried using the CGI mode outside of a web context so I can't say how much mileage you will get out of that approach. Can you run a 32bit Python environment on High Sierra? If so that would probably be able to load the dylib directly?
I'm afraid the only currently supported 64bit platforms are on Windows and Linux if you need to run on a 64bit system.
Kind regards,
Paul
-
repo owner Reclassified to a major task as this is not a bug as the software is being used out of the officially supported environments. The solution would be to build a binary distribution of the system for the 64bit Mac OSX.
-
Thanks Paul,
OS X has been 64-bit for 10 years now. It's peculiar that 64-bit OS X was not chosen as a target platform.
I can install and run 32-bit Python, if that is the only option. Or just create temporary csv files and run giqtrans as as sub-process.
Gareth
-
repo owner - changed status to on hold
-
repo owner Gareth,
I don’t know if it would still be of interest to you, but OS have now commissioned a 64bit Mac build for Catalina. The release candidate is available here if you would be interested in testing it:
https://bitbucket.org/PaulFMichell/gridinquestii/downloads/GridInQuestII-OSX64-0102RC.zip
Kind regards,
Paul
-
Thanks Paul,
Works fine running on MacOS Mojave (the version before Catalina).
Line 28 of GridInQuestIIExample.py should read
LibName = "libgiq.dylib"
Gareth
-
repo owner Gareth,
Thanks for the feedback. If there are no reported errors over the next week, that will become the official release.
Kind regards,
Paul
-
repo owner - changed status to resolved
A new 64bit build is now available here: https://bitbucket.org/PaulFMichell/gridinquestii/downloads/GridInQuestII-OSX64-0102.zip
- Log in to comment
Didn't mean to post this issue anonymously. This is me.