gnu

Equivalent of import libraries in Linux

邮差的信 提交于 2019-12-05 05:39:00
问题 In Windows C++ when you want to link against a DLL you must supply an import library. But in GNU build system when you want to link against .so files which are the equivalent of dll you don't. Why is this? Is there an equivalent of Windows import libraries. Note: I don't speak about the case where you use GNU C++ in Windows where you have to use import libraries as well. The splitting line is between Windows C++ and Linux C++. 回答1: The linking model is different in Windows and in Linux . Read

MIT 6.828 - 0. 配置环境

[亡魂溺海] 提交于 2019-12-05 05:36:28
使用 Linux 5.2.21-1-MANJARO #1 SMP PREEMPT Sat Oct 12 11:09:56 UTC 2019 x86_64 GNU/Linux 。 2019 Fall 要求在 RISC-V 上做,妙极了。 1. 安装必要的包 按官网要求 sudo pacman -S riscv64-linux-gnu-binutils riscv64-linux-gnu-gcc riscv64-linux-gnu-gdb qemu-arch-extra 。 出现故障,经检查需要先更新 Pacman 元数据 sudo pacman -Syy ,之后成功。 测试: $ riscv64-linux-gnu-gcc --version riscv64-linux-gnu-gcc (GCC) 9.2.0 $ qemu-system-riscv64 --version QEMU emulator version 4.1.0 下载代码: $ git clone git://github.com/mit-pdos/xv6-riscv-fall19.git 测试: $ make qemu # ... lots of output ... init: starting sh $ 来源: https://www.cnblogs.com/nlp-in-shell/p/11909445

GNU emacs equivalent of func-menu

十年热恋 提交于 2019-12-05 05:05:11
Is there and equivalent of func-menu for GNU emacs? I used func-menu when I had access to xemacs and I prefer its behaviour to that of the speedbar or sr-speedbar. Specifically: I like that only the functions for the current file are displayed. The function list can be popped up from the current frame and isn't a separate window which I may have covered up. The current function name shows up in mode line. Is there a package for GNU emacs which is a closer approximation to func-menu? imenu would be the analogous feature in GNU Emacs. See C-h f imenu-add-menubar-index RET . You can call that in

How to install gnu gettext (>0.15) on windows? So I can produce .po/.mo files in Django

旧城冷巷雨未停 提交于 2019-12-05 05:04:06
When runing django make messages : ./manage.py makemessages -l pt I get: CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. I tried to install but the last version I find with an Instalation Setup is 0.14. Where may I find a recent version and how do I install it? Django removed this explanation from the recent docs and it took me some time to found it so i pasted it here before this old documentation goes offline: Source: Django Docs 1.7 Download the following zip files from the GNOME servers gettext-runtime-X.zip gettext-tools-X.zip X is the

Linux系统介绍与环境搭建准备

守給你的承諾、 提交于 2019-12-05 02:55:57
1 什么是操作系统? 操作系统,Operating System,简称OS,是计算机系统中必不可少的基础软件,它是应用程序运行以及用户操作必备的基础环境支撑,是计算机系统的核心。 操作系统的作用是 管理和控制计算机系统中的硬件和软件资源 。 比如: 负责直接管理计算机系统的各种硬件资源,如对CPU、内存、磁盘等的管理,同时对系统资源供需优先次序进行管理。 控制设备的输入、输出,以及操作网络和管理文件系统等事务。 对计算机系统中各类软件资源的管理 各类应用软件的安装 运行环境设置等 目前PC(Intel x86系列)计算机上比较常见的操作系统有Windows、Linux、DOS、Unix等。 2. 什么是Linux? Linux是一套 开放源代码程序的、并可以自由传播的类Unix操作系统软件。 (Unix系统是Linux系统的前身,具备很多优秀特性)。 其设计之初,就是基于Intel x86系列CPU架构计算机的。 它是一个基于POSIX的 多用户、多任务并且支持多线程和多CPU的操作系统。 开发Linux系统的目的就是建立不受任何商业化软件版权制约的、全世界都能自由使用的类Unix操作系统兼容产品。 在过去的20年里,Linux系统主要被应用于 服务器端、嵌入式开发和个人PC桌面 3大领域,其中服务器领域是重中之重。 特点: 是开放源代码的程序软件,可自由修改 Unix系统兼容

how does awk FIELDWIDTHS WORK

自古美人都是妖i 提交于 2019-12-05 02:07:45
问题 I started learning awk programming few days back (Effective awk scripting). At page 102 the author was explaining fieldwidths, but I don't understand how it works. Please could someone kindly explain to me, how fieldwidths works? 回答1: FIELDWIDTHS A whitespace separated list of field widths. When set, gawk parses the input into fields of fixed width, instead of using the value of the FS variable as the field separator. I think an example is better to explain how does it work: $ echo

安装 protobuf 很水 慎入 主要做个备份

旧城冷巷雨未停 提交于 2019-12-05 00:41:58
[root@localhost yuming]# wget https://protobuf.googlecode.com/files/protobuf-2.4.1.zip [root@localhost yuming]# unzip protobuf-2.4.1.zip [root@localhost yuming]# cd protobuf-2.4.1/ [root@localhost protobuf-2.4.1]# ./configure [root@localhost protobuf-2.4.1]# ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir

嵌入式Linux全攻略 ACE程序移植过程详细讲解

徘徊边缘 提交于 2019-12-05 00:17:11
1、在安装有Linux操作系统的PC上安装交叉编译器,笔者使用的是Moxa tool chain for DA66x,(其它的嵌入式Linux系统都是一样的做法),可以从 Moxa网站上下载 :   2、将ACE程序包下载到Linux PC上,并解压   3、设置环境变量:   A、交叉编译工具的路径:export PATH=“/usr/local/xscale_be/bin:$PATH”   B、ACE_ROOT:export ACE_ROOT=“/home/jun/ACE_wrappers”(根据实际路径设置)   4、将$ACE_ROOT/ace/config-linux.h复制成$ACE_ROOT/ace/config.h   cp $ACE_ROOT/ace/config-linux.h $ACE_ROOT/ace/config.h   5、将$ACE_ROOT/include/makeinclude/platform_linux.GNU复制成   $ACE_ROOT/include/makeinclude/platform_macros.GNU并修改   $ACE_ROOT/include/makeinclude/platform_macros.GNU文件:   添加:   CC = xscale_be-gcc   CXX = xscale_be-g++   删除:  

ImageMagick convert and GNU parallel together

孤者浪人 提交于 2019-12-04 23:54:24
问题 I would like to speed up the following command: convert -limit memory 64 -limit map 128 -antialias -delay 1x2 final/*.png movie.mp4 I have seen other blog posts where parallel and convert were used together so I am wondering how to make it work with the command above. 回答1: If downsizing is an option, yes, you can readily do that with GNU Parallel parallel -j 8 convert {} -resize ... {} ::: *.png where {} stands for the filename, and the files to be processed are listed after the ::: . -j

STM32 WWDG interrupt firing when not configured

有些话、适合烂在心里 提交于 2019-12-04 22:58:48
I have an application that I am porting from the Keil IDE to build with the GNU toolchain due to license issues. I have successfully be able to set up, build, flash and run the application on the device. The application on the GNU side is for some reason is getting stuck in the weak linked IRQ handler for the WWDG which is an infinite loop. The application does not enable the WWDG, and it is disabled at reset by default. I have also verified that the configuration registers are at their default startup values. The only difference, other than compilers, are the linker and startup files. However