build-process

Referencing different versions of the same assembly

只谈情不闲聊 提交于 2019-11-27 01:28:39
问题 If A references assembly B 1.1 and C, and C references B 1.2, how do you avoid assembly conflicts? I nievely assumed C's references would be encapsulated away and would not cause any problems, but it appears all the dll's are copied to the bin, which is where the problem occurs. I understand the two ways around this are to use the GAC or assembly bindings? The GAC doesn't seem like the best approach to me, as I don't like assuming dlls will be there, I prefer to reference dlls from a lib

OpenOffice command line PDF creation

感情迁移 提交于 2019-11-27 01:27:10
问题 I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a command line command? 回答1: Art of Solving has also a very good API to perform the conversion in Java. It is a little slow but it is simple enough. This is how I use it: File inputFile = new File("C:\\oreyes\\hola.doc"); File outputFile = new File("C

How to detect target architecture using CMake?

房东的猫 提交于 2019-11-27 01:13:20
问题 I've done a lot of research and been unable to find an answer to this... how can I reliably find the target architecture I'm compiling for, using CMake? Basically, the equivalent to QMAKE_TARGET.arch in qmake. Most sources seem to suggest CMAKE_SYSTEM_PROCESSOR, but that's a bad solution because that will always return i386 on OS X for example, no matter whether you're compiling for i386, x86_64, ppc or ppc64. Similarly, CMAKE_SIZEOF_VOID_P gives the pointer size of the system , not the

Disable generating PDB files in MsBuild

一笑奈何 提交于 2019-11-27 01:12:33
问题 I'm looking to squeeze some more speed out of my build and was wondering if I could instruct msbuild to not generate PDB files. I'm passing the Configuration=Release and DebugSymbols=false property with no luck. 回答1: You may have PDB generation in your release configuration. Add this to your release settings: <DebugSymbols>false</DebugSymbols> <DebugType>None</DebugType> You can also, do this in your project configuration inside visual studio. Disable PDB Generation Also, if running MSBuild

How to exclude a folder that is producing warnings/errors in an Eclipse project?

流过昼夜 提交于 2019-11-27 00:33:06
问题 Okay. I'm sick of this problem. This has to have an easy fix, I'm sure of it!! I hope SO can help me to get rid of this once and for all! Question How do we get Eclipse to stop trying to process/compile all files under a particular project directory? The goal is for no errors/warnings to exist in the problems view if they relate to something in this folder or it's subfolders. Background We run Eclipse 3.6 and the m2eclipse plugin v0.10.2.20100623 manages our autobuild. For reasons beyond my

How to run a command at compile time within Makefile generated by CMake?

故事扮演 提交于 2019-11-27 00:22:30
问题 I would like to pass some options to a compiler. The option would have to be calculated at compile time - everytime when 'make' is invoked, not when 'cmake', so execute_process command does not cut it. (does it?) For instance passing a date to a g++ compiler like that: g++ prog.cpp -o prog -DDATETIME="17:09:2009,14:25" But with DATETIME calculated at compile time. Any idea how to do it in CMake? Bounty edit: A least hackish solution will be accepted. Please note that I want to be able to

Running CMake on Windows

若如初见. 提交于 2019-11-26 23:58:55
I am currently trying to get CMake to run on my Windows 7 (64-bit) system. I want to compile TagLib for later use with a Qt application I am working on. I would like to compile it with MinGW (not Visual C++ as in this other question ). I download the installer (cmake-2.8.3-win32-x86.exe) and install it (I also opt to add CMake to my path). I then go to the directory why the CMakeLists.txt file is and run cmake . . It then gives me this giant error. C:\Users\Joel\Downloads\taglib-1.6.3>cmake . CMake Warning at CMakeLists.txt:1 (project): To use the NMake generator, cmake must be run from a

Running multiple TeamCity Agents on the same computer?

余生长醉 提交于 2019-11-26 23:55:43
问题 We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine. Is this possible, without using virtualization ? Are there quality alternatives to TeamCity that support this? 回答1: Yes, it's possible: Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine.

How does C# compilation get around needing header files?

那年仲夏 提交于 2019-11-26 23:54:35
问题 I've spent my professional life as a C# developer. As a student I occasionally used C but did not deeply study it's compilation model. Recently I jumped on the bandwagon and have begun studying Objective-C. My first steps have only made me aware of holes in my pre-existing knowledge. From my research, C/C++/ObjC compilation requires all encountered symbols to be pre-declared. I also understand that building is a two-step process. First you compile each individual source file into individual

Maven: How to include jars, which are not available in reps into a J2EE project?

断了今生、忘了曾经 提交于 2019-11-26 23:22:56
in my J2EE project I've a couple of dependencies, which are not available in any Maven repository, because they're proprietary libraries. These libraries need to be available at runtime, so that have to be copied to target/.../WEB-INF/lib ... Right now, I'm listing them as system dependency in my POM, but with this method the problem is, that aren't being copied to the target build during compilation. Also this method is not very elegant. So which is the best way to integrate them in Maven? Note: I don't want to create my own Maven repository. Rich Seller As you've said you don't want to set