Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

Status of Crossdev?


uudruid74

Recommended Posts

What's the status of crossdev?  I'm getting a message to convert /etc/portage/package.mask to a directory.   My magic wand is broken.  WTF am I supposed to do to the file?

 

And IRC is saying crossdev is broken permanently.  I just want to cross-compile 1 stinking package (need not be an ebuild, I can build from source tarball) so I can stick it on my phone (its rooted).   Whats the fastest way to get a cross-compiler installed?   I can build it manually.  I did it about 15 years ago but I can't remember how the  F&^% I did it!

 

 

Link to comment
Share on other sites

Why converting package.mask to a directory seems so confusing? just stick the file you have now with a different name inside the new directory.
But the fastest way is to use the android provide binaries by android, I'm assuming you have an android phone, install the android-sdk-update-manager, add yourself to the android group, launch it and select the 'SDK Platform' for the version you are using and install it, it will install a crosscompiler for arm,

and this will end up in your PATH:

/opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin

/opt/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
/opt/android-ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin

Link to comment
Share on other sites

I have an SDK update manager on my desktop, but it mainly installs Java libs and its a GUI tool. I just want the cross compiler, not a dull Android ask, and must be able to install it from a shell. There is no GUI on the devel box. I'd prefer not to break the package manager, but if I have to I will.

 

Do have a URL for the download? I was thinking of using a deb or rpm package and just manually installing it.

Link to comment
Share on other sites

And what I was confused about is WHY  I should have to make such a change.  This should be set up one way or the other, not have packages tell me to change my directory structure back and forth.   Its not making any sense.

Link to comment
Share on other sites

https://android.googlesource.com

search for platform/prebuilts/gcc/linux-x86*,  I think you could just unpack it to something like ~/opt/ and change the environment variables accordingly, would do the work, but crafting an ebuild that neatly downloads this an unpacks it to /opt, and adds the paths to /etc/profile.d/, isn't complicated to make either, and you get to have something you could reuse later.
 

I don't know if it would fit what you are doing, but there's an app called Terminal IDE[1] on google play, that comes with gcc(though old 4.4), ssh(server, or was telnet I don't remember) , vim and tmux. and it's a few taps away.

 

[1]https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...