libraries

Reduce pyinstaller executable size

余生颓废 提交于 2019-12-01 21:23:42
问题 I have only one line of code input() written in python and packed with pyinstaller with option --onefile . The exe file is 4577 kB which is almost 5Mb. How can I reduce its size or exclude some auto-bundled libraries? 回答1: The .exe file you create using pyinstaller includes the python interpreter and all modules included in your script.Maybe, the modules you are using have a big library themselves. You can however try using py2exe but it might not work for all projects.The other way to get it

Reduce pyinstaller executable size

孤人 提交于 2019-12-01 21:05:16
I have only one line of code input() written in python and packed with pyinstaller with option --onefile . The exe file is 4577 kB which is almost 5Mb. How can I reduce its size or exclude some auto-bundled libraries? The .exe file you create using pyinstaller includes the python interpreter and all modules included in your script.Maybe, the modules you are using have a big library themselves. You can however try using py2exe but it might not work for all projects.The other way to get it smaller is to use a compression program as like, compress the executable using UPX (have a look at this:

Compiling .java files from the command line - external libraries, classpath

六月ゝ 毕业季﹏ 提交于 2019-12-01 20:59:19
I made a project in Eclipse and am now trying to ensure that the .java files compile from the command line. I've been trying to compile using javac *.java in the folder with all my .java files. However, this results in errors due to a reference to a class from an external library, Joda-time. I have the following .classpath file that Eclipse made for the project but don't know what to do with it. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui

Nested packages in Java

此生再无相见时 提交于 2019-12-01 20:15:47
问题 Firstly I want to create a custom user library with the following structure: src: LibA.pack1 ClassName0.java LibA.pack2 ClassName1.java I have no problem with this one. Later I want to import this library into the other project and call import LibA.*; (to use both classes of pack1 and pack2), which will fail as it requires full name, i.e. import LibA.pack1; How can I import the whole library at once to be able to use both classes of pack1 and pack2? P.s. It's definitely not called "nested

Nested packages in Java

六月ゝ 毕业季﹏ 提交于 2019-12-01 18:19:23
Firstly I want to create a custom user library with the following structure: src: LibA.pack1 ClassName0.java LibA.pack2 ClassName1.java I have no problem with this one. Later I want to import this library into the other project and call import LibA.*; (to use both classes of pack1 and pack2), which will fail as it requires full name, i.e. import LibA.pack1; How can I import the whole library at once to be able to use both classes of pack1 and pack2? P.s. It's definitely not called "nested packages" but I have no idea how to call this. P.p.s. I'm using Eclipse if it matters. Thanks in advance:)

“No rule to make target” error in cmake when linking to shared library

半腔热情 提交于 2019-12-01 17:28:49
In Ubuntu, I have downloaded a third-party shared library, mylibrary.so , which I have placed in the directory /home/karnivaurus/Libraries . I have also placed the associated header file, myheader.h , in the directory /home/karnivaurus/Headers . I now want to link to this library in my C++ code, using cmake. Here is my CMakeLists.txt file: cmake_minimum_required(VERSION 2.0.0) project(DemoProject) include_directories(/home/karnivaurus/Headers) add_executable(demo demo.cpp) target_link_libraries(demo /home/karnivaurus/Libraries/mylibrary) However, this gives me the error message: :-1: error: No

android studio cannot resolve import org.json.JSONObject

橙三吉。 提交于 2019-12-01 14:07:28
问题 I used libgdx to build my project and I am having issues using the JSONObject class. When I add import org.json.JSONObject , it says it cannot resolve. How do I add that library to my project? Here is what I have tried without success: I downloaded the json-simple-1.1.jar and put it in core/build/libs folder. Could not use import.org.json.simple.JSONObject either. When browsing the tree in Android Studio as "Packages" dropdown, I can see the classes I want under "Core -> Libraries -> org ->

Where is the implementation of included C++/C header files?

五迷三道 提交于 2019-12-01 10:13:30
问题 This may seem a little stupid:) But it's been bothering a while. When I include some header files which are written by others in my C++/C program, how does the compiler know where is the implementation of the class member function declared in the header files? Say I want to write some program which takes advantage of the OpenCV library. Normally I would want to use: #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> However, these

FFMPEG Link error

末鹿安然 提交于 2019-12-01 08:42:09
I'm trying to compile a modified version of this transcoding example from the FFMPEG site , I've used all the required includes and joined the libs using this : INCLUDEPATH += $$(FFMPEG_DEV_PATH)\include LIBS += -L$$(FFMPEG_DEV_PATH)\lib -lavformat -lavcodec -lavutil -lswscale -liconv -lz -lavfilter but I get this linking error that I can't understand : "avio_close(AVIOContext*)", referenced from: PhVideoEncoder::PhVideoEncoder(QString) in PhVideoEncoder.o "av_strerror(int, char*, unsigned long)", referenced from: av_make_error_string(char*, unsigned long, int) in PhVideoEncoder.o "av_rescale

Using java library in eclipse

左心房为你撑大大i 提交于 2019-12-01 08:38:49
问题 I'm a bit new to eclipse and want to use the following libraries so that I can use their implemented objects (HttpClient and Java csv). How do I import these libraries so that I can write some java with them? http://hc.apache.org/downloads.cgi http://sourceforge.net/projects/javacsv/ 回答1: What you're looking to do is add the libraries to your project's build path (the class path that will be used while compiling). In Eclipse, you can do this by right-clicking your project and choosing