arohl / gdis

A visualization program for the display, manipulation, and analysis of isolated molecules and periodic structures
GNU General Public License v2.0
43 stars 17 forks source link

Installation Issue on macOS: gtk+-2.0 Not Found Despite Correct Installation (hopefully correctly installed ) #58

Open Pandamonium-roll opened 4 months ago

Pandamonium-roll commented 4 months ago

Hello,

I am trying to install GDIS on my MacBook Pro using MacPorts to manage the installation of the necessary dependencies, namely gtk2 and gtkglext. Following the instructions in the repository, I have encountered an issue during the installation process where the ./install script is unable to find gtk+-2.0 despite it being installed and seemingly correctly configured.

Steps Taken:

  1. Installed MacPorts and used it to install gtk2 and gtkglext.
  2. Downloaded and ran the installation script using the following command:
    ./install

    This resulted in the following error:

    gtk+-2.0 [not found]

Despite these verifications showing correct installations, the installation script fails to find gtk+-2.0.

System Verification:
Check installed gtk2:
 port installed gtk2
The following ports are currently installed:
gtk2 @2.24.33_4+x11 (active)
Environment Variable (PKG_CONFIG_PATH):
 echo $PKG_CONFIG_PATH
/opt/local/lib/pkgconfig:
gtk+-2.0 version:
 pkg-config --modversion gtk+-2.0
2.24.33

Additional Information: macOS Version: 14 Sonoma M2 chip MacPorts Version: 2.9.3 Could anyone help me understand why the installation script cannot find gtk+-2.0 even though it appears to be installed and recognized by pkg-config? Any suggestions or troubleshooting advice would be greatly appreciated.

Thank you!

arohl commented 3 months ago

Until recently I didn't think you could compile gdis on Apple Silicon as one of the libraries it depended on was broken in MacPorts. However it looks like it has been fixed. I installed MacPorts, changed into the gdis top directory and typed:

sudo port install pkgconfig
sudo port install gtkglext
sudo port select --set python python312
./install

and answered the following to the prompts

GDIS Install options

1. Standard GUI package (default)
2. Command line only
Choice: 1
Checking pre-requisite packages.
gtk+-2.0              [ok]
gtkglext-1.0          [ok]
Enter Install location (press return to not install):

and it compiled and runs well. This is on a M1, but don't see why it would be any different on a M2.