Comments (35)
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.
from qtsharp.
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.
from qtsharp.
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.
from qtsharp.
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.
from qtsharp.
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.
from qtsharp.
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
from qtsharp.
Hi All,
I am using 32 bit pc.please suggest any solution for this issue.Thanks in advance.
from qtsharp.
@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#.
from qtsharp.
Can you please explain about How to building the CppSharp in x86.
from qtsharp.
@SabariSankar https://github.com/mono/CppSharp/blob/master/docs/GettingStarted.md
from qtsharp.
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.
from qtsharp.
@SabariSankar
CppSharp depends on LLVM and Clang, which are famous libraries.
You need to download the both libraries and compile them.
from qtsharp.
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.
from qtsharp.
@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.
from qtsharp.
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
from qtsharp.
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.
from qtsharp.
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
from qtsharp.
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.
from qtsharp.
Hi I downloaded all files relevent to CppSharp,LLVM and Clang.What will i do the next step?Please tell me.Thanks in advance
from qtsharp.
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 .
from qtsharp.
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.
from qtsharp.
It tells you what the error is. You don't have VS 2013. Install it or decrease the version at -G "Visual Studio 10".
from qtsharp.
I entered -G Visual Studio 10 in the command.however the error will come.
from qtsharp.
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
from qtsharp.
Use the CMake-GUI instead.
from qtsharp.
Sorry instead of which one?
from qtsharp.
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?
from qtsharp.
If i using the cmake-gui instead of cmake .Opened the CMake application atomattically.
from qtsharp.
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 .
from qtsharp.
I remember now we dropped support for VS 2010. Please install VS 2013.
from qtsharp.
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.
from qtsharp.
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.
from qtsharp.
The screenshot you posted has the answer: Host Visual Studio must be at least 2013
.
from qtsharp.
Hi,
Thanks for help.Is there any possible way for accessing Qt in c# files(Visual studio 2010).Please suggest me.Thanks in advance.
from qtsharp.
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
from qtsharp.
Related Issues (20)
- Unable to use QTreeWidget HOT 2
- Building on Mac OS X HOT 13
- can't use QStringList HOT 2
- The "QObject.Sender" is null HOT 1
- QString and 64 bit support. HOT 4
- Deploy "Generated Source" for binary releases HOT 2
- Coverage HOT 30
- Packages HOT 2
- Missing Constructors HOT 8
- KDE support HOT 5
- System.EntryPointNotFoundException HOT 8
- QtSharp | SetProperty in QML from CodeBehind HOT 6
- VisualStudio is crashing | “System.InvalidCastException” in Microsoft.CodeAnalysis.Workspaces.dll HOT 3
- Support Sailfish OS? HOT 1
- Can't add more than one string in QtCore.QStringList HOT 1
- System.AccessViolationException in QBoxLayout destructor HOT 1
- QVariant value<QObject>(), qvariant_cast, qobject_cast implementation HOT 1
- System.InvalidCastException: Can't cast type 'CppSharp.AST.Class' into 'CppSharp.AST.ClassTemplateSpecialization'. HOT 5
- Continue development of QtSharp HOT 5
- Support Android And IOS And Mac And Linux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtsharp.