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

Compiling issue with Opensuse Leap 15.3 #53

Open dvolkmer opened 2 years ago

dvolkmer commented 2 years ago

Hi,

when trying to compile GDIS with Opensuse Leap 15.3 I obtain the following error message:

Use of uninitialized value $ARGV[0] in string eq at ./install line 21. Must specify package names on the command line Use of uninitialized value $ARGV[0] in string eq at ./install line 54. /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: gl_main.o: in function gl_init_projection': /home/dirk/Downloads/gdis-master/gdis-master/src/gl_main.c:239: undefined reference togluLookAt' /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/dirk/Downloads/gdis-master/gdis-master/src/gl_main.c:268: undefined reference to gluPerspective' /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: gl_main.o: in functiongl_project': /home/dirk/Downloads/gdis-master/gdis-master/src/gl_main.c:436: undefined reference to gluUnProject' /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: gl_main.o: in functiongl_unproject': /home/dirk/Downloads/gdis-master/gdis-master/src/gl_main.c:447: undefined reference to `gluProject' collect2: error: ld returned 1 exit status make: *** [makefile:16: gdis] Fehler 1

Any tip how to resolve this problem ?

Kind regards, Dirk

ovhpa commented 2 years ago

Hello, and sorry for the late answer.

I actually had similar trouble when installing GDIS on an Opensuse LEAP 15.1 distribution for a workshop some times ago. You need to modify the file makefile.linux in the src directory: change the line:

LDFLAGS = -lm

into

LDFLAGS = -lGLU -lm

then it should work.

To my knowledge, Opensuse is the only Linux distribution that requires such a change.

If it helps, I had libGLU1, libglut3, freeglut-devel, and glu-devel packages installed at that time, thought I do not know which one(s) is(are) necessary.

Best,