shared-libraries

Android: requires unavailable shared library com.google.android.maps; failing

妖精的绣舞 提交于 2021-01-27 04:09:07
问题 First of all, I set the Project Build Target in project\properties\android. I created AVD with Level 7 and 8 with Google APIs, set each AVD only the SD card size 4Gb, set the min version of SDK to 7 the target SDK to 8 in Manifest file. Without success. I delete all AVD and recreate those. After I reinstall Eclipse Rcp, Installed ADT in Eclipse, and Installed Android SDK, and create AVDs again. My GPS application is worked fine without Google APIs, in the earlier version I currently

C++ Linux: lib1 shared library uses shared library lib2, main program uses lib1, why shall it be linked to lib2?

邮差的信 提交于 2021-01-20 13:43:29
问题 I'm using g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609. I have a shared library lib2 : lib2.h: #pragma once class Lib2 { public: Lib2(); }; lib2.cpp: #include "lib2.h" Lib2::Lib2() { } I have a shared library lib1 that uses and so needs lib2 : lib1.h: #pragma once class Lib1 { public: Lib1(); }; lib1.cpp: #include "lib1.h" #include "lib2.h" Lib1::Lib1() { Lib2 lib2; } Now I have a program that uses lib1 , and so does not "directly" use lib2 but would need it at runtime. main.cpp:

C++ Linux: lib1 shared library uses shared library lib2, main program uses lib1, why shall it be linked to lib2?

一个人想着一个人 提交于 2021-01-20 13:42:18
问题 I'm using g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609. I have a shared library lib2 : lib2.h: #pragma once class Lib2 { public: Lib2(); }; lib2.cpp: #include "lib2.h" Lib2::Lib2() { } I have a shared library lib1 that uses and so needs lib2 : lib1.h: #pragma once class Lib1 { public: Lib1(); }; lib1.cpp: #include "lib1.h" #include "lib2.h" Lib1::Lib1() { Lib2 lib2; } Now I have a program that uses lib1 , and so does not "directly" use lib2 but would need it at runtime. main.cpp:

How do i make shared libs extracted by Android for AAB?

二次信任 提交于 2021-01-07 06:34:55
问题 I set android:extractNativeLibs="true" and target to Android 29 to make my shared libs extracted to /data/app/%package%/... by Android. If works just fine with APK to workaround Android 10 permissions issue. Recently i had to switch to AAB due to increased to 150Mb download size as my APK size exceeds Google Play limit of 100Mb. When testing APK installation from AAB ["APK from app bundle" deploy option in Android Studio] i noticed /data/app/%package%/.. is empty (in contrast to pure single

How to make a shared library reload itself under Linux

核能气质少年 提交于 2021-01-03 07:07:22
问题 I'm developing a shared library in C++ under Linux. Is there a way from the shared library code to reload itself when a new build is available for example? I was thinking of using dlclose and dlopen to reload but the former needs a handle which is accessible to the running process only. Any idea how to retrieve that handle from the shared library code? Any better solution to the whole idea? I understand hot swapping is dangerous but this will make development and testing much more easier. 回答1

How to make a shared library reload itself under Linux

孤街浪徒 提交于 2021-01-03 07:02:01
问题 I'm developing a shared library in C++ under Linux. Is there a way from the shared library code to reload itself when a new build is available for example? I was thinking of using dlclose and dlopen to reload but the former needs a handle which is accessible to the running process only. Any idea how to retrieve that handle from the shared library code? Any better solution to the whole idea? I understand hot swapping is dangerous but this will make development and testing much more easier. 回答1

how to understand fields of Relocation section '.rela.plt'

人盡茶涼 提交于 2021-01-01 04:43:52
问题 I'm trying to understand the dynamic linking of shared libraries on Linux. Given the following dump of Relocation section '.rela.plt': Offset Info Type Sym. Value Sym. Name + Addend 000000373f68 0f8300000007 R_X86_64_JUMP_SLO 0000000000000000 _ZN8CashFlowmIERK7Paym + 0 000000373f70 0f9800000007 R_X86_64_JUMP_SLO 0000000000000000 _Z8printCapPK3CapP8_IO + 0 000000373f78 0f9900000007 R_X86_64_JUMP_SLO 0000000000000000 _ZN13SharedBaggage16ge + 0 000000373f80 0f9c00000007 R_X86_64_JUMP_SLO

Apps Script - Modal show and google.script.run from bounded to library

跟風遠走 提交于 2020-12-30 03:41:08
问题 I have a Spreadsheet file with a bounded script which integrates a Library. This library provides 2 functions: Show an html modal with a button Provides the function callback when the button on the html is clicked LIBRARY content: test.html <!DOCTYPE html> <html> <head> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> </head> <body> <a class=

Apps Script - Modal show and google.script.run from bounded to library

…衆ロ難τιáo~ 提交于 2020-12-30 03:40:26
问题 I have a Spreadsheet file with a bounded script which integrates a Library. This library provides 2 functions: Show an html modal with a button Provides the function callback when the button on the html is clicked LIBRARY content: test.html <!DOCTYPE html> <html> <head> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> </head> <body> <a class=

undefined reference to main for shared library

南笙酒味 提交于 2020-12-26 03:56:19
问题 I am trying to build a box-standard shared library (using code::blocks 13.12 on ubuntu) which obviously does not have a main function as compiles perfectly fine on windows. I am getting a bunch of relocation errors + undefined reference to main?? Any suggestions? I have pasted output below. cheers, Mike -------------- Build: Debug in utils (compiler: GNU GCC Compiler)--------------- g++ -Wall -fexceptions -std=c++0x -g -fPIC -I -c utils/exception.cpp -o obj/Debug/exception.o /usr/bin/ld: /usr