compilation

libusb not found mac os x 10.6.8

早过忘川 提交于 2019-12-25 00:38:02
问题 Can anybody tell me how to make my compiler find the libs that it is looking for. As far as I can tell the libs are where it is supposed to be looking. Perhaps there is a mac pro out there that will know how to get around this. Below is the error that is causing the configuration fail checking for usb_init... configure: error: libusb not found, use ./configure LIBUSB_LIBS=... Below is what it dumped into the config.log file Pastebin to config.log file 回答1: Got the same problem. Removed the

How to include and use openCV library when installed locally?

不打扰是莪最后的温柔 提交于 2019-12-24 20:21:40
问题 I want to install an OpenCV version locally on OSX in a folder without overwriting the old installation that I need for an old executable. I followed [these instructions][1], particularly the Building OpenCV from Source Using CMake, Using the Command Line section. So basically I: downloaded the source code with git and now it is in the subfolder openCV Created a new directory cmake_bin_dir Entered in cmake_bin_dir and created another subdirectory instDir From the cmake_bin_dir I launched the

libtorrent unresolved external

 ̄綄美尐妖づ 提交于 2019-12-24 19:24:56
问题 I'm getting the following error when I compile my program which links to libtorrent.lib. I've tried compiling libtorrent with different settings, I've tried enabling/disabling DHT, deprecated functions, etc. error LNK2019: unresolved external symbol "void __cdecl libtorrent::rel_performancetimer_pools_nolog_resolvecountries_deprecated_dht_ext_(void)" Is anyone here familiar with libtorrent, or can anyone provide any advice for getting rid of this error? I don't see any other libraries that I

gtkmm: Simple example fails to compile: gtkmm.h: No such file or directory

丶灬走出姿态 提交于 2019-12-24 19:20:01
问题 I am working through the gtkmm documentation. I have started by trying to compile the "Simple Example". Here is the code. It can also be found here. /// SimpleExample.cpp #include <gtkmm.h> int main(int argc, char *argv[]) { auto app = Gtk::Application::create(argc, argv, "org.gtkmm.examples.base"); Gtk::Window window; window.set_default_size(200, 200); return app->run(window); } I have tried to compile this using g++ SimpleExample.cpp -o SimpleExample `pkg-config gtkmm-3.0 --cflags --libs`

How to compile JAVA on Sublime text 2 using Mac OS X?

末鹿安然 提交于 2019-12-24 17:48:01
问题 I've looked all over the internet only finding very complicated results and now im not sure what to do. 回答1: Sublime text 2 has builtin Java support: Which means that once you have opened the Java source, all you have to do is press command+B What you described in the comments is a bit different - you should update your post with this information! Devin posted a gist solution here: You should add a new build-system by going to the menu: Tools --> Build System --> New Build System and add the

Compilation error: Failure executing javac, but could not parse the error

ε祈祈猫儿з 提交于 2019-12-24 16:42:32
问题 I'm having the follow error when I launch a Hudson job like mvn clean compile . [INFO] Compiling 1541 source files to /users/applis/33g/ad33gwas/.hudson/jobs/sonar facade-commande/workspace/facade-commande/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: An exception has occurred in the compiler (1.5

Eclipse - Compiling & executing program

元气小坏坏 提交于 2019-12-24 15:28:46
问题 In the past, I have used JCreator to develop my java applications. I wanted to try Eclipse and see its IDE. On JCreator, I could just open a java file and run it in the command prompt. On Eclipse, I cannot find out how I can compile and run a java file written by someone else without first creating a project, creating a new java class and then copy and pasting the code from the file. I cannot even figure out how to import a java file into the project. So my questions: 1. How can I open,

Dynamically Loading Page Class/Assembly: Type or name could not be found in the global namespace

百般思念 提交于 2019-12-24 15:15:32
问题 I am trying to create an ASP.Net Web application that stores it's "content" (ASPX/ASCX and assemblies) somewhere other than the file system (Inside a service, for example) and loads them in dynamically as required. I have successfully created a VirtualPathProvider that takes care of reading ASPX/Master/ASCX files from alternate locations but I am running into problems when those ASPX pages Inherit a class - ie: when they have code behind. Thanks to answers in another question I am now

Why not all cpp files recompile?

吃可爱长大的小学妹 提交于 2019-12-24 15:12:32
问题 In visual studio 2015 community version I do a debug build with the following file structure. A.cpp B.cpp that includes A.cpp C.cpp that includes A.cpp and B.cpp main.cpp that includes A.cpp, B.cpp and C.cpp So when I change A.cpp in debug mode I get recompiled only A.cpp and main.cpp, but when I go to Release build mode, I get recompiled only A.cpp. Also I get some messages like: In Release mode compile: 0 of 17 functions ( 0.0%) were compiled, the rest were copied from previous compilation.

Error:Execution failed for task ':app:dexDebug' after importing project from Eclipse to Android Studio

╄→尐↘猪︶ㄣ 提交于 2019-12-24 15:01:14
问题 I imported a project from Eclipse to Android. Then I get this error message after I tried to run application: Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 2 It seems like this problem: Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException But I tried