w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
"scala.runtime in compiler mirror not found" but working when started with -Xbootclasspath/p:scala-library.jar
The easy way to configure the settings with familiar keystrokes: import scala.tools.nsc.Global import scala.tools.nsc.Settings def main(args: Array[String]) { val s = new Settings s processArgumentString "-usejavacp" val g = new Global(s) val r = new g.Run } That works for your scenario. Even easier: java -Dscala.usejavacp=true -jar ./scall.jar Bonus info, I happened to come across the enabling commit message: Went ahead and implemented classpaths as described in email to scala-internals on the theory that at this point I must know what I'm doing. ** PUBLIC SERVICE ANNOUNCEMENT ** If your code of whatever kind stopped working with this commit (most likely the error is something like "object scala not found") you can get it working again

Categories : Scala

Xcode Build error with one spec. Library: ld: library not found for -lzbar
There's a particular way to install ZBAR. Follow these instructions : http://zbar.sourceforge.net/iphone/sdkdoc/install.html

Categories : IOS

Adding sources for shared library in GDB
In order for GDB to know what sources match your some_shared_library.so, you must build it with debugging info (usually -g flag). Once you've done that (and it sounds like you haven't), on many platforms (e.g. Linux) GDB will find the sources automatically. On other platforms, dir is the right command to tell GDB where the sources are.

Categories : Debugging

maven Library and Test sources
If you don't use the folder src/test/java or if you don't use just don't create a folder like src/test it means the tests will not be compiled nor be executed. So it is no problem if you you don't use the tests, but of course it is recommended to do unit testing.

Categories : Maven

Qt: mingw compiled library does only work with both library.so and library.lib file present
That's weird, I think you should get a *.a and *.dll files when building a shared lib with MinGW on Windows, as said in the documentation: In windows, MinGW will output .a and .dll, MSVC2010 will ouput .lib and .dll. In linux, MinGW will output .so, .so.1, .so.1.0 and .so.1.0.0 – .lib, .a and .so are import libraries. You definitely shouldn't rename your file! Be careful to: not to include the "lib" prefix after "-l" in your project file. put everything after after "-l" in lower case as you're on Windows not adding any extension to your library name after "-l" add and reference the .h file used in your library A real example using QtWebsocket lib: INCLUDEPATH += "$${PWD}/include/" LIBS += -L"$${PWD}/libs/" -lqtwebsocket ... HEADERS += ... $${PWD}/include/QWsSocket.

Categories : Qt

Why can I start the Scala compiler with "java -cp scala-library.jar;. Hello World"?
Short version: you're not using the java compiler, you're using the java runtime. Long version: there's a big difference between javac and java. javac is the java compiler, which takes in java source code and outputs jvm bytecode. java is the java runtime, which takes in jvm bytecode and runs it. But one of the great things about the jvm is that you can generate bytecode for it any which way. Scala generates jvm bytecode without any java source code.

Categories : Java

In Eclipse, how to properly configure sources of Android Library Project?
From this answer: Right click on the non-library project (Project B) and select Build Path: In the Projects tab, add the library project Project A as a dependency. In the Order and Exports tab, be sure Project A is given higher precedence than the placeholder/bundle Library Projects. Thanks to this comment: In the call hierarchy view, click on the downward triangle in the top-right corner, select "Search In", and deselect "Application libraries".

Categories : Android

'staticfiles' is not a valid tag library: Template library staticfiles not found
You need to add django.contrib.staticfiles to INSTALLED_APPS Documentation on configuring Static files

Categories : Django

How to make my JAR library to be included in the in AndroidManifest.xml and use it as a shared library
<uses-library> is for libraries that are part of device firmware (SDK add-ons). So, unless you are distributing your own hardware or ROM mods, <uses-library> will not be of use to you. Moreover, generally speaking, you want to have independent copies of that library, one per app using it. That way, you can update each app separately. Otherwise, changes to your JAR may necessitate simultaneous changes to all of your apps, and since you are not in charge of installing those app updates (users are), that could be a major problem.

Categories : Android

creating java library jars with intellij
You can use artifacts to achieve this: http://blogs.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/ and http://www.jetbrains.com/idea/webhelp/packaging-a-module-into-a-jar-file.html. This is the way you do it in intellij.

Categories : Java

How do I add a library (android-support-v7-appcompat) in IntelliJ IDEA
As a Library Project You should add the resources in a library project as per http://developer.android.com/tools/support-library/setup.html Section > Adding libraries with resources You then add the android-support-v7-appcompat library in your workspace and then add it as a reference to your app project. Defining all the resources in your app project will also work (but there are a lot of definitions to add and you have missed some of them), and it is not the recommended approach.

Categories : Android

Scala SBT and JNI library
Apparently this is a known problem as documented in this sbt issue page. I have implemented, according to the eventsourced documentation, a custom run-nobootcp command that executes the code without adding the Scala library to the boot classpath. This should solve the problem.

