QtSharp
QtSharp copied to clipboard
Problem in QtSharp build
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.
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.
Is QtCore-inlines.dll just QtCore compiled with all the inlines exposed? Is it a .NET dll or a windows binary?
QtCore-inlines.dll is supposed to be produced by Qt#. The CompileInlinesPass I have mentioned invokes the C++ compiler for that purpose.
I tried to get that running on linux ubuntu 14.04 but failed to debug till the end.
@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.