comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: gprbuild, Mac OS X and frameworks?
Date: Mon, 3 Oct 2016 04:48:52 -0700 (PDT)
Date: 2016-10-03T04:48:52-07:00	[thread overview]
Message-ID: <6895090b-92f8-4942-bdb3-62090962d9de@googlegroups.com> (raw)

Hi,

I downloaded and installed the Mac OS X gnat-6.1.0 and I'm attempting to build my sdlada lib as a test. I've installed SDL2 framework to /Library/Frameworks/SDL2.framework, but no matter what I pass to gprbuild, it won't find the SDL.h header.

$ gprbuild -p -gnat2012 -XSDL_BUILD=static -XSDL_MODE=debug -XSDL_PLATFORM=macosx -Psdlada.gpr -cargs:c -framework SDL2 -v            
Compile
   [C]            version.c
Using built-in specs.
COLLECT_GCC=/opt/gcc-6.1.0/bin/gcc
Target: x86_64-apple-darwin15
Configured with: ../gcc-6.1.0/configure --prefix=/opt/gcc-6.1.0 --without-libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch --disable-libsanitizer --disable-libcc1 --disable-libcilkrts --disable-multilib --disable-nls --enable-languages=c,c++,ada,fortran,objc,obj-c++ --host=x86_64-apple-darwin15 --target=x86_64-apple-darwin15 --build=x86_64-apple-darwin15 --with-boot-ldflags='-Wl,-headerpad_max_install_names -shared-libgcc'
Thread model: posix
gcc version 6.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-ffunction-sections' '-fdata-sections' '-O0' '-g' '-v' '-MMD' '-MF' 'version.d' '-I' '/users/laguest/src/sdlada/src' '-I' '/users/laguest/src/sdlada/src/macosx' '-I' '/users/laguest/src/sdlada/build/gnat/gen/src' '-mmacosx-version-min=10.11.6' '-mtune=core2'
 /opt/gcc-6.1.0/libexec/gcc/x86_64-apple-darwin15/6.1.0/cc1 -quiet -v -I /users/laguest/src/sdlada/src -I /users/laguest/src/sdlada/src/macosx -I /users/laguest/src/sdlada/build/gnat/gen/src -MMD version.d -MF version.d -D__DYNAMIC__ /Users/laguest/src/sdlada/src/version.c -fPIC -feliminate-unused-debug-symbols -quiet -dumpbase version.c -mmacosx-version-min=10.11.6 -mtune=core2 -auxbase version -g -O0 -version -ffunction-sections -fdata-sections -o /var/folders/kz/_lq5qlt93n7d7nfw9k_yq3b00000gn/T//ccU10dTo.s
GNU C11 (GCC) version 6.1.0 (x86_64-apple-darwin15)
	compiled by GNU C version 6.1.0, GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin15/6.1.0/../../../../x86_64-apple-darwin15/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /users/laguest/src/sdlada/src
 /users/laguest/src/sdlada/src/macosx
 /users/laguest/src/sdlada/build/gnat/gen/src
 /opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin15/6.1.0/include
 /opt/gcc-6.1.0/include
 /opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin15/6.1.0/include-fixed
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
GNU C11 (GCC) version 6.1.0 (x86_64-apple-darwin15)
	compiled by GNU C version 6.1.0, GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3e35dcc037d0ffc84783f6ab58aa080e
/Users/laguest/src/sdlada/src/version.c:23:17: fatal error: SDL.h: No such file or directory
 #include <SDL.h>
                 ^
compilation terminated.
gprbuild: *** compilation phase failed

If I try -F SDL2 is says:

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin15/6.1.0/../../../../x86_64-apple-darwin15/include"
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory "SDL2"
#include "..." search starts here:

and I get the same issue as the first if I use -iframework SDL2.

Any ideas?

Thanks,
Luke.

             reply	other threads:[~2016-10-03 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-03 11:48 Lucretia [this message]
2016-10-03 12:16 ` gprbuild, Mac OS X and frameworks? Lucretia
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox