You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
The project is not finished yet, there are still ideas for improvement. In addition, I do not exclude the presence of problems and bugs. In general, the project can already be used, but you need to be prepared for possible bugs. Therefore, if you suddenly encounter a problem, open a issue with a description of the situation where the problem occurs.
Just compiled the project. g++ compiler (GCC) 13.2.1 20240316, AngelScript version 2.36.1.
The project started without errors. Maybe you are using a different version of Angelscript?
Just compiled the project. g++ compiler (GCC) 13.2.1 20240316, AngelScript version 2.36.1. The project started without errors. Maybe you are using a different version of Angelscript?
Yes, I'm using an older version: 2.35.1
I will try with 2.36.1
I comment here my experience in case it can be useful for somebody:
I got something working in my Qt app, but found some challenges.
Main problem is that Qt emit macro collides with asmjit's emit function.
I tried the solution described in this post and could compile: error-when-using-asmjit-within-a-qt-gui-application
But my app crashes in some cases, exactly when emitting a signal.
I got "paranoid" with the emit issue and renamed everything containing "emit" to "jitEmit" or similar in asmjit, functions, class names and everything...
But my app still crashes in some cases.
The scripts works ok, the crash happens later when the program returns to Qt events loop, and always related with a button "clicked" signal or something like that.
No idea of what could be the problem.
Another minor issue is that I'm using C++11 and got an error in a std::set which does not implement "contains()" method.
So I just iterated through the std::set to find the item.
With this minor change I could compile with C++11
Activity
Programier commentedon Apr 23, 2024
Hello!
The project is not finished yet, there are still ideas for improvement. In addition, I do not exclude the presence of problems and bugs. In general, the project can already be used, but you need to be prepared for possible bugs. Therefore, if you suddenly encounter a problem, open a issue with a description of the situation where the problem occurs.
Arcachofo commentedon Apr 23, 2024
Thanks.
I will try it and let you know.
Any hints to compile it?
Seems to need c++20, isn't it?
Arcachofo commentedon Apr 24, 2024
I could compile it.
with the simplest "Hello world" scripts it works ok:
But with test/example.cpp I get a segfault.
Maybe I didn't compile it correctly, or wrong AngelScript version...
Programier commentedon Apr 24, 2024
Please tell me the platform (Windows, Linux, Android?) and architecture (x86_64 or arm64) on which the code was run?
Arcachofo commentedon Apr 24, 2024
Linux x86_64
Programier commentedon Apr 24, 2024
Just compiled the project. g++ compiler (GCC) 13.2.1 20240316, AngelScript version 2.36.1.
The project started without errors. Maybe you are using a different version of Angelscript?
Arcachofo commentedon Apr 24, 2024
Yes, I'm using an older version: 2.35.1
I will try with 2.36.1
I comment here my experience in case it can be useful for somebody:
I got something working in my Qt app, but found some challenges.
Main problem is that Qt emit macro collides with asmjit's emit function.
I tried the solution described in this post and could compile:
error-when-using-asmjit-within-a-qt-gui-application
But my app crashes in some cases, exactly when emitting a signal.
I got "paranoid" with the emit issue and renamed everything containing "emit" to "jitEmit" or similar in asmjit, functions, class names and everything...
But my app still crashes in some cases.
The scripts works ok, the crash happens later when the program returns to Qt events loop, and always related with a button "clicked" signal or something like that.
No idea of what could be the problem.
Another minor issue is that I'm using C++11 and got an error in a std::set which does not implement "contains()" method.
So I just iterated through the std::set to find the item.
With this minor change I could compile with C++11
std::set<unsigned int>& skip_it; skip_it.contains(index)