Closed SabariSankar closed 9 years ago
Please check the README of the project. Qt for MSVC is not only tested, it's not supported at all at present. Only Qt for MinGW has been used during development.
The first todo, is just a place holder for using msbuild instead of visual studio at the command line. The second todo relates to using mono which might hopefully be a future thing. When I wrote the docs I just wanted to get any build to work since this is all still experimental, so I just focused on using Visual Studio initially.
As ddobrev has said instead of using the msvc version of Qt instead look for mingw in the Qt downloads section.
Hi,
I installed the qt-opensource-windows-x86-mingw491_opengl-5.4.1.exe.And Open command prompt,run the QtSharp.CLI.exe,It needs the path for Qmake and cmake.If i enter any path.then it shows the error.Can you please explain about steps for building.I attached the screenshot for what done by me.Please suggest me what made wrong on that.
Hi All,
I build the QtSharp.CLI app by set the command line such as C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\qmake.exe
C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe on the property Command line arguments.Error comes as "Could not load file or assembly 'CppSharp.Parser.CLI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.".the screenshot is attached below.Can you please tell me any additional configuration made on the project solution.
Do you use a 64-bit Windows? If so, make sure you use AnyCPU and not x86. If not, I am afraid you'll have to recompile CppSharp. The binaries Qt# uses are 64-bit.
Looking at the screenshot above, I think QtSharp.CLI is missing a reference to CppSharp.Parser.CLI.dll There shoud be a Refeferences subdirectory, try adding dll's from there as references to see if that works
Hi All, I am using 32 bit pc.please suggest any solution for this issue.Thanks in advance.
@SabariSankar I am afraid you have no other choice at the moment except building https://github.com/mono/CppSharp in 32-bit and then using the resulting binaries with Qt#.
Can you please explain about How to building the CppSharp in x86.
Hi, I cannot able to understand the link.What is LLVM and Clang?Will I download the both such as LLVM and Clang?Then How to build the CPPSharp.Please suggest me the steps.
@SabariSankar CppSharp depends on LLVM and Clang, which are famous libraries. You need to download the both libraries and compile them.
Hi,
Thanks for the explantion.
I have a doubt about LLVM.I need to download all relevent to LLVM.I asked my query on the screen shot.Please suggest me any short
cut idea for downloading LLVM and clong.
@SabariSankar No. You should use git and subversion on a command line.
For example, you input as follows.
git clone https://github.com/mono/CppSharp.git svn http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm/tools svn http://llvm.org/svn/llvm-project/cfe/trunk clang
These are in my private text. Perhaps it is too old to compile correctly.
You might find this helpfull https://github.com/ddobrev/QtSharp/blob/master/Docs/4.%20Building%20-%20CppSharp.md
It's important to match up the correct versions of llvm and clang with cppsharp usually they update they're documentation over at https://github.com/mono/CppSharp/blob/master/docs/GettingStarted.md
currently llvm = 0e8abfa6ed986c892ec723236e32e78fd9c47b88 clang = 3457cd5516ac741fa106623d9578f5ac88593f4d for when fetching via git for cppsharp
Hi,
Thanks for your help,I tried steps from your description.I used the link https://github.com/ddobrev/QtSharp/blob/master/Docs/4.%20Building%20-%20CppSharp.md
I downloaded the cppsharp successfully.But failure occure while cloning the LLVM.The error mentioned in the screenshot.Please tell me what will i do for solving this bug.Thanks in advance.
I'd make sure your using the latest version of git https://git-scm.com/download/win I think this might have happened to me once with an old version of git on a linux system
Hi sorry for the previous message from me.Actually that error due to my antivirus.It blocked something for cloning.I deactivated the antivirus and continued the cloning.Now successfully cloned.
Hi I downloaded all files relevent to CppSharp,LLVM and Clang.What will i do the next step?Please tell me.Thanks in advance
Please continue with the instruction https://github.com/mono/CppSharp/blob/master/docs/GettingStarted.md or https://github.com/ddobrev/QtSharp/blob/master/Docs/4.%20Building%20-%20CppSharp.md .
Hi, I did the step such as cmake -G "Visual Studio 10" -DCLANG_BUILD_EXAMPLES=false -DCLANG_INCLUDE_DOCS=false -DCLANG_INCLUDE_TESTS=false -DCLANG_INCLUDE_DOCS=false -DCLANG_BUILD_EXAMPLES=false -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_INCLUDE_EXAMPLES=false -DLLVM_INCLUDE_DOCS=false -DLLVM_INCLUDE_TESTS=false
But cm dprompt shows Configuration incomplete.The screenshot is attached and log also attached.Please suggest.
It tells you what the error is. You don't have VS 2013. Install it or decrease the version at -G "Visual Studio 10".
I entered -G Visual Studio 10 in the command.however the error will come.
Hi, I have the visual studio 2010.So what can i do ?I replaced the -G Visual Studio 12 by -G Visual Studio 10.Please suggest me .Thanks in advance
Use the CMake-GUI instead.
Sorry instead of which one?
Instead of calling cmake at the command line, try using the cmake-gui which is included when you install cmake or perhaps just install visual studio 2013?
If i using the cmake-gui instead of cmake .Opened the CMake application atomattically.
I have no option for using 2013.Only using 2010 and 2008.cmake-gui instead of cmake .Opened the CMake application atomattically.Still now the LVM.sln file not created.Any idea for solving this issue using visual studio 2010.Please suggest me .
I remember now we dropped support for VS 2010. Please install VS 2013.
Hi, If I am using VS 2010 means,we wont access the Qt in c#?We have no VS2013.So what can i do with VS2010.Please suggest me.
Now i run the command such as cmake -G "Visual Studio 10" -DCLANG_BUILD_EXAMPLES=false -DCLANG_INCLUDE_DOCS=false -DCLANG_INCLUDE_TESTS=false -DCLANG_INCLUDE_DOCS=false -DCLANG_BUILD_EXAMPLES=false -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_INCLUDE_EXAMPLES=false -DLLVM_INCLUDE_DOCS=false -DLLVM_INCLUDE_TESTS=false
Now small quantity of error will come.Error mentioned in screenshot
Error saying OCaml is missing.What is Ocaml.If you know means ,Please explain what is and How to install to pc.
The screenshot you posted has the answer: Host Visual Studio must be at least 2013
.
Hi, Thanks for help.Is there any possible way for accessing Qt in c# files(Visual studio 2010).Please suggest me.Thanks in advance.
Hi, Is Visual studio 2012 enough for this. cmake -G "Visual Studio 10" -DCLANG_BUILD_EXAMPLES=false -DCLANG_INCLUDE_DOCS=false -DCLANG_INCLUDE_TESTS=false -DCLANG_INCLUDE_DOCS=false -DCLANG_BUILD_EXAMPLES=false -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_INCLUDE_EXAMPLES=false -DLLVM_INCLUDE_DOCS=false -DLLVM_INCLUDE_TESTS=false
Hi All, I installed the setup "qt-opensource-windows-x86-msvc2010_opengl-5.4.1.exe" .But some files/Directory are missing.Detail mentioned in screenshot.![qtmissingdir](https://cloud.githubusercontent.com/assets/12458725/7665518/7c730bf4-fbd8-11e4-8cee-f0df95f34686.png)