Comments (18)
@karliss thank you for testing. In case you've been able to work around these problems, I'd love to see your changes and try incorporating them. A patch would be even more welcome.
from qtsharp.
@karliss I'd like to let you know that the va_list bug has been fixed for more than two weeks - I am sorry for not informing you earlier.
from qtsharp.
Great, that got me a bit further. Some .cs files were generated. And i got a bunch of CS0246 QEvent and QObject. Does CppSharp automatically tries to compile generated files?
from qtsharp.
Yes, it does. About the problem itself, I am afraid I don't have the time at the moment. @golddranks has been working on the problem of dependencies which causes the majority of compilation errors so you could help him if you want. Alternatively, I can take patches for your other suggestions.
from qtsharp.
@ddobrev i get this on Linux after compiling Qtsharp on ubuntu
Error parsing 'QtCore'
/usr/include/qt5/QtCore/qglobal.h(82,10): fatal: 'algorithm' file not found
and then a null refrence exception at some where in QtSharp.QtSharp.Preprocess(CppSharp.Driver driver, CppSharp.AST.ASTContext lib),
one question i am not very good with regular expressions , can you explain this so i may help
https://github.com/ddobrev/QtSharp/blob/master/QtSharp/QtSharp.cs#L30
from qtsharp.
@shahid-pk could you please look in the debugger and tell me the value of "library"?
from qtsharp.
@ddobrev its value is libQt5Core.so
from qtsharp.
@ddobrev
after commenting out this line
https://github.com/ddobrev/QtSharp/blob/master/QtSharp/QtSharp.cs#L68
i got QtCore parsed, and got cs wrappers , now the c# compiler is complaining, which can be fixed easily, but the thing i am woried about is that QtCore parsing error which is still not fixed
/usr/include/qt5/QtCore/qglobal.h(82,10): fatal: 'algorithm' file not found,
from qtsharp.
@shahid-pk so the null ref wasn't at the regex line, that's a relief. I couldn't figure out why it would crash there. About the line you've commented out, it crashes because of the missing header. I am working on another issue at the moment, when I'm done, I'll apply an improved way of getting the MinGW headers which should fix your issue.
from qtsharp.
@shahid-pk I've implemented @karliss 's third suggestion (thanks!) and you should now have no problem with headers.
from qtsharp.
@ddobrev oh that is great to hear.
i am giving it a try.
from qtsharp.
@ddobrev
i get into another trouble which is related to CppSharp, this project is using CppSharp.Parser.CLI while on linux you can not build that assembly, because that will need a c++/cli compiler, correct me if i am wrong. so i tried to use CppSharp.Parser.Csharp instead of CppSharp.Parser.CLI but this project is using things that are not present in that assembly. the compiler complains with this error CppSharp.Parser.ParserOptions is defined in an assembly that is not referenced and four others like it.
from qtsharp.
@shahid-pk I thought you had compiled C++# on Linux, otherwise you wouldn't have been able to even start the parser. What exact references do you use?
from qtsharp.
@ddobrev yes i compiled CppSharp on Linux .. but the thing is on Linux i can not compile CppSharp.Parser.CLI because of obvious reasons, their is no C++/Cli compiler on Linux if i am not mistaken. building of CppSharp.Parser.CLI is excluded from the Linux build.
But before i merged the latest commits i was able to compile the Qtsharp project by using CppSharp.Parser.Charp instead of CppSharp.Parser.CLI, all other assemblies are the same , and of course the native CppSharp.CppParser.dll is also different on Linux it is libCppSharp.CppParser.so
from qtsharp.
Sorry for that not being clear. CppSharp.Parser.Charp is indeed used on non-Windows systems. I'll look into switching to it for Windows as well as to avoid confusion.
from qtsharp.
@ddobrev switching at this time is the correct option in my opinion , because you are using only a few things from CLI that is not in CSharp.So the switch will require less effort.
from qtsharp.
Hi ddobrev, any news for linux support ?
from qtsharp.
@armando-basile I am afraid not. I have two more bugs to fix to make a more stable Windows alpha which I should be able to finish by the middle of November. However, I would welcome any assistance for the Linux port so let me know if there's anything that gets in your way.
from qtsharp.
Related Issues (20)
- Unable to use QTreeWidget HOT 2
- Building on Mac OS X HOT 13
- can't use QStringList HOT 2
- The "QObject.Sender" is null HOT 1
- QString and 64 bit support. HOT 4
- Deploy "Generated Source" for binary releases HOT 2
- Coverage HOT 30
- Packages HOT 2
- Missing Constructors HOT 8
- KDE support HOT 5
- System.EntryPointNotFoundException HOT 8
- QtSharp | SetProperty in QML from CodeBehind HOT 6
- VisualStudio is crashing | “System.InvalidCastException” in Microsoft.CodeAnalysis.Workspaces.dll HOT 3
- Support Sailfish OS? HOT 1
- Can't add more than one string in QtCore.QStringList HOT 1
- System.AccessViolationException in QBoxLayout destructor HOT 1
- QVariant value<QObject>(), qvariant_cast, qobject_cast implementation HOT 1
- System.InvalidCastException: Can't cast type 'CppSharp.AST.Class' into 'CppSharp.AST.ClassTemplateSpecialization'. HOT 5
- Continue development of QtSharp HOT 5
- Support Android And IOS And Mac And Linux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtsharp.