import-libraries

Linker (ld v2.23.2 from MinGW) error at form: -L<SOMEDIR> -l<lib1 -l<lib2>,

扶醉桌前 提交于 2020-01-17 05:12:25
问题 Have ld v2.23.2 from mingw-builds 4.8.0 32bit suite. In my project in a directory there are libs: libitpp.a and libitpp.dll.a. The first is simply static lib, the second is import library to correspondent shared lib (DLL on Windows). I tell linker to link there libs in following form: -L$$ITPP_DIR/libs -litpp and the linker always chooses the second lib (libitpp.dll.a), but I want the first (libitpp.a), because "-litpp" matches it exactly. At explicit instruction: $$ITPP_DIR/libs/libitpp.a

Android, import external library to NDK

醉酒当歌 提交于 2020-01-07 02:59:08
问题 i am making an Android Shapefile reader app on Android with the use of NDK. I want to use C++ to parse shape files. I found library "Shapefile C Library". Github: https://github.com/sw897/shapelib. I am using Android studio and have no idea how to import it to my Android project so i could use functions described in: http://shapelib.maptools.org/shp_api.html Any tips? 回答1: First, start hacking away at the Hello-JNI example from Google: https://github.com/googlesamples/android-ndk/tree/master

importing Apache POI Java

牧云@^-^@ 提交于 2019-12-25 04:47:22
问题 Hi I'm having a bit of trouble using the Apache POI library in java. I've downloaded and imported the library into my project, but am unable to import it into my java class. (like you would do): import java.awt.*; Am I looking at this the wrong way, or am I missing something? 回答1: If you are using maven, map de dependecies: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.14</version> </dependency> Then import and use the apache poi library: import org

Support libraries to add for Autosizing TextViews

只愿长相守 提交于 2019-12-10 13:49:38
问题 I am confused about adding the correct support libraries in Android Studio to be able to use AutoSizing TextViews. https://developer.android.com/guide/topics/ui/look-and-feel/autosizing-textview.html The description of what support libraries to use is kind of vague on this page. I have tried to import the suggested libraries, but either I am requesting the wrong libraries (they are not found, such as the android.support.v4.widget package) or I am doing something else incorrectly. My min SDK

Why are some dll static-linking stub libs (import libraries) so big?

时光怂恿深爱的人放手 提交于 2019-12-07 08:10:46
问题 I noticed while linking to the pcl (point cloud library) that some of the dll stub libs have more than 10MB where the dll themselves have less than half of that size (these are release builds!). Shouldn't the stub lib only contain minimal information so that the dll information is accessible? How can it be larger than the dll files they refer to? The relevancy for me is that by linking to the big stub libs, my own executables are also greatly growing in size; something I wanted to prevent by

Why are some dll static-linking stub libs (import libraries) so big?

折月煮酒 提交于 2019-12-05 10:26:46
I noticed while linking to the pcl (point cloud library) that some of the dll stub libs have more than 10MB where the dll themselves have less than half of that size (these are release builds!). Shouldn't the stub lib only contain minimal information so that the dll information is accessible? How can it be larger than the dll files they refer to? The relevancy for me is that by linking to the big stub libs, my own executables are also greatly growing in size; something I wanted to prevent by using dlls. Are there settings in VS that change the dll linker behavoiur so that it puts more or less

How to import a maven module to an Android Studio project

余生长醉 提交于 2019-12-01 15:44:45
I would like to include retrofit as a module in my Android Studio project. The problem is that retrofit is a maven project and so Android Studio won't let me import it. Is there a way around this? A similar question has been asked before , but it received no answers. Use a custom group and/or artifact in the POM of your clone, so your clone cannot be confused with the original. Build and install your clone of Retrofit using Maven as usual: mvn install . (Using the command line or an IDE other than Android Studio.) You have to build your Retrofit clone manually after each change you make to it,

How to import a maven module to an Android Studio project

佐手、 提交于 2019-12-01 13:49:01
问题 I would like to include retrofit as a module in my Android Studio project. The problem is that retrofit is a maven project and so Android Studio won't let me import it. Is there a way around this? A similar question has been asked before, but it received no answers. 回答1: Use a custom group and/or artifact in the POM of your clone, so your clone cannot be confused with the original. Build and install your clone of Retrofit using Maven as usual: mvn install . (Using the command line or an IDE

Android import library

我与影子孤独终老i 提交于 2019-12-01 09:08:37
In my project, I need to use external library. That library consists of .class files. I have added folder with this library to my project using properties -> Java Build Path -> Libraries -> Add class folder . I can compile project without any problem, but when I run it, I get failed resolving xy and debugger stops on line where I create instance of class from imported files. I guess the external library I use isnt linked to my .apk file. How can I fix this? I have tried to check this library on "Order and Export" tab assuming that, it will export the library with my application. But it didnt

Android import library

旧街凉风 提交于 2019-12-01 07:01:39
问题 In my project, I need to use external library. That library consists of .class files. I have added folder with this library to my project using properties -> Java Build Path -> Libraries -> Add class folder . I can compile project without any problem, but when I run it, I get failed resolving xy and debugger stops on line where I create instance of class from imported files. I guess the external library I use isnt linked to my .apk file. How can I fix this? I have tried to check this library