Categories : Scala

Navigating to android support library source from IntelliJ IDEA
Navigate to Project Structure | Libraries If you haven't already, create a library and add the android-support-v13.jar In the same library, click "Attach Files or Directories..." and select the Android Support Library's src directory (<android-sdk>extrasandroidsupportv13src) Add this library as a project dependency Your library should look something like this:

Categories : Intellij Idea

A library in Scala -- use in Android
Yes! But there are some know how's. You should use ProGuard prior to dexing the standard scala libraries. Start here: https://github.com/jberkel/android-plugin/ Details here: https://github.com/jberkel/android-plugin/wiki/getting-started If you encounter problems refer this and this .

Categories : Java

Coming from a Flash Builder background, how can I import a library into IntelliJ IDEA?
"Libraries" is the correct way to do it. There are two kinds of libraries: libraries and global libraries. Global libraries can configured once and used in every project. Libraries are configured for each project. See http://www.jetbrains.com/idea/webhelp/configuring-project-and-global-libraries.html

Categories : Actionscript

Convert android library project to maven artifact for use in intellij idea
This project already has a pom.xml, so to create the artifact you only have to do a mvn package. Here there is a detailed explanation of how to publish in Maven Central Respository. When I have to use a non-maven library in my Maven projects I use a "folder repository". By "folder respository" I mean that I use one folder of my project (lib or repo sometimes) as a local repository. For this you have to config a repository like that: <repository> <id>project</id> <name>Project Maven Repository</name> <layout>default</layout> <url>file://${project.basedir}/lib</url> </repository> And then you can deploy the artifact into your local repository as this: mvn install:install-file -Dfile=path-to-your-artifact-jar

Categories : Maven

How to build an scala sbt project as Android library?
The only solution I know it is to create a multi project build config. Here you have some samples.

Categories : Android

How to add GeoSlick library in my Playframework scala Application
For many SBT projects (which GeoSlick obviously is, because it has the typical SBT files like build.sbt) the following procedure gets you an jar you can import in your project. Clone the GIT repository with git clone https://github.com/ahinz/GeoSlick Move into the directory and run sbt. This will download all dependencies defined in the project definitions. If everything was downloaded correctly, type into the sbt shell package and enter. This last step will compile a SNAPSHOT-jar file and puts it into the directory target/scala-2.10/ I did this for the project you named and it worked fine, producing a file *geoslick_2.10-0.1.0-SNAPSHOT.jar*.

Categories : Postgresql

Designing serialization library in Scala with type classes
Can't you put the implicits in scope that will create the right kind of serializers that you need? Something to that effect: def doNothingSerializer[T]: Serializable[T] = ??? implicit def mpostToJson(implicit pgs:Serializable[PrivateGroup]], cmts:Serializable[List[MPostComment]]) = new Serializable[MPost] { def serialize(mpost: MPost): JObject = { val privateGroupJSon = pgs.serialize(mpost.privateGroup) // make the mpost json with privateGroupJSon which would be empty ??? } } // later where you need to serialize without the inner content: implicit val privateGroupToJson = doNothingSerializer[PrivateGroup] implicit val mpostCommentsToJson = doNothingSerializer[List[MPostComment]] implicitly[Serializable[MPost]].serialize(mpos

Categories : Scala

