From trinh.vo at jpl.nasa.gov Mon Aug 16 19:02:24 2021 From: trinh.vo at jpl.nasa.gov (Vo, Trinh T (US 398K)) Date: Mon, 16 Aug 2021 17:02:24 +0000 Subject: [xcrysden] Problem with installing xcrysden on Mac OS 10.17.7 (Catalina) Message-ID: <571D0262-E5EA-4E42-8418-04AFDF97A4A4@jpl.nasa.gov> Dear Developer, I compiled from source code of xcrysden on my new laptop, and I encountered the following errors: # Compiling XCRYSDEN C-code # # # #------------------------------# cd C; /Applications/Xcode.app/Contents/Developer/usr/bin/make "TOPDIR=/Users/trinhvo/xcrysden-1.6.2" compile make TOPDIR=/Users/trinhvo/xcrysden-1.6.2 gcc -ffast-math -funroll-loops -fPIC -pedantic -Wall -I/usr/include/tcl8.6 -I/usr/local/Cellar/tcl-tk/8.6.11_1/include -I/usr/local/Cellar/tcl-tk/8.6.11_1/include -c xcAppInit.c xcAppInit.c:407:3: error: implicit declaration of function 'XGetErrorText' is invalid in C99 [-Werror,-Wimplicit-function-declaration] XGetErrorText(display,event->error_code,buffer,sizeof(buffer)-1); ^ xcAppInit.c:1834:7: warning: 'glDrawBuffer' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations] glDrawBuffer(GL_BACK); I do not know how to fix this error. I have installed all the required libs using homebrew - Tcl/Tk - mesa and mesa-glu - FFTW3 For these libs, I download from web) - BWidget - Togl (2.0 or later). I appreciate if you could help me to fix this error. Thank you very much, Trinh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20210816/2e1fece7/attachment.htm From gabo13279 at gmail.com Tue Aug 17 04:19:39 2021 From: gabo13279 at gmail.com (Gavin Abo) Date: Mon, 16 Aug 2021 20:19:39 -0600 Subject: [xcrysden] Problem with installing xcrysden on Mac OS 10.17.7 (Catalina) In-Reply-To: <571D0262-E5EA-4E42-8418-04AFDF97A4A4@jpl.nasa.gov> References: <571D0262-E5EA-4E42-8418-04AFDF97A4A4@jpl.nasa.gov> Message-ID: At [1] , I read Xcode 12 has a new "feature": / //*Clang* now reports an error when you use a function without an explicit declaration when building C or Objective-C code for macOS (-Werror=implicit-function-declaration flag is on). This additional error detection unifies Clang?s behavior for iOS/tvOS and macOS 64-bit targets for this diagnostic. (49917738)/ / //https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes/ At [2], I read that gcc might default to clang with homebrew.? If that is the case, have you tried change it to use gcc [3]? If that does not resolve the issue, I'm not a Mac user such that I unfortunately cannot be of much help with that.? Perhaps, there is a Mac user in the list that will respond if they have solution for that error. [1] https://github.com/astropy/astropy/issues/10770 [2] https://github.com/openvenues/libpostal/issues/511 [3] https://apple.stackexchange.com/questions/245891/installed-gcc-with-homebrew-now-how-to-use-that-gcc-instead-of-clang On 8/16/2021 11:02 AM, Vo, Trinh T (US 398K) wrote: > > Dear Developer, > > I compiled from source code of xcrysden on my new laptop, and I > encountered the following errors: > > # Compiling XCRYSDEN C-code? # > > # # > > #------------------------------# > > cd C; /Applications/Xcode.app/Contents/Developer/usr/bin/make > "TOPDIR=/Users/trinhvo/xcrysden-1.6.2" compile > > make TOPDIR=/Users/trinhvo/xcrysden-1.6.2 > > gcc -ffast-math -funroll-loops -fPIC -pedantic -Wall > -I/usr/include/tcl8.6 -I/usr/local/Cellar/tcl-tk/8.6.11_1/include > -I/usr/local/Cellar/tcl-tk/8.6.11_1/include??? -c xcAppInit.c > > xcAppInit.c:407:3: *error*: implicit declaration of function > 'XGetErrorText' is > > invalid in C99 [-Werror,-Wimplicit-function-declaration] > > XGetErrorText(display,event->error_code,buffer,sizeof(buffer)-1); > > ? ^ > > xcAppInit.c:1834:7: warning: 'glDrawBuffer' is deprecated: first > deprecated in > > ????? macOS 10.14 - OpenGL API deprecated. (Define > GL_SILENCE_DEPRECATION to > > silence these warnings) [-Wdeprecated-declarations] > > ??glDrawBuffer(GL_BACK); > > I do not know how to fix this error.? I have installed all the > required libs using homebrew > > ???????? - Tcl/Tk > > ???????? - mesa and mesa-glu > > ???????? - FFTW3 > > For these libs, I download from web) > > ???????? - BWidget > > ?????????- Togl (2.0 or later). > > I appreciate if you could help me to fix this error. > > Thank you very much, > > Trinh > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20210816/c459108c/attachment.htm From dmwood at mines.edu Thu Aug 19 01:42:32 2021 From: dmwood at mines.edu (dmwood) Date: Wed, 18 Aug 2021 17:42:32 -0600 Subject: [xcrysden] Problem with installing xcrysden on Mac OS 10.17.7 (Catalina) (Vo, Trinh T) Message-ID: Just a reminder that xcrysden can be installed via the macports package manager. In the off chance that readers don?t know about macports: many science-related package are available and build and install painlessly in /opt/local tree. ?DMW dmwood at mines.edu Emeritus Assoc Prof Department of Physics Colorado School of Mines