libraries

Adding Joda Time to Android Studio

Deadly 提交于 2019-11-29 22:50:34
I got the file from the Joda site and followed these instructions for adding libraries but when I get to the Gradle sync I end up with the error: Gradle Sync Error:Configuration with name 'default' not found. Gradle Build Error:A problem occurred configuring project ':app'. > Cannot evaluate module joda : Configuration with name 'default' not found. A bit confused, I looked around and read that the library should have it's own gradle files but the joda package doesn't. When I try to use import org.joda.time; it can't resolve joda . Does anyone have any idea of what I'm doing wrong? Amit K.

Create a static Haskell Linux executable

99封情书 提交于 2019-11-29 21:30:17
It's not often two things I love so much come together to cause me so much annoyance (besides my kids). I've written a Haskell program at work that uses libraries like text, xml-enumerator, attoparsec-text, etc. I have it working properly on my Windows machine at work, my Ubuntu virtual machine at work (32-bit), my Ubuntu desktop (32-bit again) and an EC2 instance running Ubuntu (64-bit). Our client is running CentOS 5.3, 64-bit. I can't for the life of me get this executable to run properly. I tried creating a static executable using: ghc --make myprog.hs -optl-static -optl-pthread But when I

Libraries in /usr/local/lib not found

拈花ヽ惹草 提交于 2019-11-29 19:34:11
I am building an application using a framework called ohNet . After building the framework, there is the possibility to install the framework via make install . By default the libraries are installed inside the /usr/local/[lib|include] folders. ok. I am using eclipse for development. In order to use this libraries I have to set the include path to the library (in this case usr/local/include/ohNet ), set the Linker search path (-L)( /usr/local/lib/ohNet ) and specific libraries (-l) (in this case i choose a library called libohNet.so which is in this folder. When I build the project in eclipse

Where do I put third-party libraries to set up a C++ Linux development environment?

爷,独闯天下 提交于 2019-11-29 19:06:13
I'm not new in C++ although I'm new in Linux. I'm using CMake to precompile a cross-platform game engine with some third-party components, but I have a lot of doubts about using libraries. My question is how to work with third-party libraries and where to put them. Apt installs libs in their official place (/usr/local, /usr/lib/ ..) but I develop in Windows using local libs that are in a folder in my project dir. Also, I need a good tutorial to know the rules of how libraries work. For example: when trying to compile my project, luabind is asking for liblua.s0.1, but AFAIK there is no way to

How does a language expand itself? [closed]

感情迁移 提交于 2019-11-29 18:50:46
I am learning C++ and I've just started learning about some of Qt 's capabilities to code GUI programs. I asked myself the following question: How does C++, which previously had no syntax capable of asking the OS for a window or a way to communicate through networks (with APIs which I don't completely understand either, I admit) suddenly get such capabilities through libraries written in C++ themselves? It all seems terribly circular to me. What C++ instructions could you possibly come up with in those libraries? I realize this question might seem trivial to an experienced software developer

ClassCastException: MyFilter cannot be cast to javax.servlet.Filter

戏子无情 提交于 2019-11-29 14:35:06
I'm migrating an application to JBoss 7, where all dependencies were in "JBOSS_HOME/server/default/lib" (JBoss 4). I included the lib "servlet.jar" (javax.servlet. *), however, after setting a Global Module for JBoss 7 (modules.xml, standalone.xml, jboss-deployment-structure.xml in war files), libraries are loaded normally by JBoss. When JBoss 7 tries to start the filters, I get following exception: 15:09:15,222 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/RegistrarValorDolar]] (MSC service thread 1-2) Exception starting filter cripto: java.lang.ClassCastException

Configuring SFML on Visual Studio manually

ε祈祈猫儿з 提交于 2019-11-29 13:04:49
This Q&A post comes from lots and lots of questions related to sfml library when people try to configure manually their VS projects. Sometimes answers aren't complete or they're too specific. I would like to compile in a single post how to configure VS to be able to use the SFML library both statically and dynamically. So: 1. How can I configure my VS project with sfml libraries dynamically , in a general way? 2. How can I configure my VS project with sfml libraries statically , in a general way? First, I recommend carefully follow the SFML tutorial about configuring the library in Visual

Multi-line pretty-printing of (nested) collections in Java

左心房为你撑大大i 提交于 2019-11-29 09:56:24
I want to be able to (pretty-)print the contents of my maps. They should have newlines and indentation rather than on a single line; ignoring the toString methods of collections/iterables/etc; and recursing into nested collections. This is especially of interest for me regarding maps. I suppose JSON'ing might be relevant, but I don't want to go that far, or at least - I don't want my code to have to know about JSON just for me to pretty-print it. What are my options (other than writing this myself)? You can use the method MapUtils.debugPrint from the apache commons collections in order to

Cannot Add Library to Android Project in Eclipse

微笑、不失礼 提交于 2019-11-29 09:40:21
I am trying to add a Library to an existing project inside eclipse. I am keeping the Project Folder itself and the Library Folder in a folder marked "ANDROID" on my desktop. When I try to Import > Existing Code into Workspace > Select "ANDROID".. the only project that gets added is the App itself and NOT the library. I even try to add the library on its own and it will show up on the import list but will not have a "ticked box" with the option of "Finish". I even right clicked my App - Properties > Android > and noticed that the library is there with a red "X" and does not allow me to search

How to use armv6 third party libraries in an armv7 app?

情到浓时终转凉″ 提交于 2019-11-29 09:00:05
I have two 3rd party libraries. One just has a build for armv6 and the other just has a build for armv7. I need to use both of them in my iOS enterprise application. I've asked the armv6 library vendors to supply a armv7 version, but they haven't been able to do so. (Note: I've already got the answer and will provide it. Someone else asked this in a comment and there wasn't enough room to answer, so I've created its own question, and will provide my answer.) The answer is to hack the armv6 library into thinking it's an armv7 library. This will get you running until the vendor supplies the