QtSharp icon indicating copy to clipboard operation
QtSharp copied to clipboard

Problem in QtSharp build

Open SabariSankar opened this issue 9 years ago • 5 comments

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.

SabariSankar avatar May 15 '15 11:05 SabariSankar

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.

ddobrev avatar May 15 '15 11:05 ddobrev

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

txdv avatar Jun 10 '15 13:06 txdv

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

ddobrev avatar Jun 11 '15 23:06 ddobrev

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

txdv avatar Jun 12 '15 14:06 txdv

@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.

ddobrev avatar Jun 17 '15 21:06 ddobrev