I have downloaded and installed some cn1lib files, like the BarScanner or DropBox libraries. I copied the files into the "lib" folder in NB and refreshed.
But now I wanted to try the Connectivity library and there is no "cn1lib" file. Only these 3 files:
I read on a blog post that we can create the files using NB, but there are no walkthru tutorials anywhere
Question
Can anyone explain how we should do it? (please don't skip steps. I am not a professional programmer)
The cn1lib file should be in the dist directory of the library project since its the result of building the library project.
Related
I am tinkering with this C MXChip IoT project. This may be a supid question but hacking and navigating the code is difficult because there is no single project with all libraries and src files. Is there a way to have all main program, libs, src c and h files on the same Visual Studio project (not VSCode, I'm using VS2022)?
Most probably my tries were wrong, I tried dragging all the files into the solution of a new C project but references or variables are still unrecognized. Same result adding in solution properties->c/c++->Additional include directories/#using directories, and this latter approach doesn't show me the file to navigate and see the code.
I see the following folders with its subfolders used by the project:
app;lib;shared;
I installed dev env vcpkg following guide https://vcpkg.io/en/getting-started.html with package azure-iot-sdk-c found in https://vcpkg.io/en/packages.html. vcpkg is a MSFT supported env. And also installed Azure IoT Edge Tools for VS 2022 following guide https://learn.microsoft.com/en-us/azure/iot-edge/how-to-visual-studio-develop-module?view=iotedge-1.4 and works great !
I am using X-Code 10 as a C IDE. I am doing a group project and we must use GitLab to share the code. To work in Xcode there are a lot of files to make Xcode work, but none that I need to share with my partners who are using their own IDE and who just need the .c files we are working on. How do I make Git not upload ALL files and just the .c?
There are ways to handle the excludes for a git project. There is the .gitignore file where you can create rules for what files should be excluded from your project. This file will be tracked by git, so you and your teammates will be sharing this file.
For your own personal excludes, you can put them into the .git/info/exclude file. This will not be tracked by git and will affect only your own local repository. This is a good place put rules that are specific to your own workflow.
I am trying to get an open source software called AuBio ( Source ) to run on Visual studio express but I am having a lot of problems getting it to build.
What I've Done:
I opened a new C/C++ solution on VS Express then copied all the header files in the source folder (SRC) into the "Header Files" filter of my project then copied all the C files in the SRC folder into the "Source Files" filter of my project. I have also downloaded all the 3 dependencies required to run AuBio but I do not know where to put them because the "External Dependencies" filter of my project does not seem to want accept them.
Can someone please guide me on how I can go about about building this program?
Addition:
The dependencies are other open source projects; the build instructions for AuBio ( which are HERE ) tell me that I need to install the dependencies before I use AuBio but I have no clue how I can do that.
AuBio also provides a pre-compiled version of it's software (it's cross compiled on MingGW32, and is here) which consists of exe files for each major class and dll files for both AuBio and all it's dependencies, but I have no idea how to use these too, when I download and try to run the exe's they refuse to run.
I am really stuck on this can someone help?
It's not clear what you mean by filter. Do the header files and source files appear in 'Solution View' of the project? If not you need to add them to the project using the Project, Add Existing Item menu command.
Dependencies:
If they are .lib files then add a line like this to your source files:
#pragma comment (lib,"libname.lib")
I'm using NuGet GUI and trying to include XML File along with my DLL to distribute help along with the DLL.
When I install package in any of the project, it adds the DLL reference successfully, but XML file is not generated inside bin folder of the project in which package is added.
XML file is available within packages\\lib\.XML
Any help would be very much appreciated.
Thanks in advance
On your side of things:
Check this post:
How do you include Xml Docs for a class library in a NuGet package?
On the developer's side of things:
The creator of the NuGet package decides some of this.
http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package
Find : Automatically Running PowerShell Scripts During Package Installation and Removal
So I think the developer of the Nuget package would have to write the voo-doo.
Or you'll have to manually include it yourself.
Both the .dll and the .xml file should be copied to your project's output folder when the project is compiled.
NuGet will not copy the .xml file, nor the .dll, in your bin folder when you install the package. If you want to do this then you will have to use PowerShell. I do not believe you need to do this since MSBuild will do this anyway at compile time.
I have a project which I try to compile with Eclipse-CDT. The project depends on a library with header files and source files. How can I configure the project in Eclipse such that it will compile the needed source files from the library with the project?
With a makefile I use:
SRC+=lib_source.c
You can add linked source file.
Choose project properties and in the left panel choose c++ general.
Under it choose path and symbols.
Now in the right panel tabs choose source location and add linked source folder.
Include you need to define in "include" (under c++ build you will find settings)
Another approach is to use the operating system to add your libraries to the project. Eclipse then treats all source files (including library files) as part of the project, and therefore compiles any that need it even if they are in the libraries. This set-up allows keeping the library sources in a separate git repository from the project source code. You can record the git commit of a library to provide library version control so that improving the library in one project does not break all the others. The setup relies on the operating system's capability to link directories in a way that is entirely transparent to eclipse--in windows using the mklink command.
In windows the steps are
put your library files in a clean workspace not mixed with .git (you can have .git in the parent directory as egit sets it up)
use cmd window in administrator mode to add a link from your project directory to your library directory.
from eclipse press F5 t make sure your project matches what is on disk, then set up git to ignore your library directory.
set up your library file properties for read only access unless you are still tweaking that library.
set up your project include path to include the project sub-directory in your project.
I can't remember why I abandoned eclipse linked directories; i think it was that the includes kept breaking. The mklink approach has worked flawlessly so far.
I have a pdf tutorial of how to set this up--but I'm new to the forum and don't see how to attach a file.