精华内容
下载资源
问答
  • linuxbuild

    千次阅读 2008-12-31 07:45:00
    1,注意环境变量linux上软件一般由一系列的Makefile组成。但还有一个重要部分就是环境变量,一般build出错都是环境变量没有设置引起的。例如。abc 找不到。。。要注意环境变量的设置。环境变量有系统自带的环境变量,...

    1,注意环境变量

    linux上软件一般由一系列的Makefile组成。但还有一个重要部分就是环境变量,一般build出错都是环境变量没有设置引起的。

    例如。abc 找不到。。。

    要注意环境变量的设置。

    环境变量有系统自带的环境变量,还有用户自己设置的环境变量

    展开全文
  • Linuxbuild 开源人脸识别引擎SeetaFace

    万次阅读 热门讨论 2016-10-06 22:35:02
    Linuxbuild SeetaFace

    参考:> Opencv官方的教程

    一.安装OpenCV 依赖

    1. Require Packages

    [compiler] sudo apt-get install build-essential
    [required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
    [optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
    

    2. Get OpenCV Source Code
    http://opencv.org/downloads.html

    3. Building OpenCV from Source code Using Cmake & Command Line

    cd ~/opencv #移动到源文件文件夹中
    mkdir release
    cd release
    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
    
    
    #在上面步骤结束之后进行make
    make 
    sudo make install #该命令行必须
    

    4. Test OpenCV

    cd opencv_samples
    ./build_all_sh
    .facedetect  Pathofimage
    

    二.安装SeetaFace Detection

    • build on linux
    mkdir build #在FaceDetection目录中  
    cd build  
    cmake ..  
    make -j${npoc}

    可能出现/usr/bin/ld: cannot find -lopencv_dep_cudart
    解决方法,在执行cmake的时候加入下面的参数CUDA_USE_STATIC_CUDA_RUNTIME=OFF,例如cmake -D CUDA_USE_STATIC_CUDA_RUNTIME=OFF ..

    • run demo
    ./build/facedet_test imagefilePath ./model/seeta_fd_frontal_V1.0.bin

    error: ‘isnan’ was not declared in this scope
    解决方法,修改文件中的isnan为“std::isnan”

    三.安装SeetaFace Alignment

    • Build in Linux
     mkdir build #在FaceAlignment目录中

    然后将FaceDetection中的/include/face_detection.h和/build/libseeta_facedet_lib.so 拷贝到/FaceAlignment/build文件夹下,为了生成test example

    cd build  
    cmake .. 
    make

    如果一切正常,可以用测试程序来测试一下,先要拷贝/FaceDetection/model文件夹下的seeta_fd_frontal_v1.0.bin文件到FaceAlignment的build中

    ./fa_test
    

    用到测试程序的时候可能出现以下问题
    iofread.c没有这个目录或文件
    该问题在于生成fa_test中的face_alignment_test.cpp文件中的路径有些问题比如/data和/model文件夹,还有需要用到的图片路径

    四.安装SeetaFace Indentification

    • build on linux
        mkdir build
        cd build
        cmake .. && make

    注意以下问题

    1. 未定义引用对于之前生成的FaceDetection和FaceAlignment库中定义的函数。
      对于前面FaceDetection和FaceAlignment build生成的两个库的libseeta_facedet_lib,libseeta_fa_lib添加到FaceIdentification/build文件夹中。
      然后修改src/test/CMakeLists.txt文件,在Cmakelists文件中添加查找的链接库link_directories(${PROJECT_BINARY_DIR})(也就是在当前build文件夹下查找,该命令最好添加循环函数外边)
      在循环中补全target_link_libraries(XXXXX seeta_facedet_lib seeta_fa_lib)
    #`src/test/CMakeLists.txt`修改之后如下
    aux_source_directory (. SRC_LIST)
    
    message(${SRC_LIST})
    link_directories(${PROJECT_BINARY_DIR}) #添加lib
    # add external libraries
    find_package(OpenCV REQUIRED)
    
    enable_testing ()
    foreach (f ${SRC_LIST})
      string(REGEX REPLACE "[.]cpp" ".bin" BIN ${f})
      add_executable(${BIN} ${f})
      target_link_libraries(${BIN} viplnet ${OpenCV_LIBS}  seeta_facedet_lib seeta_fa_lib) #添加lib
    endforeach ()

    2.model/seeta_fr_v1.0.bin not found :解决解压缩model中的两个文件
    3.face_alignment.h, face_detection.h: No such file or directory,出现这个的原因是sample在编译是需要用到这些头文件。解决方法,将SeetaFaceEngine/FaceDetection/include/face_detection.hSeetaFaceEngine/FaceAlignment/include/face_alignment.h拷贝到SeetaFaceEngine/FaceIdentification/include/文件夹中

    4.分别修改test_face_recognizer.cpp和test_face_verification.cpp中data和model的相对路径,还要修改test_face_verification.cpp文件中查找之前编译过得模块的路径

    • Run demo
        ./build/src/test/test_face_recognizer.bin
    
    
        ./build/src/test/test_face_verification.bin #比较两个文件相似度
    展开全文
  • Build Linux Kernel

    千次阅读 2011-06-30 22:33:00
    How to: Compile Linux kernel 2.6by NIXCRAFT on SEPTEMBER 29, 2005 · 112 COMMENTSCompiling custom kernel has its own advantages and disadvantages. However, new Linux user / admin find it

    How to: Compile Linux kernel 2.6

    by NIXCRAFT on SEPTEMBER 29, 2005 · 112 COMMENTS

    Compiling custom kernel has its own advantages and disadvantages. However, new Linux user / admin find it difficult to compile Linux kernel. Compiling kernel needs to understand few things and then just type couple of commands. This step by step howto covers compiling Linux kernel version 2.6.xx under Debian GNU Linux. However, instructions remains the same for any other distribution except for apt-get command.

    Step # 1 Get Latest Linux kernel code

    Visit http://kernel.org/ and download the latest source code. File name would be linux-x.y.z.tar.bz2, where x.y.z is actual version number. For example file inux-2.6.25.tar.bz2 represents 2.6.25 kernel version. Use wget command to download kernel source code:
    $ cd /tmp
    $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-x.y.z.tar.bz2

    Note: Replace x.y.z with actual version number.

    Step # 2 Extract tar (.tar.bz3) file

    Type the following command:
    # tar -xjvf linux-2.6.25.tar.bz2 -C /usr/src
    # cd /usr/src

    Step # 3 Configure kernel

    Before you configure kernel make sure you have development tools (gcc compilers and related tools) are installed on your system. If gcc compiler and tools are not installed then use apt-get command under Debian Linux to install development tools.
    # apt-get install gcc

    Now you can start kernel configuration by typing any one of the command:

    • $ make menuconfig - Text based color menus, radiolists & dialogs. This option also useful on remote server if you wanna compile kernel remotely.
    • $ make xconfig - X windows (Qt) based configuration tool, works best under KDE desktop
    • $ make gconfig - X windows (Gtk) based configuration tool, works best under Gnome Dekstop.

    For example make menuconfig command launches following screen:
    $ make menuconfig

    You have to select different options as per your need. Each configuration option has HELP button associated with it so select help button to get help.

    Step # 4 Compile kernel

    Start compiling to create a compressed kernel image, enter:
    $ make
    Start compiling to kernel modules:
    $ make modules

    Install kernel modules (become a root user, use su command):
    $ su -
    # make modules_install

    Step # 5 Install kernel

    So far we have compiled kernel and installed kernel modules. It is time to install kernel itself.
    # make install

    It will install three files into /boot directory as well as modification to your kernel grub configuration file:

    • System.map-2.6.25
    • config-2.6.25
    • vmlinuz-2.6.25

    Step # 6: Create an initrd image

    Type the following command at a shell prompt:
    # cd /boot
    # mkinitrd -o initrd.img-2.6.25 2.6.25

    initrd images contains device driver which needed to load rest of the operating system later on. Not all computer requires initrd, but it is safe to create one.

    Step # 7 Modify Grub configuration file - /boot/grub/menu.lst

    Open file using vi:
    # vi /boot/grub/menu.lst

    title           Debian GNU/Linux, kernel 2.6.25 Default
    root            (hd0,0)
    kernel          /boot/vmlinuz root=/dev/hdb1 ro
    initrd          /boot/initrd.img-2.6.25
    savedefault
    boot

    Remember to setup correct root=/dev/hdXX device. Save and close the file. If you think editing and writing all lines by hand is too much for you, try out update-grub command to update the lines for each kernel in /boot/grub/menu.lst file. Just type the command:
    # update-grub
    Neat. Huh?

    Step # 8 : Reboot computer and boot into your new kernel

    Just issue reboot command:
    # reboot

    展开全文
  • Build linux kernel Module

    千次阅读 2010-12-29 17:01:00
    原文连接:http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html 一 在没有linux kernel源码的条件下build linux kernel module How do I build Linux kernel ...

    原文连接:http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html

    一 在没有linux kernel源码的条件下build linux kernel module

    How do I build Linux kernel module against installed or running Linux kernel? Do I need to install new kernel source tree from kernel.org?

    坦白的说,你并需要一个新的linux kernel source tree(dowload from kernel.org).也就是说,build kernel driver或module并不要求你下载一个展开的linux kernel源码树结构。

    二 linux kernel header

    如果你要构建新的linux kernel driver或module, linux kernel header是必须的。

    假设当前你的系统是debian 5 lenny。

    更新你的aptitude的列表:

    aptitude update

    查询linux kernel header deb package.

    aptitude search linux-headers-$(uname -r)

    安装linux-header-* package

    apt-get install linux-headers-$(uname -r)

    查询当前的kernel build directory

    ls –d /lib/modules/$(uanem -r)/build

    创建你开发的新的module的目录:

    mkdir ~/test

    cd ~/test

    vi Makefile

    输入新的内容

    obj-m += hello.o   
    all:
    	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules   
    clean:
    	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
    hello.c内容

    #include <linux/module.h>
    #include <linux/kernel.h>
    #include <linux/init.h>

    static int __init
    hello_start(void)
    {
      printk(KERN_INFO "loading hello module.../n");
      printk(KERN_INFO "hello world/n");
      return 0;
    }

    static void __exit
    hello_exit(void)
    {
      printk(KERN_INFO "Goodbye Yubo./n");
    }

    module_init(hello_start);
    module_exit(hello_exit);

     
    然后,在~/test 目录下,make
    就可以编好hello.ko module
    接下来可以使用lsmod, insmod, rmmod, modinfo 来对hello module进行操作。
    lsmod | grep hello
    insmod hello.ko
    rmmod hello
    modinfo hello 查看module hello 的信息
     
    在系统启动的时候加载module, 修改/etc/modules, 这个文件的每一行配置一个module的名字,
    接下来再mkdir –p /lib/modules/$(uname -r)/kernel/drivers/hello
    然后拷贝hello.ko 到/lib/modules/$(uname -r)/kernel/drivers/hello目录下
    编辑/etc/modules
    添加一行hello

    展开全文
  • 如:route/index.js 实际路径:/page/WanHG/index.vue 在index.js中写法 const ImageList = () =&gt; import('/page/Admin/imgaeList.vue') const WanHgIndex = () =&...在Windows内进行build不会报错...
  • Linuxbuild和使用rabbitmq-c

    万次阅读 2013-03-06 23:37:42
    1) 按照这里介绍的方法,先安装CMake ...4) mkdir build && cd build # 这一步是在rabbitmq-c的根目录下创建一个build子目录 5) cmake .. # 这一步是让cmake根据../CMakeList.txt,即rabbitmq-c的根目录下的CMake
  • build-tools_r27.0.3-linux.zip 解压后拷贝到build-tools文件夹下
  • android-build-tools 19.1.0 linux

    热门讨论 2015-02-14 20:13:30
    build-tools必须通过sdk-manager下载,而很多网络无法访问google,并且android-studio要求build-tools至少为19.1.0,那么这个linux版的工具将是您的不二选择,我从公司专线在google下载的哟
  • build-tools_r29-rc1-linux

    2019-03-29 16:55:57
    build-tools_r29-rc1-linux
  • Linux上使用ant编译打包apk的时候,...1、/usr/local/android-sdk-linux/tools/ant/build.xml:698: Execute failed: java.io.IOException: Cannot run program "/usr/local/android-sdk-linux/build-tools/22.0.0/a
  • 官方的编译过程参考为:NCNN在linux的配置编译官方参考 下载NCNN工程: $ git clone https://github.com/Tencent/ncnn 在安装编译前需要安装g++ cmake protobuf等工具; 然后安装编译工程。 $cd ncnn $mkdir ...
  • 最近准备学习一下cocos2d-x...Linux下cocos2d-x安装配置过程参见 http://www.cocos2d-x.org/wiki/Linux_Installation_and_Setup 。 我在执行到 Generate Makefile Run cmake to generate makefile:
  • 1. `./configure --build=mipsel-linux --host=mipsel-linux --target=mipsel-linux' will build native mipsel-linux binutils on mipsel-linux.   2. `./configure --build=i386-linux --host=mipsel-linux -
  • build-tools_r29.0.2-.zip windows、mac、linux 三个平台的资源
  • 使用Gradle build时出现Execute...java.io.IOException: Cannot run program "/usr/local/android-sdk-linux/build-tools/22.0.0/aapt": error=2, No such file or directory 检查aapt文件是存在的,原因是Ubuntu下
  • linux内核Makefile中的build构建机制

    万次阅读 2016-08-15 17:09:40
    build定义: scripts/Kbuild.include build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj $(KBUILD_SRC)常规情况下为空,所以的变量定义可简化为: build := -f scripts/Makefile.build ...
  • vscode go windows 版本build linux

    千次阅读 2019-06-18 15:01:11
    1.1选中要build的main.go,然后执行Open in Terminal 1.2在Terminal中执行go env d:\goprojects\src\day1\exp6>go env set GOARCH=amd64set GOBIN=set GOCACHE=C:\Users\Administrator\AppData\Local\go-buildset...
  • Ubuntu 下查看 build ID

    千次阅读 2019-05-30 19:19:05
    Ubuntu 下查看 build ID 编程过程会生成二进制可执行文件 build ID 可以确定程序的版本 查看 build ID 在某个目录下: 打开终端执行命令 file myApp | grep '[0-9a-fA-F][0-9a-fA-F]\{10,100\}[0-9a-fA-F]' ...
  • linux离线安装gcc、make、build-essential、Realtek8125b网卡驱动,解压后查看说明,按照说明一步到位,无需网络。
  • 开始着手 linux shell/ makefile 编程,菜鸟(我自己)对这些底层技术不是很了解,one by one 吧!共勉! 根据原文 http://hi.baidu.com/jrkaho/blog/item/253c6ced4f08c13bacafd5c6.html,稍作修改。 1...
  • linux g++以及build-essential 安装问题

    千次阅读 2018-01-06 13:42:18
    g++安装包未满足依赖的问题 通过使用aptitude这个工具来解决,主要参考这篇博客 http://blog.sina.com.cn/s/blog_404816490102wfku.html
  • 如何在linux下构建强大的build系统

    千次阅读 2010-06-07 13:36:00
    linux下,大多数开发者都有自己的一套编译系统,但是往往会存在编译依赖无法解决、无法很好的控制库的添加以及文件的添加,自定义的编译选项不是很方便得到控制,甚至连个打包都需要自己tar,这里我介绍一下我的一...
  • Linux上如果首先安装了python,然后在安装sqlite3的话,在 python ‘import sqlite3' 就会报错 Traceback (most recent call last): File "", line 1, in File "/linux/depot/Python-2.5/lib/python2.5/sqlite3...
  • Linux 查看OS Type方法

    千次阅读 2010-12-09 16:30:00
    由于需要在不同的linux 平台上跑build,鉴于平台之间的差异,需要判断各个平台的OS版本来区分具体的操作。 检查查了下linux 查看系统版本的几种方法。还不少!嘿嘿   Linux 查看系统版本的几种...
  • linux和Windows平台上,gradle wrapper和gradle依赖的jar 都是不区分平台的,但是对于android sdk 中部分工具是不...但是对于sdk中的build-tools是区分平台的:window sdk中的build-tools:linux sdk中的build-to...
  • linux下ant的build.xml脚本

    千次阅读 2016-12-21 10:33:44
    ${basedir}/src" destdir="${basedir}/target/build" includeantruntime="false" encoding="UTF-8" debug="true"> </javac> <!-- 定义默认任务,将class文件集合成jar包。 --> ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 384,454
精华内容 153,781
关键字:

linux查看build

linux 订阅