configure

Why has nobody created an open source build system for the brain dead? [closed]

匆匆过客 提交于 2019-12-03 11:05:07
I want to build a shared library. GNU/Linux is the development and target platform. C is the implementation language. I can't decide how I want to setup the build system and keep flitting around three options each of which have lots of reasons to dislike: hand crafted Makefiles - I've worked this way almost exclusively in the past GNU Autotools - I used autotools earlier this year to build a shared C library, but have forgotten how I did it and where all the many hundreds of tutorials were I used for pickings. waf - supposedly simple but not so easy I've got it working this afternoon. I can't

How to set the style of line comment in phpstorm

烂漫一生 提交于 2019-12-03 10:34:27
问题 How to change the default style of line comment in PHPStorm to at indentation level rather than at first column? if ($condition) { // At first column. // At indentation level } 回答1: You can change this in "Options -> Code Style -> PHP -> Wrapping and Braces" and check "Comment at first colum". 回答2: For "Ctrl+/" line commenting it is in "Settings->Code Style->PHP->Other->Code Commeting->Line comment at first column". 回答3: Version 2017.3 and greater Looking at this answer, noticed that it needs

Scala sbt: Multiple dependencies in sbt

不羁岁月 提交于 2019-12-03 09:53:50
I am a new user to Scala, following the way to create a scala sbt project. https://www.youtube.com/watch?v=Ok7gYD1VbNw After adding libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test" to build.sbt , and refreshed the project, I got this msg. [warn] Multiple dependencies with the same organization/name but different versions. To avoid conflict, pick one version: [warn] * org.scala-lang:scala-reflect:(2.11.2, 2.11.7) [warn] * org.scala-lang.modules:scala-xml_2.11:(1.0.2, 1.0.4) And in build.sbt , thw word ' scalatest ' is red that means it's an unsolved dependencies.

Setting up “configure” for openMP in R

大兔子大兔子 提交于 2019-12-03 09:53:47
问题 I have an R package which is easily sped up by using OpenMP. If your compiler supports it then you get the win, if it doesn't then the pragmas are ignored and you get one core. My problem is how to get the package build system to use the right compiler options and libraries. Currently I have: PKG_CPPFLAGS=-fopenmp PKG_LIBS=-fopenmp hardcoded into src/Makevars on my machine, and this builds it with OpenMP support. But it produces a warning about non-standard compiler flags on check, and will

Compiling ICU using arm-linux-androideabi-4.4.3

旧时模样 提交于 2019-12-03 07:50:02
问题 I would like to cross-compile ICU static libs for Android using Cygwin. So far, I have been able to configure and make the Cygwin/MSVC and Cygwin versions. I have installed the android-ndk-r7 and can see a version of gcc in the toolchains directory. Several examples suggest using host:arm-eabi - but this is not present on my machine. I have copied mh-linux to mh-unknown in /icu/source/config and run the following: export HOST_ICU=/cygdrive/d/__/External/SQLite/icu export ICU_CROSS_BUILD=

Where to put struts.xml

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:06:20
With Struts2 we have to have struts.xml in the class path, so it no longer works to have it under WEB-INF. So the way I got my project to deploy was to stick it under WEB-INF/classes and have it include ../struts2.xml 2 Problems: Eclipse cleans out the classes folder when I do a rebuild, so it deletes struts.xml Eclipse doesn't show the classes folder in my project browser, so its a poor place to stick config files in the first place. How are you Struts2 Eclipse developers doing this? You can either just put the struts.xml at the root of your source directory or set up an additional resources

MIME types missing in IIS 7 for ASP.NET - 404.17

半世苍凉 提交于 2019-12-03 05:54:14
When getting a newly configured Windows 7 box, I noticed that ASP.NET was turned off by default. So was classical ASP. I was getting a 404.17 error for a web application. I think it's because I don't have an "aspx" MIME type. Although that's just a guess. When I turned them on under Control Panel > Programs and Features > Turn Windows Features on or off, and restarted my Windows 7 machine, the MIME types never showed up. Can someone check what MIME type they have for *.aspx pages, and tell me the configuration in edit mode? What other MIME types would I be missing for ASP.NET extensions (ie:

Any difference between configure.ac and configure.in, and Makefile.am and Makefile.in?

不羁的心 提交于 2019-12-03 04:14:24
问题 I have seen both in different things I have configured. What I the difference? Is it notable to use only one? Or does it not matter which one to use? 回答1: configure.ac and configure.in are two possible names for the master Autoconf source file, which is processed by autoconf to generate the configure shell script. configure.ac is preferred for new packages, configure.in is an older name which still works. (The .in suffix is now recommended to be used only for files which will be processed by

Linux configure/make, --prefix?

不打扰是莪最后的温柔 提交于 2019-12-03 04:04:56
问题 Bear with me, this one's not very easy to explain... I'm trying to configure , make and make install Xfce into my buildroot build directory. When configuring I'm using --prefix=/home/me/somefolder/mybuild/output/target so that it builds to the right folder, however when it's compressed and run I get errors from various config files where it's looking for files in /home/me/somefolder/mybuild/output/target (which of course doesn't exist.) How do I set what folder to build into, yet set a

How to point autoconf/automake to non-standard packages

一个人想着一个人 提交于 2019-12-03 03:20:46
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 documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 I can't install CPPPUNIT in the standard