-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: capstone.h: No such file or directory #547
Comments
Fixed by: diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp
index 0cb01e50..d3071e57 100644
--- a/server/TracySourceView.cpp
+++ b/server/TracySourceView.cpp
@@ -2,7 +2,7 @@
#include <inttypes.h>
#include <stdio.h>
-#include <capstone.h>
+#include <capstone/capstone.h>
#include "imgui.h"
#include "TracyCharUtil.hpp"
diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp
index d3820076..4a354200 100644
--- a/server/TracyWorker.cpp
+++ b/server/TracyWorker.cpp
@@ -19,7 +19,7 @@
#include <inttypes.h>
#include <sys/stat.h>
-#include <capstone.h>
+#include <capstone/capstone.h>
#define ZDICT_STATIC_LINKING_ONLY
#include "../zstd/zdict.h" |
This issue has surfaced earlier and there's no easy fix. See #170 and especially #429. Maybe I should use |
Yeah that's unfortunate. I don't really know of a way to nicely solve this. The best I know how to do is to do it the way that feels the most "standard" to you, and relying on systems to provide patches to make it work for their nonstandard include paths. For me the "standard" way would be including the directory prefix in the If you're interested in considering it, I could provide a |
Yeah, we're kinda at this point right now. The true culprit is that capstone has been in the RC phase for 5.0 for more than a year.
Thank you for the offer, but I don't think having another build system that would inevitably go out of the sync sooner rather than later would be beneficial to people. I'd rather have just one thing that works well. |
Not really a fix, but for anyone else seeing the error, I just wanted to point out that the following would also work make CFLAGS="-I/usr/include/capstone" # change to path that includes capstone.h |
This seems to be a breaking change. |
Tracy v0.9.1
the nix packages I have in this environment are:
capstone (4.0.2) is included.
The text was updated successfully, but these errors were encountered: