小编Roh*_*han的帖子

找不到包"libxml-2.0"

我试图在我的mac os x中添加libvisio来自https://wiki.documentfoundation.org/DLP/Libraries/libvisio

我已经添加了下面列出的所有依赖:

boost
gperf
icu
librevenge
libxml2
perl
doxygen
Run Code Online (Sandbox Code Playgroud)

添加依赖项后,我试图运行波纹管命令.

$ ./autogen.sh ''# only needed for building from git''
$ ./configure
$ make
$ make install
Run Code Online (Sandbox Code Playgroud)

但我有第二个命令的问题 $ ./configure

得到波纹管错误.

configure: error: Package requirements (
    libxml-2.0
) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the …
Run Code Online (Sandbox Code Playgroud)

unix linux macos libxml2 vsdoc

8
推荐指数
5
解决办法
2万
查看次数

如何在mac OSX中查找内存使用情况?

如何在osx 10.9及更高版本中查找活动监视器显示的内存使用情况.我使用以下代码来获取内存使用情况.

但它在活动监视器中显示的内容与我在此代码中找到的内容之间存在一些差异.

mach_port_t host_port;
mach_msg_type_number_t host_size;
vm_size_t pagesize;
host_port = mach_host_self();
host_size = sizeof(vm_statistics64_data_t) / sizeof(integer_t);
host_page_size(host_port, &pagesize);
vm_statistics_data_t vm_stat;
if (host_statistics(host_port, HOST_VM_INFO, (host_info_t)&vm_stat, &host_size) != KERN_SUCCESS)
{
    NSLog(@"Failed to fetch vm statistics");
}
float free_count = vm_stat.free_count * pagesize;

float active_count=vm_stat.active_count *pagesize;

float inactive_count=vm_stat.inactive_count * pagesize;

float wire_used=vm_stat.wire_count *pagesize;

float zero_fill_count=vm_stat.zero_fill_count * pagesize;

float reactivations=vm_stat.reactivations *pagesize;

float pageins=vm_stat.pageins *pagesize;

float pageouts=vm_stat.pageouts *pagesize;

float faults=vm_stat.faults *pagesize;

float cow_faults=vm_stat.cow_faults * pagesize;

float lookups=vm_stat.lookups *pagesize;

float hits=vm_stat.hits * pagesize;

float purgeable_count=vm_stat.purgeable_count …
Run Code Online (Sandbox Code Playgroud)

c memory macos cocoa activity-monitor

5
推荐指数
1
解决办法
1142
查看次数

标签 统计

macos ×2

activity-monitor ×1

c ×1

cocoa ×1

libxml2 ×1

linux ×1

memory ×1

unix ×1

vsdoc ×1