MacOS 64-bit

Issue #6 resolved
Former user created an issue

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)

  1. Gareth Boyes

    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
    
  2. Paul Michell 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

  3. Paul Michell 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.

  4. Gareth Boyes

    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

  5. Gareth Boyes

    Thanks Paul,

    Works fine running on MacOS Mojave (the version before Catalina).

    Line 28 of GridInQuestIIExample.py should read

    LibName = "libgiq.dylib"

    Gareth

  6. Paul Michell 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

  7. Log in to comment