* gprbuild, Mac OS X and frameworks?
@ 2016-10-03 11:48 Lucretia
2016-10-03 12:16 ` Lucretia
0 siblings, 1 reply; 2+ messages in thread
From: Lucretia @ 2016-10-03 11:48 UTC (permalink / 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gprbuild, Mac OS X and frameworks?
2016-10-03 11:48 gprbuild, Mac OS X and frameworks? Lucretia
@ 2016-10-03 12:16 ` Lucretia
0 siblings, 0 replies; 2+ messages in thread
From: Lucretia @ 2016-10-03 12:16 UTC (permalink / raw)
Looks like I found the solution. I'm a beginner at this Mac OS stuff, and I thought the -framework ?? thing was supposed to sort out the -I and -L stuff for you.
gprbuild -p -gnat2012 -XSDL_BUILD=static -XSDL_MODE=debug -XSDL_PLATFORM=macosx -Psdlada.gpr -cargs:c -F SDL2 -v -I/Library/Frameworks/SDL2.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/
gprbuild -p -gnat2012 -XSDL_BUILD=static -XSDL_MODE=debug -XSDL_PLATFORM=macosx -Ptests.gpr -cargs:c -F SDL2 -v -I/Library/Frameworks/SDL2.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/ -largs -framework SDL2
I'm posting this in case anyone does this in the future and needs actual help, because I've found nothing on the interwebs for this.
Looks like I need to modify my build for this.
Anyone ever try to build gcc for iPhone? Because that's next and I'm going to need assistance, I think. :/
Thanks,
Luke.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-03 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 11:48 gprbuild, Mac OS X and frameworks? Lucretia
2016-10-03 12:16 ` Lucretia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox