ddobrev / QtSharp

Mono/.NET bindings for Qt
Other
571 stars 52 forks source link

Problem in QtSharp build #31

Open SabariSankar opened 9 years ago

SabariSankar commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

ddobrev commented 9 years ago

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

txdv commented 9 years ago

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

ddobrev commented 9 years ago

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