-
Notifications
You must be signed in to change notification settings - Fork 51
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
Building on Mac OS X #59
Comments
Hello @durswd . The parser errors are printed in the console, could you please tell me what they are? |
Parsing libraries... |
Thank you. Did you install Qt from its installers for macOS? |
Yes, I used Qt Online Installer for macOS. Version is 5.8 |
I removed this line driver.Project.AddFile("guiddef.h"); because I think that this file is not required in Mac. So errors are changed. much 'error: source file is not valid UTF-8' and Users/xxx/Qt/5.8/clang_64/lib/QtDesigner.framework/QtDesigner(24414,2): error: unterminated function-like macro invocation |
@durswd I am not sure if I can fix the error on your machine but I might have time by the end of the week to generate a binary release for you, would this work? |
Thank you. I'm trying to generate a binary too. |
I changed Qt 5.8 into Qt5.9. But same errors are caused. I seem that a file reader is something wrong. Parsing libraries... |
I found that a binary file is included through an alias instead of a header file. For example, Versions/5/QtCore is included. So I comment out As a result of this, |
@durswd I am really sorry to say I am still extremely busy. However, if you contact me in private, we could work something out. Look for my e-mail in my commit messages. |
I sent a mail to you. |
I sent and merged PR.
|
These bugs are solved on latest CppSharp. /Users/x/QtSharp/QtSharp.CLI/bin/Release/QtCore.Sharp.cs(65909,16) : error CS0400: The type or namespace name ....... |
I try to execute in Mac.
I maybe find a bug.
public static string GetModuleNameFromLibFile(string libFile)
{
var qtModule = Path.GetFileNameWithoutExtension(libFile);
if (Platform.IsWindows)
{
return "Qt" + qtModule.Substring("Qt".Length + 1);
}
return libFile.Substring("lib".Length);
}
In Mac, libFile is Qt3DQuickInput, QtCore, etc.
So this function return DQuickInput, ore, etc because 3 characters is removed from a head.
I think that it should return libFile in Mac.
In addition, I fix it. But it print "CppSharp has encountered an error while parsing code." because of missing files.
The text was updated successfully, but these errors were encountered: