[SOLVED] Instructions in repository README file: "not for standalone use"
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Instructions in repository README file: "not for standalone use"
Hello, I'm trying to understand the instructions in a README file:
~/sunxi-mali-proprietary/README
Quote:
This repository contains the Mali-400 proprietary libraries.
It is not for standalone use and should instead be used as a submodule for the sunxi-mali repository, which includes a build system.
I also have the repository: ~/sunxi-mali
What does the README file mean by "should instead be used as a submodule for the sunxi-mali repository"? Do I need to put the proprietary repository somewhere inside the sunxi-mali repository?
should instead be used as a submodule for the sunxi-mali repository
Since it's a git repository it is saying you should put the proprietary submodule in the main repository. But usually the main repository has by default such modules included. See that your sunxi-mali repository has submodule for proprietary module. For more info see man page of git-submodule.
This should make sure that you fully set up this repository and the sunxi-mali-proprietary submodule.
Installing the binaries:
------------------------
First off, while there are some android binaries present, there is currently no support for installing the android binaries, you will have to do so manually.
When everything goes well, all you need to do is run:
> make install
This should autodetect things, and install the correct mali GLES and EGL libraries in your system.
After doing everything up to and including 'make install', it created a new folder (maybe the folder was already there, it just added files):
~/sunxi-mali/lib/mali$ ls -al
Code:
total 11
drwxr-xr-x 6 walter walter 1024 Jan 16 22:55 .
drwxr-xr-x 3 walter walter 1024 Jan 16 21:21 ..
-rw-r--r-- 1 walter walter 36 Jan 16 22:55 .git
-rw-r--r-- 1 walter walter 186 Jan 16 22:55 Makefile
-rw-r--r-- 1 walter walter 764 Jan 16 22:55 Makefile.mashup
-rw-r--r-- 1 walter walter 591 Jan 16 22:55 Makefile.split
-rw-r--r-- 1 walter walter 337 Jan 16 22:55 README
drwxr-xr-x 4 walter walter 1024 Jan 16 22:55 r2p4
drwxr-xr-x 4 walter walter 1024 Jan 16 22:55 r3p0
drwxr-xr-x 3 walter walter 1024 Jan 16 22:55 r3p1
drwxr-xr-x 3 walter walter 1024 Jan 16 22:55 r3p2-01rel1
A new git repository added inside sunxi-mali repository. There is also a new file '.gitmodules':
~$ cat sunxi-mali/.gitmodules
Does this mean that it will go online to fetch the sunxi-mali-proprietary repository? Can I change this so it uses my local copy, or maybe that's a bad idea?
Last edited by linux_walt; 01-16-2015 at 11:30 PM.
Thank veerain, all the video drivers seem to be installed correctly now. There is a GL test program in sunxi-mali, a colored triangle, that is now working. Also mplayer's xv video output is now working.
YESSS!!! One week, but worth it. I think, maybe.
I guess instead of jumping up and down about it, an explanation of what followed after installing the new drivers would be more useful.
Originally mplayer had a glitch, you could not resize the video. The solution to this was to install a driver called 'fbturbo'.
Next came installation of the above GL drivers. Even though everything finally compiled and installed without errors, the GL test program didn't work. The error was: 'eglinitialize failed!'. Also, 'lsmod' was not showing any drivers. Everything was fixed after rebuilding the 'fbturbo' driver. At least as best I can recall that was how things went.
Almost forgot, lesson learned: read ALL the README files in the repositories you are using. Some have very specific instructions that may not be included in a 'how to build this package' guide.
In this case, the instructions of what to do with the submodule where in the README file of the parent module.
Last edited by linux_walt; 01-17-2015 at 03:16 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.