$ pwd /nfs/zfs-student-3/users/2013/ksever/Test SDL2/testproj # cat Makefile ... SDL2: @echo "🔶 \033[33mDOWNLOADING: SDL2 Library\033[0m" curl -O https://www.libsdl.org/release/SDL2-2.0.1.tar.gz @echo "🔶 \033[33mEXTRACTING: SDL2 Library\033[0m" tar xf SDL2-2.0.1.tar.gz @echo "🔶 \033[33mINSTALLING: SDL2 Library\033[0m" ( cd SDL2-2.0.1 \ && ./configure CC=clang --prefix="$(shell pwd)/SDL2/" \ && $(MAKE) && $(MAKE) install ) ... $ make 🔶 DOWNLOADING: SDL2 Library curl -O https://www.libsdl.org/release/SDL2-2.0.1.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3574k 100 3574k 0 0 28.9M 0 --:--:-- --:--:-- --:--:-- 29.0M 🔶 EXTRACTING: SDL2 Library tar xf SDL2-2.0.1.tar.gz 🔶 INSTALLING: SDL2 Library ( cd SDL2-2.0.1 \ && ./configure CC=clang --prefix="/nfs/zfs-student-3/users/2013/ksever/Test SDL2/testproj/SDL2/" \ && /Applications/Xcode.app/Contents/Developer/usr/bin/make && /Applications/Xcode.app/Contents/Developer/usr/bin/make install ) configure: WARNING: Libtool does not cope well with whitespace in `pwd` checking build system type... x86_64-apple-darwin13.2.0 checking host system type... x86_64-apple-darwin13.2.0 checking how to print strings... printf checking for gcc... clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the name lister (/usr/bin/nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-apple-darwin13.2.0 file names to x86_64-apple-darwin13.2.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin13.2.0 file names to toolchain format... func_convert_file_noop checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for objdump... no checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking command to parse /usr/bin/nm output from clang object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking how to run the C preprocessor... clang -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if clang supports -fno-rtti -fno-exceptions... yes checking for clang option to produce PIC... -fno-common -DPIC checking if clang PIC flag -fno-common -DPIC works... yes checking if clang static flag -static works... no checking if clang supports -c -o file.o... yes checking if clang supports -c -o file.o... (cached) yes checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.2.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gcc... (cached) clang checking whether we are using the GNU C compiler... (cached) yes checking whether clang accepts -g... (cached) yes checking for clang option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag -fno-common -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.2.0 dyld checking how to hardcode library paths into programs... immediate checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for windres... no ./configure: line 15623: test: too many arguments checking for an ANSI C-conforming const... no checking for inline... no checking for working volatile... no checking for GCC -MMD -MT option... no checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking stdio.h usability... no checking stdio.h presence... no checking for stdio.h... no checking for stdlib.h... (cached) yes checking stddef.h usability... no checking stddef.h presence... no checking for stddef.h... no checking stdarg.h usability... no checking stdarg.h presence... no checking for stdarg.h... no checking malloc.h usability... no checking malloc.h presence... no checking for malloc.h... no checking for memory.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking ctype.h usability... no checking ctype.h presence... no checking for ctype.h... no checking math.h usability... no checking math.h presence... no checking for math.h... no checking iconv.h usability... no checking iconv.h presence... no checking for iconv.h... no checking signal.h usability... no checking signal.h presence... no checking for signal.h... no checking for size_t... no checking for M_PI in math.h... no checking for working alloca.h... no checking for alloca... no checking whether `alloca.c' needs Cray hooks... no checking stack direction for C alloca... -1 checking for working memcmp... no checking for working strtod... no checking for pow... no checking for pow in -lm... no configure: WARNING: cannot find library containing definition of pow checking for mprotect... no checking for malloc... no checking for calloc... no checking for realloc... no checking for free... no checking for getenv... no checking for setenv... no checking for putenv... no checking for unsetenv... no checking for qsort... no checking for abs... no checking for bcopy... no checking for memset... no checking for memcpy... no checking for memmove... no checking for strlen... no checking for strlcpy... no checking for strlcat... no checking for strdup... no checking for _strrev... no checking for _strupr... no checking for _strlwr... no checking for strchr... no checking for strrchr... no checking for strstr... no checking for itoa... no checking for _ltoa... no checking for _uitoa... no checking for _ultoa... no checking for strtol... no checking for strtoul... no checking for _i64toa... no checking for _ui64toa... no checking for strtoll... no checking for strtoull... no checking for atoi... no checking for atof... no checking for strcmp... no checking for strncmp... no checking for _stricmp... no checking for strcasecmp... no checking for _strnicmp... no checking for strncasecmp... no checking for sscanf... no checking for snprintf... no checking for vsnprintf... no checking for fseeko... no checking for fseeko64... no checking for sigaction... no checking for setjmp... no checking for nanosleep... no checking for sysconf... no checking for sysctlbyname... no checking for pow in -lm... (cached) no checking for atan... no checking for atan2... no checking for ceil... no checking for copysign... no checking for cos... no checking for cosf... no checking for fabs... no checking for floor... no checking for log... no checking for pow... (cached) no checking for scalbn... no checking for sin... no checking for sinf... no checking for sqrt... no checking for iconv_open in -liconv... no checking for iconv... no checking for struct sigaction.sa_sigaction... no checking for GCC builtin atomic operations... no checking for GCC -mmmx option... no checking for GCC -m3dnow option... no checking for GCC -msse option... no checking for GCC -msse2 option... no checking for Altivec with GCC altivec.h and -maltivec option... no checking for Altivec with GCC -maltivec option... no checking for Altivec with GCC altivec.h and -faltivec option... no checking for Altivec with GCC -faltivec option... no checking for GCC -fvisibility=hidden option... no checking for dlopen... no checking for Cocoa framework... no checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking whether -R must be followed by a space... neither works checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... no checking for gethostbyname in -lbsd... no checking for connect... no checking for connect in -lsocket... no checking for remove... no checking for remove in -lposix... no checking for shmat... no checking for shmat in -lipc... no checking for IceConnectionNumber in -lICE... no checking for X11/extensions/Xext.h... no configure: error: *** Missing Xext.h, maybe you need to install the libxext-dev package? make: *** [SDL2] Error 1