configure

configure “--prefix” option for cross compiling

自作多情 提交于 2019-12-03 14:59:10
Which path should I pass to the --prefix option when doing cross compiling: should I specify the path on my build machine or the path on the target platform? Suppose I build the code into /home/me/arm/build/target_fs/usr , after that I copy the files into my target platform where they will be located at /usr . Should I use --prefix=/home/me/arm/build/target_fs/usr or just --prefix=/usr and then make install DESTDIR=/home/me/arm/build/target_fs ? I thought that the --prefix is not the path for build but the path for running environment (i.e. the path on target platform). The answers here makes

How to point autoconf/automake to non-standard packages

匆匆过客 提交于 2019-12-03 13:13:18
问题 I'm trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is is probably not important :-) When I follow the package instructions, I get: $ autoreconf -if aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf

Compiling gdb for remote debugging

倖福魔咒の 提交于 2019-12-03 12:56:57
I'm trying to remote debug an application running on arm9 So far I've been able to cross compile and execute gdbserver on my device. get gdb (7.2) sources and extract them ./configure --target=arm-none-linux-gnueabi --with-expat=/usr/local/lib/ make cd gdb/gdbserver ./configure --host=arm-none-linux-gnueabi make tftp gdbserver to my device run and connect via gdb to the device gdbserver "seems" to start correctly and attach itself to my helloworld application When I try to gdb to the remote server, I get "warning: Can not parse XML target description; XML support was disabled at compile time"

Emacs python-mode

懵懂的女人 提交于 2019-12-03 12:55:26
问题 I'm trying to configure Emacs23.2 to work with python2.7.3, using the package python-mode.el-6.0.7 After adding to my .emacs file these LISP lines, as indicated in the INSTALL instructions,... (add-to-list 'load-path "PATH/TO/PYTHON-MODE/") (setq py-install-directory "PATH/TO/PYTHON-MODE/") (require 'python-mode) ... I open a file foo.py and until here its all OK: python is recognised, the syntax is highlighted and emacs is working well. But I got the suspect I'm missing something or doing

configure: error: leptonica library missing (when building tesseract-ocr-3.01 on MinGW)

余生颓废 提交于 2019-12-03 12:46:27
When running configure it fails with checking for leptonica... yes checking for pixCreate in -llept... no configure: error: leptonica library missing But I have leptonica 1.69 built (downloaded source and ran ./configure && make install ) Edit I think configure: error: leptonica library missing is a bit misleading, please note that it first says checking for leptonica... yes , and then fails on checking for pixCreate in -llept... no . So maybe the problem is not that the library is missing, but something else. I finally managed to make it compile, after reading this and this thread. The proper

GCC toolchain for LLVM

瘦欲@ 提交于 2019-12-03 12:28:16
I am running on an RHEL 6.x box, which of course has GCC 4.4 installed. I wish to have LLVM running on this machine. In order to do so, I must compile it from source. In order to do that , I need a more modern version of GCC. So, following the instructions , I have built GCC 4.8.2: [snip] % $PWD/../gcc-4.8.2/configure --prefix=$HOME/toolchains --enable-languages=c,c++ % make -j$(nproc) % make install I'm logged in as root, so $HOME/toolchains resolves to /root/toolchains . After satisfying prerequisites for LLVM, I'm ready to configure and build LLVM. root@dev06 /root/llvm-build # ~/llvm

Recommended flags for a minimalistic Qt build

丶灬走出姿态 提交于 2019-12-03 12:10:50
问题 I am trying to build Qt because it is required for Visual Studio 2010. The build script (configure.exe) is quite straightforward but by default it takes ages to compile. After waiting for an hour on a fast notebook with an SSD, I've given up (using no flags, just configure.exe). What are the recommended flags for a basic, lightweight Qt application? I mean for someone learning Qt, who doesn't need WebKit and so on. I've collected the most useful links I found: The reference page for Qt

./configure can't find C compiler after OS X Lion installation

喜夏-厌秋 提交于 2019-12-03 11:55:28
问题 While cc and gcc are perfectly in their right path ( /Developer/usr/bin in OS X Lion), running ./configure tries to compile it through a hard coded (I guess) path - /usr/bin . Where do I setup configure's paths? 回答1: The right answer is to install Xcode 4 from the App Store (free) and then run /Applications/Install Xcode.app. Then everything you need will be in /usr/. 回答2: The best thing to do is actually to download and install the new Command Line Developer Tools package from Apple, which

What would be a pratical example of sysroot and prefix options for Qt

半城伤御伤魂 提交于 2019-12-03 11:21:15
I'm looking at all the options that can be run for the configure script provided with Qt. (specifically qt-everywhere-opensource-src-5.2.0). After considerable searching, I've determined this stuff is poorly documented at best so I was hoping I could get some help. When I look at the descriptions for prefix and sysroot configuration options: ~/qt-everywhere-opensource-src-5.2.0$ ./configure -help | grep "sysroot" -extprefix <dir> ... When -sysroot is used, install everything to <dir> , -sysroot <dir> ...... Sets <dir> as the target compiler's and qmake's sysroot and also sets pkg-config paths.

./configure with a specified version of g++

核能气质少年 提交于 2019-12-03 11:07:00
问题 How to tell to a 'configure' file to compile with a specified version of g++ ? Thanks. 回答1: In a bash shell you can do something like this: ./configure CC=gcc-2.95 There will be similar techniques for other shells but I couldn't help you with the specifics. If your project is C++ the variable you need to define is CXX . 来源: https://stackoverflow.com/questions/2621019/configure-with-a-specified-version-of-g