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

Problem in QtSharp build #31

Open
SabariSankar opened this issue May 15, 2015 · 5 comments
Open

Problem in QtSharp build #31

SabariSankar opened this issue May 15, 2015 · 5 comments

Comments

@SabariSankar
Copy link

Hi All,
I am creating the at application using c# in visual studio 2010.For integrating Qt with C#,I have did the following steps.The steps are
First we need to clone QtSharp to our local machine

mkdir C:\GITHUB
cd C:\GITHUB
git clone https://github.com/ddobrev/QtSharp.git QtSharp
cd C:\GITHUB\QtSharp
git checkout master
Next we need to tell NuGet to download any missing depends into a packages sub directory
To do this at the command line

nuget.exe restore QtSharp.sln

These are all completed successfully.
Then I go to the step

Building the QtSharp/ QtSharp.CLI
To build the sources under Visual Studio 2010

Open up the QtSharp.sln File within Visual Studio
Right Click Build on the QtSharp / QtSharp.CLI / QtSharp.Tests Projects

Now the problem will come,The problem is while building the QtSharp.Tests project.The error is

"Error 26 Unable to copy file "C:\GITHUB\QtSharp\Wrappers\QtCore\release\QtCore-inlines.dll" to "bin\Debug\QtCore-inlines.dll". Could not find a part of the path 'C:\GITHUB\QtSharp\Wrappers\QtCore\release\QtCore-inlines.dll'. QtSharp.Tests"

QtCore-inlines.dll missed.and also release folder is missed.Please suggest any idea for me.Thanks in advance.

@ddobrev
Copy link
Owner

ddobrev commented May 15, 2015

Hello,

This means that QtCore-inlines.dll was not built successfully and is therefore missing. The problem is most probably that Qt is not in your PATH. I remember making a note about that somewhere but I cannot find it now.
If adding it does not help, please debug CompileInlinesPass where the C++ compiler is invoked as an external process. You will be able to see if you get any compilation error.

@txdv
Copy link
Contributor

txdv commented Jun 10, 2015

Is QtCore-inlines.dll just QtCore compiled with all the inlines exposed? Is it a .NET dll or a windows binary?

@ddobrev
Copy link
Owner

ddobrev commented Jun 11, 2015

QtCore-inlines.dll is supposed to be produced by Qt#. The CompileInlinesPass I have mentioned invokes the C++ compiler for that purpose.

@txdv
Copy link
Contributor

txdv commented Jun 12, 2015

I tried to get that running on linux ubuntu 14.04 but failed to debug till the end.

@ddobrev
Copy link
Owner

ddobrev commented Jun 17, 2015

@txdv I assume you've built CppSharp yourself because the binaries included in Qt#'s repo are for Windows. I am afraid I have neither an idea what the problem is nor the time to test on Linux myself. I would suggest debugging CompileInlinesPass to see if you get any error during compilation or try Qt# on a Windows machine.

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

3 participants