Skip to content
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

[Linux] Error when compiling with HXCPP_TRACY #1170

Open
NotHyper-474 opened this issue Dec 24, 2024 · 0 comments
Open

[Linux] Error when compiling with HXCPP_TRACY #1170

NotHyper-474 opened this issue Dec 24, 2024 · 0 comments

Comments

@NotHyper-474
Copy link

NotHyper-474 commented Dec 24, 2024

Error

Error: In file included from /.../TurnBasedRPG/.haxelib/hxcpp/git/src/hx/TelemetryTracy.cpp:2:
/.../TurnBasedRPG/.haxelib/hxcpp/git/include/hx/TelemetryTracy.h:9:10: fatal error: /.../TurnBasedRPG/export/linux/obj/obj/linux64/__pch/runtime/hxcpp.h: File or directory does not exist
    9 | #include <hxcpp.h>
      |          ^~~~~~~~~
compilation terminated.

Adding #include <hx/TelemetryTracy.h> to hxcpp.h like below fixes the error for me but I'm not sure if that's the correct way to solve it.

diff --git a/include/hxcpp.h b/include/hxcpp.h
index c29e6e96..31affe77 100755
--- a/include/hxcpp.h
+++ b/include/hxcpp.h
@@ -343,6 +343,9 @@ typedef PropertyAccessMode PropertyAccess;
 #include "Enum.h"
 #include <hx/Interface.h>
 #include <hx/Telemetry.h>
+#ifdef HXCPP_TRACY
+  #include <hx/TelemetryTracy.h>
+#endif
 #if defined(__OBJC__) && defined(HXCPP_OBJC)
   #include <hx/ObjcHelpers.h>
 #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant