<div dir="ltr">I believe the right extenision is actually *.dylib. Not *.dyld.<br><br>Sorry, I don't have a Mac hand. This is all from memory. Tomorrow I might retry on my mac machine and give more accurate answers.<br>
<br>I build with Xcode compilers, via command line cmake, just as described in the README.<br><br>The trace is generated in the current dir. There is usually a message to stderr saying "apitrace: tracing to ..." like on linux.<div>
<br></div><div>You can also force trace to be written to a given path by doing</div><div><br></div><div>   export TRACE_FILE=/path/to/where/you/want/the.trace<br><br>before running.</div><div><br></div><div>You can also do</div>
<div><br></div><div style>  otool -L /path/to/your/executable</div><div><br></div><div style>to see whether the wrapper from apitrace are being picked or not. </div><div style><br></div><div>See   <a href="http://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/otool.1.html#//apple_ref/doc/man/1/otool">http://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/otool.1.html#//apple_ref/doc/man/1/otool</a><br>
and <a href="http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man1/dyld.1.html">http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man1/dyld.1.html</a> for debuggin dynamic library loading.</div>
<div><br>Jose<div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 14, 2013 at 11:58 PM, Peter Lohrmann <span dir="ltr"><<a href="mailto:peterl@valvesoftware.com" target="_blank">peterl@valvesoftware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">I have no *.dyld files. The file that gets output from the cgltrace project is just called "OpenGL"<br>
<br>
How are you compiling? I'm using XCode.<br>
<br>
Where does your trace file get generated? In the ApiTrace folder, or the OSX.app/Contents/MacOS/CINEBENCH OSX" folder?<br>
<br>
Even if I am in the directory containing apitrace, it is not recognized as an executable if I try to run it as you mention below. It does work if I use "open apitrace" and I can see the usage print out. Unfortunately I'm not able to get it to recognize any
 arguments.<br>
<br>
- Peter<br>
<br>
<div style="font-size:16px;font-family:'Times New Roman'">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> José Fonseca [<a href="mailto:jose.r.fonseca@gmail.com" target="_blank">jose.r.fonseca@gmail.com</a>]<br>
<b>Sent:</b> Tuesday, May 14, 2013 3:09 PM<br>
<b>To:</b> Peter Lohrmann<br>
<b>Cc:</b> Apitrace list<br>
<b>Subject:</b> Re: apitrace on OS X<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">I use apitrace on MacOSX, though only sporadically.
<div><br>
</div>
<div>I haven't tried tracing through "open". What I typically do is to find inside the executable inside foo.app/ and invoke that directly.  Take for example CINEBENCH -- if you download CINEBENCH <a href="http://www.maxon.net/?id=1258" target="_blank">http://www.maxon.net/?id=1258</a> ,
 then you'd trace it as</div>
<div><br>
</div>
<div>   apitrace trace "CINEBENCH OSX.app/Contents/MacOS/CINEBENCH OSX"</div>
<div><br>
</div>
<div>or somthing like that.</div>
<div><br>
</div>
<div>Also, I'm surprised you have a wrappers/Debug subdir -- when I build on MacOSX the .dyld wrappers does not go into a Debug subdir. This only happens on MSVC builds for me. What does</div>
<div><br>
</div>
<div>  find /ApiTrace/build -name \*.dyld </div>
<div>
<div>
<div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">output?</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Jose<br>
<br>
<div class="gmail_quote">On Tue, May 14, 2013 at 10:21 PM, Peter Lohrmann <span dir="ltr">
<<a href="mailto:peterl@valvesoftware.com" target="_blank">peterl@valvesoftware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US">
<div>
<div>
<div>
<div>
<div>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi all,<u></u><u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I'm trying to use apitrace on OS X, but having trouble. I've got the project building, and am using the suggested command line to launch the application (while also
 overriding DYLD_LIBRARY_PATH) and it does run, but I can't find a trace file anywhere. I'm guessing the application is not actually loading my opengl library.
<u></u><u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p>export DYLD_LIBRARY_PATH=/ApiTrace/build/wrappers/Debug/<u></u><u></u></p>
<p>open <long path>/OSXGLEssentials.app<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Can anyone offer some suggestions as to what the issue may be, or how to investigate this farther? I'm relatively new to OS X development, so all help would be appreciated.<u></u><u></u></span></p>

<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thank you,<u></u><u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">   Peter<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org" target="_blank">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div></div></div>