小编spa*_*117的帖子

如何为本机C++创建nuget包

我想发布关于sdl_mixer的包,它是一个本地包.我按照教程说的那样做.我把.dll .h.lib文件到包的内容 ,但最终方案没有奏效.那么什么是创造C++的NuGet包正确的方式?

另一个问题是我在nuget中发现,大多数原生c ++包都发布在两个包中,例如:

sdl2_ttf.v140

sdl2_ttf.v140.redist

那么这两个文件有什么区别?我怎么才能发布这样的包呢?

---------------------------------------更新---------- --------------------------

当我喜欢教程说如何发布本机包.i已写如下 autopkg file

nuget{
    nuspec {
        id = MySdl_mixer;
        version :2.0.0.0;
        title: sdl mixer;
        authors: { Sam Lantinga, Stephane Peter, Ryan Gordon};
        owners: {spartawhy117};
        licenseUrl: "http://libsdl.org/license.php";
        projectUrl: "http://libsdl.org/index.php";
        iconUrl:"";
        requireLicenseAcceptance:false;
        summary:Nothing;
        description: @"SDL_mixer is a sample multi-channel audio mixer library.... 
    ";
       releaseNotes: "Release of C++ ";
       copyright:Copyright 2015;
       tags: {v140 ,sdl_mixer , native, CoApp };
};

    files {
        #defines {
            Include = include\; …
Run Code Online (Sandbox Code Playgroud)

c++ nuget visual-studio-2015

11
推荐指数
1
解决办法
6871
查看次数

如何在linux上编程从/ proc获取每秒磁盘读/写字节数?

目的:我希望获得iostat命令可以得到的信息.

我已经知道,如果打开/proc/diskstats/sys/block/sdX/stat有信息:扇区读取扇区写入.所以,如果我想获得读/写字节/ s,下面的公式是正确的?

每秒读/写字节数 :(
扇区读/写(现在)-sectors读/写(最后))*512字节/时间间隔

每秒读/写操作 :(
读/写IOs(现在)+读/写合并(现在)-read/write IOs(last)-read/write merges(last))/ time interval

因此,如果我有一个计时器,每个第二个控制软件从这两个文件中读取信息,然后使用上面的公式来计算值.我能得到正确的答案吗?

linux profiling disk

4
推荐指数
1
解决办法
4005
查看次数

标签 统计

c++ ×1

disk ×1

linux ×1

nuget ×1

profiling ×1

visual-studio-2015 ×1