Building on Mac OS X

Stephen Kelly steveire at gmail.com
Mon Dec 1 17:21:44 PST 2014


I got a different (I think earlier) problem about stdarg.h when I used
the Makefiles generator.

José, please try two things if you can:

1) Try to build with the Xcode generator. That gives us an important
data point.

2) Tell me if the OpenGL link in the OpenGL framework in your wrappers
directory is a broken symlink or does it point somewhere useful.

Thanks,

Steve.


On 12/01/2014 08:20 PM, José Fonseca wrote:
> I never tried building with the "Xcode" generator. I always use the
> default "Unix Makefiles" generator.
>
> Does the issue happen with the Unix Makefiles cmake generator too?
>
> Jose
>
> On Mon, Dec 1, 2014 at 5:51 PM, Stephen Kelly <steveire at gmail.com
> <mailto:steveire at gmail.com>> wrote:
>
>
>     Hi there,
>
>     I am unable to build apitrace on OS X. I tried after cloning with
>
>     mkdir build
>     cd build
>     cmake .. -G Xcode
>     cmake --build .
>
>     The result is many compile errors simliar to:
>
>      
>     CompileC
>     build/wrappers/apitrace.build/Debug/cgltrace.build/Objects-normal/x86_64/gltrace_state.o
>     wrappers/gltrace_state.cpp normal x86_64 c++
>     com.apple.compilers.llvm.clang.1_0.compiler
>         cd /Users/ske/dev/src/apitrace
>         export LANG=en_US.US-ASCII
>        
>     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>     -x c++ -arch x86_64 -fmessage-length=0
>     -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0
>     -Wno-trigraphs -fpascal-strings -O0
>     -Wno-missing-field-initializers -Wno-missing-prototypes
>     -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual
>     -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses
>     -Wswitch -Wno-unused-function -Wno-unused-label
>     -Wno-unused-parameter -Wno-unused-variable -Wunused-value
>     -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas
>     -Wno-shadow -Wno-four-char-constants -Wno-conversion
>     -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
>     -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof
>     -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -Dcgltrace_EXPORTS
>     -DHAVE_COMPILER_TLS=__thread -isysroot
>     /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>     -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations
>     -Winvalid-offsetof -mmacosx-version-min=10.9 -g
>     -Wno-sign-conversion
>     -I/Users/ske/dev/src/apitrace/build/wrappers/Debug/include
>     -I/Users/ske/dev/src/apitrace/thirdparty/khronos
>     -I/Users/ske/dev/src/apitrace/thirdparty/zlib
>     -I/Users/ske/dev/src/apitrace/thirdparty/snappy
>     -I/Users/ske/dev/src/apitrace/build -I/Users/ske/dev/src/apitrace
>     -I/Users/ske/dev/src/apitrace/common
>     -I/Users/ske/dev/src/apitrace/wrappers
>     -I/Users/ske/dev/src/apitrace/helpers
>     -I/Users/ske/dev/src/apitrace/build/dispatch
>     -I/Users/ske/dev/src/apitrace/dispatch
>     -I/Users/ske/dev/src/apitrace/build/wrappers/apitrace.build/Debug/cgltrace.build/DerivedSources/x86_64
>     -I/Users/ske/dev/src/apitrace/build/wrappers/apitrace.build/Debug/cgltrace.build/DerivedSources
>     -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
>     -F/Users/ske/dev/src/apitrace/build/wrappers/Debug -fPIC
>     -fvisibility=hidden -Wall -Wno-sign-compare -fmessage-length=0
>     -fno-omit-frame-pointer -MMD -MT dependencies -MF
>     /Users/ske/dev/src/apitrace/build/wrappers/apitrace.build/Debug/cgltrace.build/Objects-normal/x86_64/gltrace_state.d
>     --serialize-diagnostics
>     /Users/ske/dev/src/apitrace/build/wrappers/apitrace.build/Debug/cgltrace.build/Objects-normal/x86_64/gltrace_state.dia
>     -c /Users/ske/dev/src/apitrace/wrappers/gltrace_state.cpp -o
>     /Users/ske/dev/src/apitrace/build/wrappers/apitrace.build/Debug/cgltrace.build/Objects-normal/x86_64/gltrace_state.o
>     In file included from
>     /Users/ske/dev/src/apitrace/wrappers/gltrace_state.cpp:37:
>     In file included from
>     /Users/ske/dev/src/apitrace/build/dispatch/glproc.hpp:5:
>     /Users/ske/dev/src/apitrace/dispatch/glimports.hpp:125:10: fatal
>     error: 'OpenGL/OpenGLAvailability.h' file not found
>     #include <OpenGL/OpenGLAvailability.h>
>
>
>     I can simplif the source file down to only that include, and it
>     still fails. 
>
>     Then, I can make it work if I remove the
>     '-F/Users/ske/dev/src/apitrace/build/wrappers/Debug' from that
>     compile command. That -F path appears to be essential, as that
>     directory appears to contain a wrapper for the OpenGL framework,
>     which is intended to be used.
>
>     ~/dev/src/apitrace/build/wrappers/Debug/OpenGL.framework (master)
>     $ ls -l
>     total 16
>     lrwxr-xr-x  1 ske  75805902   23 Dec  1 18:40 OpenGL ->
>     Versions/Current/OpenGL
>     lrwxr-xr-x  1 ske  75805902   26 Dec  1 18:40 Resources ->
>     Versions/Current/Resources
>     drwxr-xr-x+ 4 ske  75805902  136 Dec  1 18:40 Versions
>
>     $ cd OpenGL 
>     -bash: cd: OpenGL: No such file or directory
>
>     So, is the buildsystem creating that wrapper buggy? Should it be
>     creating that OpenGL symlink as a wrapper to somewhere else?
>
>     Thanks,
>
>     Steve.
>
>
>     _______________________________________________
>     apitrace mailing list
>     apitrace at lists.freedesktop.org <mailto:apitrace at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/apitrace
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20141202/285c0c97/attachment.html>


More information about the apitrace mailing list