GithubHelp home page GithubHelp logo

Comments (35)

ddobrev avatar ddobrev commented on May 27, 2024

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.

Hecatron avatar Hecatron commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

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.

Hecatron avatar Hecatron commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

Hi All,
I am using 32 bit pc.please suggest any solution for this issue.Thanks in advance.

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

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

SabariSankar avatar SabariSankar commented on May 27, 2024

Can you please explain about How to building the CppSharp in x86.

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@SabariSankar https://github.com/mono/CppSharp/blob/master/docs/GettingStarted.md

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

durswd avatar durswd commented on May 27, 2024

@SabariSankar
CppSharp depends on LLVM and Clang, which are famous libraries.
You need to download the both libraries and compile them.

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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
llvm
cut idea for downloading LLVM and clong.

from qtsharp.

durswd avatar durswd commented on May 27, 2024

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

Hecatron avatar Hecatron commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

ddobrev avatar ddobrev commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

I entered -G Visual Studio 10 in the command.however the error will come.

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

ddobrev avatar ddobrev commented on May 27, 2024

Use the CMake-GUI instead.

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

Sorry instead of which one?

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

If i using the cmake-gui instead of cmake .Opened the CMake application atomattically.

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

ddobrev avatar ddobrev commented on May 27, 2024

I remember now we dropped support for VS 2010. Please install VS 2013.

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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
ff

Error saying OCaml is missing.What is Ocaml.If you know means ,Please explain what is and How to install to pc.

from qtsharp.

tritao avatar tritao commented on May 27, 2024

The screenshot you posted has the answer: Host Visual Studio must be at least 2013.

from qtsharp.

SabariSankar avatar SabariSankar commented on May 27, 2024

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.

SabariSankar avatar SabariSankar commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.