Comments (4)
from source.
I tried setting LD_LIBRARY_PATH to include /usr/gcc-4.9-pie/lib, but it seems to have no effect:
$ echo $LD_LIBRARY_PATH /data/data/com.k9spud.CppEditor/kbox4/lib:/data/data/com.k9spud.CppEditor/kbox4/usr/lib $ export LD_LIBRARY_PATH='/data/data/com.k9spud.CppEditor/kbox4/usr/gcc-4.9-pie/lib:/data/data/com.k9spud.CppEditor/kbox4/lib:/data/data/com.k9spud.CppEditor/kbox4/usr/lib' $ ./test CANNOT LINK EXECUTABLE DEPENDENCIES: library "libstdc++.so.6" not found
Then I tried symlinking the libraries as you suggested:
$ cd /usr/lib $ ln -s ../gcc-4.9-pie/lib/libstdc++.so.6.0.20 libstdc++.so.6 $ ln -s ../gcc-4.9-pie/lib/libgcc_s.so.1 libgcc_s.so.1 $ ~/test Hello world! $
Lo and behold, it works! Thank you so much!
How come setting LD_LIBRARY_PATH doesn't seem to do anything? I can even clear it out completely (removing all the paths) and everything still runs just the same. How does it know to look in /usr/lib when I'm running under the kbox_shell? Is /usr/lib something hard coded into the libfakechroot.so thingy?
from source.
from source.
FYI, I did a little more testing, this time trying to set LD_LIBRARY_PATH to point at the kbox "virtual" path of "/usr/gcc-4.9-pie/lib" instead of the underlying Android filesystem path. Still no go -- LD_LIBRARY_PATH seems to be completely ignored as far as I can tell.
Anyway, since the symlinking in /usr/lib to /usr/gcc-4.9-pie/lib/* works, I'm quite satisfied for the moment.
Thank you so much for making kbox! I managed to easily compile SLiRP on my Android and can now use PPP over ADB to achieve USB tethering for free. Yay!
Next I've been attempting to compile Qt's command line build tools (qmake, uic, moc, etc) for my Android and gotten pretty far, but not quite sure how to get resultant Android self-hosted compiled Qt apps to execute. Qt apps on Android seem to compile C++ code down to a .SO library instead of a direct executable and then some Java loader that the Qt people wrote does the actual loading and execution of the Qt C++ application code inside the .SO. Hence my interest in understanding how the system figures out how and where to load .SO files...
from source.
Related Issues (20)
- "Cleaned" base installer fails on Xperia XZ with Android 7 HOT 9
- gcc: Cannot create temporary file in /tmp/ HOT 7
- symbol not found in libssl.so HOT 2
- odd error in ANDROID N(7) HOT 4
- Installer issue HOT 2
- curl seems to fail on install HOT 3
- Keep tab focus on terminal minimize HOT 2
- cannot locate symbol "signal" HOT 11
- Multiple issues with git and dropbear
- rsync crash HOT 2
- kbox4-install-base-i686 (cleaned or not) errors during execution on Android 6.0.1 x86_64
- Error installing Entware
- KBOX4 not working on Android 8 (oreo) HOT 3
- KBOX4 fails on Android 9
- Segmentation fault HOT 13
- Provide a stub library for common user API features, etc/
- groff does not build cleanly for i686 HOT 2
- WARNING: linker: unused DT entry HOT 20
- Need a proper repository for binaries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from source.