天道酬勤,学无止境

build

How to include an HTML vignette in a binary R package

I wrote an R package for internal purposes and also added some vignettes. When I use devtools::install(build_vignettes = TRUE), all vignettes are installed properly on my machine. But in order to distribute the package to colleages, I would like to generate a windows binary. But when I use Build binary package from the RStudio Build pane, the vignettes will not show up when the package is installed from the generated binary. I figured that I could move the vignettes from doc to inst/doc before building the binary package, but this needs to be done manually whenever a vignette changes. From R

2021-06-15 12:27:08    分类:问答    r   build   package

Determine list of source files (*.[ch]) for a complex build with scons

Suppose you have a complex source tree for a C project, lots of directories with lots of files. The scons build supports multiple targets (i386, sparc, powerpc) and multiple variants (debug, release). There's an sconstruct at the root (referencing various sconscripts) that does the right thing for all of these, when called with arguments specifying target and variant, e.g. scons target=i386 variant=release. Is there an easy way to determine which source files (*.c and *.h) each of these builds will use (they are all slightly different)? My theory is that scons needs to compute this file set

2021-06-15 11:51:09    分类:问答    build   build-process   scons

Building z3 on mac os x

I'm trying to build Z3 on mac os x. Following README file, I just executed autoconf ./configure make to get an error "omp.h" file not found. I copied the omp.h file from /usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include to lib directory to solve this issue. Then, I got lib/buffer.h:243:13: error: use of undeclared identifier 'push_back' error in building the code. What could be the solution? I have gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) on Mac OS X 10.7.5.

2021-06-15 08:23:16    分类:问答    build   z3

How to build Boost::program_options

I wanted to use boost::program_options. After I installed boost, I think that I have to build separatly program_options (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html). But I don't know how to do it. I am trying to compile the C:\Program Files\boost\boost_1_42\libs\program_options\example\first.cpp (http://www.boost.org/doc/libs/1_42_0/doc/html/program_options/tutorial.html) but probably due to I didn't build the library I have this error: LINK : fatal error LNK1104: cannot open file 'libboost_program_options-vc90-mt-gd-1_42.lib' EDIT: I used the installers supplied by

2021-06-15 07:54:49    分类:问答    c++   boost   build   libraries

Relation between the NDK version and the Android version

Is there any relation (constraint/compatibility restriction) between the version of the NDK used to compile the native code and the Android version running on the device where the APK is installed? For example, I compile the native code with Android NDK r7, I get the libraries and generate APK1; then I compile with NDK r10d, obtain the libraries and generate APK2. Is it any risk that I might get different behavior between APK1 and APK2 running on the same device?

2021-06-15 04:36:08    分类:问答    android   build   android-ndk   cross-compiling   native-code

Ant build classpath jar generates “error in opening zip file”

I have a project built in eclipse with a dependencies on 3rd party jars. I'm trying to generate a suitable build file for ant - using eclipses built-in export->ant buildfile feature as a starting block. When I run the build target I get the following error: [javac] error: error reading /base/repo/FabTrace/lib/apache/geronimo/specs/geronimo-j2ee-management_1.0_spec/1.0/geronimo-j2ee-management_1.0_spec-1.0.jar; error in opening zip file And the whole build file (auto-generated by eclipse) looks like this: (NB: the error above always references the first jar listed in the classpath) <project

2021-06-15 02:49:23    分类:问答    eclipse   ant   build   zip

Eclipse, Android: Unexpected Unable to execute dex: Multiple dex files define

The problem: I can't built my project. When I try the following sign is shown in the Console: [2014-09-28 23:49:30 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes; [2014-09-28 23:49:30 - Shop] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes; I lost hours of searching for a solution for this problem, but no result.. I tried to clean the project, to delete the bin folder etc. but nothing worked.. Please, help, I don't know what to do..

2021-06-15 02:45:04    分类:问答    android   eclipse   build   dalvik   dex

Can't configure travis to work on android project

I have found several problems with Travis CI and I have been solving them but the last one I can't. I'm getting the common error com.android.ddmlib.InstallException: Failed to establish session This is my travis file: language: android before_install: - chmod +x gradlew android: components: # Uncomment the lines below if you want to # use the latest revision of Android SDK Tools # - platform-tools # - tools # The BuildTools version used by your project - tools - build-tools-23.0.3 # Additional components - extra-google-m2repository - extra-android-m2repository # The SDK version used to compile

2021-06-15 02:07:36    分类:问答    android   build   travis-ci

Pass ant target to multiple build.xml files in subdirectories

I have a project with multiple modules, each in its own directory. Each module has its own ant build file (build.xml) In the root directory I've set up a general build file that calls the build file of each module in the right order. <?xml version="1.0"?> <project name="bridgedb" default="all" basedir="."> <target name="all"> <ant dir="corelib"/> <ant dir="tools"/> <ant dir="makeGdb"/> <ant dir="cytoscape-plugin"/> </target> </project> Now each module also has a "clean" target, so I add these lines: <target name="clean"> <ant dir="corelib" target="clean"/> <ant dir="tools" target="clean"/>

2021-06-14 22:23:39    分类:问答    ant   build

Physical layout on disk of large cross-platform C++ project with many third party dependencies

I am in the process of reorganizing the physical (on disk) layout of a large cross-platform C++ project with many third party dependencies, built using CMake. Since we need to support Windows, a platform on which there is no well-established package manager, we decided a long time ago to include the third party libraries we rely on in the source tree. However, on the other platforms we support such as Linux and Mac OS X, many of these third party libraries are available as packages or are already present in the system and are easily found by CMake. The current project layout is as follow: root

2021-06-14 22:06:44    分类:问答    c++   build   cmake   cross-platform   organization