Java/Scala library for user login and authentication
Well the easiest and the fastest way of doing it would be using Play. Crash course: In routes, declare as POST /login controller.Dashboard.regis And then object Dashboard extends Controller{ val loginForm = Form( tuple( "name" -> text, "email" -> text, "pass" -> text)) def regis = Action { implicit request => val form = loginForm.bindFromRequest form.fold( formWithErrors => BadRequest("bad reqeust "+formWithErrors), user => { val input = CreateUser(user._1, user._2, user._3) Try(Users.addUser(input)) match { case Failure(err) => InternalServerError(err.getMessage()) case Success(x) => //so on } I have not used but they say even Scalantra is pre

Categories : Java

Library not found for lgcov
I think it's caused by your xcode version. Apple remove the library code-coverage needed after xcode 4.3. You need to add one file to your project manually. You can see check this blog for more details: http://www.gerardcondon.com/blog/2012/02/21/code-coverage-updates-for-xcode-4-dot-3/ You can try this. I tried but failed since my project include C++ code. I think that's because xcode 4.6 has not supported this feature...

Categories : IOS

Library not found for -lQtCore
So the linker is looking for a library file (lib) aka an archive file. Like a .a or a .lib. http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs The -lgenericLibraryName command should look for: genericLibraryName.a genericLibraryName.lib genericLibraryName<num>.lib (where <num> is the highest version that can be found if you are on windows...) Here is some more documentation that may help with building statically for Mac: https://qt-project.org/doc/qt-4.8/developing-on-mac.html https://qt-project.org/doc/qt-4.8/mac-support.html https://qt-project.org/doc/qt-4.8/deployment-mac.html Not Editing Makefiles... If I were you, I would make sure that I have the same version of Qt that was used to build it at school, downloaded off the qt website, and make sur

Categories : Osx

C++ Eclipse ld: library not found for -l
it seems you are building into "src/hello/Hello.o" but do wrong search. -l"/Users/pdl/Development/HelloWorld/Namer/src/namer/World.h" should be library not a header in Linker command. Check your project settings.

Categories : C++

Library not found OpenCV
If your "make back-end" is Cmake you should stick to using it. Local config changes in Xcode can "secretly" be overwritten when the cmake is rerun (which for example happens after you make changes to it) creating weird build errors and forcing you to remember all the manual changes you made. Your problem seems to be that the generated project doesn't seem to know where to look for opencv. Assuming you installed opencv using macports you should add a line saying link_directories(/opt/local/lib) to your CMakeLists.txt. (if you installed it using brew, or compiled it manually just replace /opt/local/lib for /usr/local/lib or the path to your compiled libraries) Also make sure to link against opencv_calib3d instead of opencv_calib3d.2.4.3 (unless you have a very particular reason for b

Categories : Xcode

ld: library not found for -lGoogleAnalytics
If you are using Pods to include the GoogleAnalytics iOS SDK into your project, it's worth noting that since the 3.0 release your 'other link flags' needs to include -lGoogleAnalyticsServices not the old -lGoogleAnalytics

Categories : Iphone

What library can I use for calc large sparse matrix in Java or Scala?
I was curious with Breeze, so I looked into the source. It's a bit messy because the operators are all emitted from some println style code generation (!)... But I came up with this: import breeze.linalg.operators.{BinaryOp, OpMulScalar} object CSCMatrixExtraOps { abstract class CSCMatrixCanMulM_M[@specialized (Int, Float, Long, Double) A] extends BinaryOp[CSCMatrix[A], CSCMatrix[A], OpMulScalar, CSCMatrix[A]] { protected def times(a: A, b: A): A protected def zeros (rows: Int, cols: Int): CSCMatrix[A] protected def builder(rows: Int, cols: Int, sz: Int): CSCMatrix.Builder[A] final def apply(a: CSCMatrix[A], b: CSCMatrix[A]): CSCMatrix[A] = { val rows = a.rows val cols = a.cols require(rows == b.rows, "Matrices must have same number of rows!"

Categories : Java

ld: library not found for -lz clang: error
Short Answer Leave the -ObjC flag there where it is. Long Answer According to the Google Maps SDK docs for iOS, the -ObjC flag is required. In the Other Linker Flags section, add -ObjC. If these settings are not visible, change the filter in the Build Settings bar from Basic to All. If you want more insight, please refer to the Apple technical Q&A QA1490 The problem arises with categories on static libraries, which are not linked by default Objective-C does not define linker symbols for each function (or method, in Objective-C) - instead, linker symbols are only generated for each class. If you extend a pre-existing class with categories, the linker does not know to associate the object code of the core class implementation and the category implementation. This prevents

Categories : IOS

Why is it faster to call external scala compiler than use the runtime interpreter library?
There are many things left unstated (like memory settings), but you're comparing apples and oranges. The command-line script runner is not a REPL session; instead, it wraps your code in a simple object with a main method, compiles and runs that. By contrast, each interpreted line (or compilable thing) in the REPL is wrapped in an object (with the session history imported so you can refer to past results). Even modulo REPL start-up, this has performance consequences, see this issue. The simple wrap-it logic for the script runner is built into the parser. Here is how the script runner runs the compilation. Or, it looks like this is how -e is handled. Edit: your comment to your question implies that you really want fsc compile server behavior. Fire up fsc and use the compile client.

Categories : Scala

Android zxing library bacrcode scanner forcing the library to open on current app
This link may help you .. There is one example gitHub project.

Categories : Android

Library not loaded: /usr/lib/libxslt.1.dylib error loading library after installing with CPAN
Did you install into or otherwise replace the original Apple-supplied libraries in /usr/lib? You should never do that. Otherwise, you'll likely break other parts of OS X that depend on those libraries. You should restore the original libraries from a backup or reinstall OS X. If you want newer versions, you should install them elsewhere, like in /usr/local/lib. Or better yet you should be using a third-party package manager, like Homebrew or MacPorts; in fact, you appear to be using MacPorts, judging from the /opt/local/lib path. Use that and don't alter system files in /usr (other than /usr/local) or /System/Library.

Categories : Osx

Distributing Windows C++ library: how to decide whether to create static or dynamic library?
There are significant advantages to both static and dynamic (shared) libraries. Maybe one option for you is to distribute both types of libraries, and let the library users decide which to use. For myself, I usually use static libraries unless I think the advantages of a dynamic library are meaningful for the project. Among the advantages of a static library: Once linked in at compile-time by the user of the library, the code in the library is always in the same module that needs to call it. So no DLL hell, and no side-by-side hell. I cannot count the number of times I've tried to run a program on Windows only for it to fail because I don't have the right version of the MSVC runtime (DLL) installed. This is really a pain and if it can be avoided, it makes everyone's life easier. Si

Categories : C++

LNK2001 and LNK1120 when compiling a x64 dynamic library linking a x86 static library
You can not - in other words, there is NO WAY to - link a 32-bit library with a 64-bit executable or DLL (or a 32-bit executable to a 64-bit DLL or vice versa). You will either have to compile your .DLL/.EXE as 32-bit, or find a 64-bit version of the 32-bit library. No other solution! The 64-bit architecture is different from the 32-bit architecture in several aspects, but most importantly, the addresses (pointers) are 64-bit in a 64-bit architecture, which prevents almost any 32-bit code from working correctly in a 64-bit environment (because the upper 32 bits of the addresses are lost, which doesn't produce anything meaningful).

Categories : C++

can somebody tell me how to resolve this issue " library not found for -lwoa_two"
Go to your project directory and remove the folders Pods/ and yourProject.xcworkspace. Run pod install again and reopen yourProject.xcworkspace on XCode. Things should go back to normal.

Categories : Iphone

MPG123 library: function mpg123_encsize not found
You have an old version of the mp123 library, according to the release notes it was added in 26.0.26 https://github.com/gypified/libmpg123/blob/master/NEWS.libmpg123 26.0.26 - Added mpg123_encsize(). - Added flag MPG123_SKIP_ID3V2.

Categories : C

Java JSoup Library is not found when packaged in jar
Jsoup should be on the host machine if your code is going to use it. Why not place it with your own jar file, and set your jar's manifest so that it knows where to find the Jsoup jars? This question has nothing to do with Jsoup per se and all to do with using external libraries contained in jar files, but as it happens I use Jsoup in several of my final projects, and they work just great when used as most jar files should be used, as libraries contained on the host machine. Edit You state: That's what I tried to do. I have decompiled the jar and Jsoup is bundled within in jar format. However, I have never messed with the manifest before. How would I set the manifest to look for it in the projects jar? If the Jsoup jar file is in the same directory as your jar file, simply refer t

Categories : Java

iOS Library not found for -lidn (Including xmppframework)
Finally fixed it after 3 days.. My advice to anyone else coming across this problem is to load up one of the example projects and compare the build settings on each! Ended up that my Library Search Paths was wrong.

Categories : Xcode

Symbol not found when using template defined in a library
Basically what's happened is that you only have the definitions in the headers if I say template<class T> T something(T); somewhere, that tells the compiler "trust me bro, it exists, leave it to the linker" and it adds the symbol to the object file as if it did exist. Because it can see the prototype it knows how much stack space, what type it returns and such, so it just sets it up so the linker can just come along and put the address of the function in. BUT in your case there is no address. You /MUST/ have the template definition (not just declaration) in the same file so the compiler can create one (with weak linkage) so here it's assumed they exist, but no where does it actually stamp out this class from a template, so the linker doesn't find it, hence the error. Will fluff

Categories : C++

Should I install jpeg library when I use Generic Image Library in BOOST
I think that your answer can be found here. It looks like you don't need to compile libjpeg before boost, but you do need to have it available when building code that uses the jpeg I/O functions.

Categories : C++

C/cmake - how to add a linker flag to an (unused) library when the library is specified in TARGET_LINK_LIBRARIES?
The CMake command target_link_libraries allows for specifying both libraries and flags when linking a given target. Instead of directly using the target name MY_LIB in the TARGET_LINK_LIBRARIES call, use a variable that wraps the reference to MY_LIB with the --whole-archive and --no-whole-archive flags: ADD_LIBRARY(MY_LIB my_lib.c ) SET(MY_LIB_LINK_LIBRARIES -Wl,--whole-archive MY_LIB -Wl,--no-whole-archive) ... ADD_EXECUTABLE(my_app my_app.c) TARGET_LINK_LIBRARIES(my_app ${MY_LIB_LINK_LIBRARIES})

Categories : C

Link to shared library from Android library project with ndk-build
First create a module that will compile your libA.so library as prebuilt shared library in your project B. include $(CLEAR_VARS) LOCAL_MODULE := libA LOCAL_SRC_FILES := path/to/libA.so include $(PREBUILT_SHARED_LIBRARY) Then, add this module to your main module of your project by: LOCAL_SHARED_LIBRARIES := libA I have never tried IMPORT_MODULE option in my project but this works in my case.

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.