I want to use VS Code for building & debugging LLVM source code. Is there a good document which explains how to setup project in VS Code for LLVM ?
Thanks in advance.
I found the below blog useful :
https://developers.redhat.com/blog/2021/04/22/remote-llvm-development-with-visual-studio-code#
This talks about remote SSH setup, but all these things can be easily replicated with native vscode install.
Related
I want to build a C++ code but it errors. When I check the error message it's related with .NET. I have C# extensions but this isn't C# and I want to change this to g++ for C++ projects. I have g++ installed and added to path however I don't know how can I configure it to build with that for C++ codes.
Edit: I marked the answer as a solution but I also found an easier way for me:
https://code.visualstudio.com/docs/cpp/config-msvc
cl.exe basically.
One option (probably not the one you want to) is to build it from integrated terminal.
You can download c/c++ extension along with the cmake tools extension to have buttons for build/run configuration.
I'm a newbie in both LLVM developing and cpp.
I wanted to ask if there was a way to develop a pass for LLVM in Xcode having all the typical features available in an IDE like autocomplete and syntax code highlighting.
Right now I am just writing c++ code, checking everything I need on the documentation, but, as you can imagine, this is really slowing me down and it's really error prone...
Don't know if this can help, but my LLVM folder is structured this way:
"llvm_3.8_source/" root folder of llvm3.8 source files
"llvm_3.8_source/build" root folder of my llvm3.8 build
Thanks
Yes, it is possible.
LLVM uses CMake as a build-system generator. CMake supports such things as old good makefiles, ninja, xcode, and visual studio.
You can simply create Xcode-project using the following commands from terminal:
cd llvm_build
cmake -G Xcode path/to/llvm/sources
open LLVM.xcodeproj
First you will see lots of errors and 'red' marks. It's because some parts of LLVM sources are generated during compilation.
All files will be generated as soon as you attempt to build project first time and all the 'red' marks will gone.
You can read this article to get a bit more info on the topic:
Getting started with LLVM/Clang on OS X
I'm trying to set up a c++ unit testing library on my computer and figured that google's gtest would be a good fit.
I am currently running mountain lion with the most recent release of xcode.
I have been attempting to follow the instructions found here but am running into an intresting problem.
I am opening the gtest project, building it, and even though xcode tells me that the build was successful, I cant seem to find the framework anywhere. any help on this subject would be highly appreciated!
Thank you!
This worked for me:
Get the code from https://github.com/dmonopoly/gtest-cmake-example
Run the cmake GUI in the usual way (I used version 3.0.0). Hit "Configure", one of the prompts allows you to choose XCode generation. Hit configure again, Enable the "test" config option, hit configure again (and maybe even once again), then hit "Generate".
You should now be able to find the XCode project in the build directory that you specified. Open that project, and you will find the gtest source code, some demo test code, as well as a target for running the tests.
I have created an app in QT & I am able to deploy it in Windows.
But in Mac I am facing problems.
Can any one help me how to do this?
I am using the commands as said in help files & when I type qmake -config release i get ::::"Failure to open file: /Developer/Examples/Qt/mainwindows/application///application.xcodeproj/project.pbxproj Unable to generate makefile for: /Developer/Examples/Qt/mainwindows/application/application.pro"
With the lack of information regarding the problem that you are facing I can only recomend you to read the info provided in the Qt Reference Documentation.
http://doc.trolltech.com/4.7/deployment-mac.html
I just downloaded the source code of facebook's scribe. I'm new to it and having read the readme.build file , I can say I could barely understand how to build it. Could anyone give me the step by step procedures? thanks... :)
All you need to do is follow the readme/build instructions that came with the package. If you don't have Linux installed in your PC, you can simply use a VM and install linux in it...
I wrote a detailed tutorial on how to build Scribe from the source on Linux (Fedora) here:
http://www.alphadevx.com/a/84-Installing-Facebook-Scribe-on-Fedora-8
It is pretty complex to install frankly, so hopefully the steps above will help you out.