ICode9

精准搜索请尝试: 精确搜索
  • IDEA中配置build path2022-07-25 17:06:15

    File -> Project Structure -> Modules -> 选中要添加build path的项目 -> Dependencies -> 点击小加号  -> 选择JARs or directories ->选择要添加的外部jar包。  

  • CMake学习2022-05-24 21:32:18

    LINK_DIRECTORIES       LINK_DIRECTORIES 命令来指定第三方库所在路径,比如,你的动态库在/home/myproject/libs这个路径下,则通过命令:LINK_DIRECTORIES(/home/myproject/libs),把该路径添加到第三方库搜索路径中,这样就可以使用相对路径了,使用TARGET_LINK_LIBRARIES的时候,只需要给

  • 2022.2.10#Cmake使用2022-02-10 09:02:34

    2022-02-10   cmake_minimum_required - 指定CMake的最小版本要求 cmake_minimum_required(VERSION 3.0)   project - 定义工程名称,并可指定工程支持的语言   project(HELLOWORLD)   set - 显式的定义变量   定义SRC变量,其值为main.cpp hello.cppset(SRC sayhello.cp

  • CMake 教程(Step 3): 为库添加使用需求2022-01-02 15:00:29

    注: 文章参考: CMake Tutorial, 但操作方法和步骤与原文不同.文章所有操作均在VSCode中完成.点击Windows 上VS Code + CMake + MSYS2 打造C++开发环境, 获取配置VSCode开发环境的详细步骤.点击CMake 教程, 查看CMake教程主页.点击CMake 教程(Step 2): 添加库, 查看上一节.

  • grep -rn无法匹配文件中的字符串2021-12-01 23:05:09

    描述 使用grep -rn 命令递归搜索文本文件中的字符串,无法找到结果 手动查看后确定包含目标字段 原因 这个问题在grep --help就有答案 Output control: -d, --directories=ACTION how to handle directories; ACTION is 'read', 'recurse', or 'skip

  • oh-my-zsh 每次打开出现 zsh compinit: insecure files, run compaudit for list. Ignore insecure files and con2021-11-24 19:35:26

    具体问题描述如下, 没什么屁用 Last login: Wed Nov 24 16:45:07 on ttys007 [oh-my-zsh] Insecure completion-dependent directories detected: lrwxr-xr-x 1 root staff 39 9 12 21:07 /usr/local/share/zsh/site-functions/_brew -> ../../../Homebrew/completions/zsh/_b

  • YZH-自动化问题fatal: Not a git repository (or any of the parent directories): .git2021-10-23 16:03:23

    YZH-自动化问题-fatal: Not a git repository (or any of the parent directories): .git 问题是不能切换分支 在终端处输入git branch,出现这个问题:fatal: Not a git repository (or any of the parent directories): .git 解决办法:输入git init,按照图片所示,出现下面的结果,然

  • fatal: Not a git repository (or any of the parent directories): .git2021-10-05 12:30:29

    问题描述: 解决方案:

  • include <xxx.h> 和 include "xxxx.h"的区别2021-09-29 09:31:34

    转载:https://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename 这是一个很基础的问题,但是网上的很多资料上并没有解释清楚,下面是从StackOverflow和GCC文档里截取出来的回答,很清楚的回答了这个问题。 下面是StackOverflow

  • ros工程关联动态链接库2021-07-29 19:02:09

    1.在工程包文件里面创建lib文件夹并将动态链接库放在里面,建议命名为lib(name).so形式 2.在CMakeLists.txt文件里include_directories()添加“./lib”,如下图所示    3.在CMakeLists.txt文件link_directories()添加 "./lib"如:link_directories("./lib"),注意:此项必须放在ADD_EXEC

  • catch小说内容-从gui到爬虫(3)2021-07-15 11:33:23

    day4-完善窗体 1.文件选择窗口-Jfilechooser 1) 步骤 新建文件选择窗口,并输入默认路径:FileChooser chooser= new JFileChooser(text1.getText()); 设置显示文件or文件夹:chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); FILES_AND_DIRECTORIES 指示显示文件

  • 常用模板2021-06-05 18:32:13

    opencv打开摄像头 #include "opencv2/opencv.hpp" #include <string> #include <iostream> using namespace cv; using namespace std; int main() { VideoCapture inputVideo(0); if (!inputVideo.isOpened()) { cout << "

  • cmakelists编写样例2021-01-25 20:03:10

    src cmake_minimum_required(VERSION 3.8) ###### build .so and .a ###### MESSAGE(STATUS "This is BINARY dir " ${PROJECT_BINARY_DIR}) MESSAGE(STATUS "This is SOURCE dir " ${PROJECT_SOURCE_DIR}) MESSAGE(STATUS "This is PREFIX

  • CMake生成的VS工程不能打开库文件2020-12-28 09:32:11

    CMake生成的VS项目不能打开依赖的库文件 项目 项目需要使用第三方库文件SiUSBXp.lib 做法 查了很多方法最后得到的CMakeLists.txt文件主要内容: add_executable(xy ${XY_SRCS} ${XY_ALL_HEADERS}) target_include_directories(xy PUBLIC "${XY_HEADERS_DIR}/3rdparty/USBXpres

  • CLoin中配置MPI搭建并行环境2020-12-22 17:04:02

    首先我们需要下载三类文件 下载MPI安装包 , 注意两个都要下载安装 , 安装时注意记住安装路径https://www.microsoft.com/en-us/download/details.aspx?id=57467 下载CLoin客户端https://www.jetbrains.com/clion/ 下载MinGW安装包 , 配置到Cloin中 https://nuwen.net/min

  • cmake 区分操作系统2020-10-26 15:34:47

    区分系统 if (CMAKE_HOST_WIN32) set(WINDOWS 1) elseif (CMAKE_HOST_APPLE) set(MACOS 1) elseif (CMAKE_HOST_UNIX) set(LINUX 1) endif ()   实际工作 if (MACOS) message("配置MACOS VCPKG 路径") include_directories(/Users/maohuawei/dev/vcpkg/i

  • cmake教程 find_package2020-10-20 15:33:36

    这里引用一篇博文cmake教程在看这篇博文前我整理了一些基础知识,如果觉得可以请收藏 C_INCLUDE_PATH(for C header files)和CPLUS_INCLUDE_PATH(for C++ header files)的环境变量是指明头文件的搜索路径,此两个环境变量指明的头文件会在-I指定路径之后,系统默认路径之前进行搜索。

  • VS2013配置Winpcap2020-03-03 23:02:03

    1 下载并安装WinPcap运行库 http://www.winpcap.org/install/default.htm 2 下载WinPcap开发包 http://www.winpcap.org/devel.htm,解压到纯英文路径,或者直接和项目放到一个目录。 3 新建Visual C++的Win32控制台应用程序,设置为空项目 4 打开项目属性,C/C++ --> Preprocessor

  • cmake(.os .a)2020-02-04 12:04:00

    1 cmake_minimum_required(VERSION 3.10.1) 2 project(s_v2C) 3 4 5 #For the shared library: 6 set ( PROJECT_LINK_LIBS lievent.so ) 7 link_directories( ./another ) 8 9 #For the static library: 10 #set ( PROJECT_LINK_LIBS libevent.a ) 11 #link_dire

  • cmakelist2019-12-10 13:55:51

    example 1: cmake_minimum_required(VERSION 3.0 FATAL_ERROR) project(helloworld) SET(CMAKE_BUILD_TYPE Debug) #cuda include_directories(/usr/local/cuda-8.0/include/) link_directories(/usr/local/cuda/lib64) find_package(Boost REQUIRED COMPONENTS system thr

  • 【Linux常见命令】mkdir命令2019-11-07 19:04:18

     mkdir - make directories 例子: mkdir /data 在根目录/下创建data文件夹(目录)   语法:   mkdir [-p] dirName   参数说明: -p 确保目录名称存在,不存在的就建一个。   示例:mkdir -p 递归创建目录 [root@oldboy oldboy]# mkdir /label /label/1 /label/1/2[root@oldboy o

  • CMake 文件 link_directories() 使用相对路径失败的问题2019-09-26 23:53:43

    今天再编译工程时,遇到了这个问题: Policy CMP0015 is not set: link_directories() treats paths relative to the source dir. 看到了这一篇 博客 解决了这个问题,核心如下: In CMake 2.8.0 and lower the link_directories() command passed relative paths unchanged to the li

  • android studio 项目上传到码云2019-08-26 17:08:06

    一。参考: https://www.cnblogs.com/youaremylife/p/9395488.html https://blog.csdn.net/csnd_ayo/article/details/72590511   二。注意: 1.创建项目,需要 SVN 2.SVN Commit :空的项目不给上传,所以上传的时候会做一些排除 Error: Empty directories is not supported: /app/li

  • GTK项目的Makefile和CMake配置2019-07-04 15:30:35

    Makefile配置 CC := gcc CFLAGS = -g -Wall `pkg-config --cflags gtk+-2.0` LDFLAGS = `pkg-config --libs gtk+-2.0` all: main main: main.o $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) .PHONY: clean clean: $(RM) main *.o CMake配置 CMakeLists.txt # Copyright (c)

  • C头文件中尖括号与双引号的区别2019-05-28 16:45:04

    2.1 Include Syntax Both user and system header files are included using the preprocessing directive ‘#include’. It has two variants: #include <file> This variant is used for system header files. It searches for a file named file in a standard list

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有