Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiLP in Chromebrew? (Attempted solutions) #2489

Closed
superloach opened this issue Jul 29, 2018 · 21 comments
Closed

TiLP in Chromebrew? (Attempted solutions) #2489

superloach opened this issue Jul 29, 2018 · 21 comments
Labels
enhancement 🌱 Feature requests that could make Chromebrew better if implemented, not a bug help wanted 🚑 Issues that Chromebrew developers don't know how to solve, or need help solving

Comments

@superloach
Copy link
Contributor

TiLP is a tool for transferring data to/from TI calculators, and would be useful to many students using Chromebooks, such as myself! I'd like to share my experiences trying to install it in Chrome OS, request assistance, and propose adding it to the Chromebrew repos once it's working.

Problems:

  • Automated installer fails
  • Automated installer fails as root
    • Complains about not being able to work in read-only directories.
    • Modifying SRCDIR to somewhere read/write just gives same errors as with no root.
    • Full output: https://pastebin.com/G7wLZZ0B
  • Build instructions are wrong
  • Guessed that autoconf configure.ac might do the trick

Possible issues once we get further:

  • Says it depends on GTK
    • Might be the issue with autoconf, said something about a KDE-related macro.
    • Compiled, TiLP can run with --no-gui.
    • Weston is in the works, and could help with this?

It seems like some editing of the installer script might make it work, but I have no clue where to start. I'm willing to dive much deeper into getting this working, but would love to have support from more experienced Cros "porters" 😝 Hope this won't be too hard to get working and into the repo!

TiLP Homepage: http://lpg.ticalc.org/prj_tilp/
TiLP Installer: http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh
TiLP Source: https://www.ticalc.org/pub/unix/tilp.tar.gz

@uberhacker uberhacker added enhancement 🌱 Feature requests that could make Chromebrew better if implemented, not a bug help wanted 🚑 Issues that Chromebrew developers don't know how to solve, or need help solving labels Jul 29, 2018
@uberhacker
Copy link
Collaborator

uberhacker commented Jul 30, 2018

@superloach: I went ahead and made an attempt to add this package in PR #2492 (depends on PR #2491). Since the GUI is still a work in progress, your mileage may vary. Please give it a go when you get a chance and let me know if you have any success. Feel free to post your results. This project is a great way to help move the GUI work along.

@superloach
Copy link
Contributor Author

superloach commented Jul 30, 2018

Awesome, thanks! I tried installing it, and it worked with just a little tweaking.

Everything compiled, but the TI libraries ended up in lib instead of lib64. I used sudo mv $(sudo find /usr/local/lib -name libti*.so.*) /usr/local/lib64/ to fix this.

After that TiLP would run properly, but still didn't work for my Nspire. 😕 I got the same errors as on my RPi, so I think that could just be a problem with my calc's OS version.

Thanks again for all the help, and I'm glad that it seems to at least be somewhat functional... I'll get back to you on actual transfer capabilities. 😅👍

Edit: I've reported my problems on Omnimaga and the TiLP GitHub, so hopefully this goes somewhere. 🤷‍♂️

@superloach
Copy link
Contributor Author

TiLP's dev told me that the --no-gui mode was slightly broken, so I'm going to try installing a DE on my Raspberry Pi later.

You were right about this being a good way to push along GUI work! 😂

@JL2210
Copy link
Contributor

JL2210 commented Jul 31, 2018

@superloach, do you want two versions of tilp? There is a tilp1 with a configure script that would be easier to install.

@debrouxl
Copy link

debrouxl commented Jul 31, 2018

The generated configure scripts were removed years ago from what became the tilibs and tilp_and_gfm repositories, because besides the fact that they take up a bit of space in the repository and clutter the diffs, IIRC, the main rationale was that some Linux distros patch their autotools, and what I generate on Debian does not necessarily suit all other distros.
IOW, any version of libticonv, libtifiles, libticables, libticalcs, gfm or tilp which has a configure script is ludicrously outdated, and nobody wants to use or package that - it's going to be years of features and bugfixes behind :)

@JL2210
Copy link
Contributor

JL2210 commented Aug 2, 2018

OK. How would you go about installing it now? With no make install, how would you do it?

@JL2210
Copy link
Contributor

JL2210 commented Aug 2, 2018

On your comment above: The /usr/local directory is owned by you if you have crew installed, so no need to use sudo.

@uberhacker
Copy link
Collaborator

@JL2210: Just so you know, the current tilp package installs correctly on x86_64 (lib files stored in /usr/local/lib64 instead of /usr/local/lib) and there are pre-built binaries so you won't need to recompile everything from the source. @superloach: Did you get a chance to try the recent package binary install yet?

@superloach
Copy link
Contributor Author

I did not yet, thanks for letting me know!

@superloach
Copy link
Contributor Author

@uberhacker: It seems to work just as it did before, thanks for getting that binary out!
Now the next step is GUI, so that TiLP will actually function. 😛

@JL2210
Copy link
Contributor

JL2210 commented Aug 4, 2018 via email

@JL2210
Copy link
Contributor

JL2210 commented Aug 7, 2018

Should be fixed by sommelier. Try sommelier -X tilp

@debrouxl
Copy link

debrouxl commented Aug 8, 2018

As I wrote in #2492 , a second step, once the dust of X support has settled (good work on that, I suppose :) ) would be to quit using the upstream install_tilp.sh targeting end users, and split the current tilp package into its constituents: libticonv, libtifiles, libticables, libticalcs, (gfm and) tilp. install_tilp.sh contains lots of checks and comments for end users, which are unneeded on any distro: packagers know their stuff.

All of the other package managers I know of rightfully choose to create one package per autotools definition. However, at first, if you find that 6 packages are too much, a good tradeoff is to split the current tilp package in two chunks: the 4 libti* on the one side, gfm + tilp on the other side. After I used the six former SVN repositories as a single Git repository for a while, tilibs + tilp_and_gfm is how I split the code in the end.
Splitting the libs from gfm + tilp would avoid reinventing the wheel if, some day, someone packages TilEm for Chromebrew.

@superloach
Copy link
Contributor Author

superloach commented Aug 8, 2018

Thanks for pointing out the issue of splitting the packages.
I am also totally blown away by how well Sommelier is working so far, I even got qemu running!

However, there still seem to be some issues with TiLP. It detects my nspire properly (woo!), but complains about libusb write permissions. I have a feeling @debrouxl may be the best to ask about this, I remember there being issues with usb permissions before.

Edit: The nspire only works on the blue usb 3, that might be a useful bit of info.

https://i.imgur.com/AU4eKci.png
https://i.imgur.com/eR1W5KX.png

@JL2210
Copy link
Contributor

JL2210 commented Aug 8, 2018 via email

@superloach
Copy link
Contributor Author

Awesome, thanks! Just wanted to let you know how my testing had gone so far :)

@JL2210
Copy link
Contributor

JL2210 commented Aug 8, 2018 via email

@debrouxl
Copy link

debrouxl commented Aug 8, 2018

Right before ending, install_tilp.sh prints the name of the file containing information about the one-time USB configuration required for running TILP without having to be root. On even remotely modern Linux distros, udev is the way to go.
The SCM version of that file is https://github.com/debrouxl/tilibs/blob/master/libticables/trunk/CONFIG .

@JL2210
Copy link
Contributor

JL2210 commented Aug 8, 2018 via email

@debrouxl
Copy link

Alright.
Sorry for the delay replying to this thread. My e-mail provider's anti-spam infrastructure suddenly found it smart to mark e-mail notifications for #2489 and #2520 as spam (sigh), and I failed to browse the spam box in the Web UI for a couple weeks.

@JL2210
Copy link
Contributor

JL2210 commented Aug 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌱 Feature requests that could make Chromebrew better if implemented, not a bug help wanted 🚑 Issues that Chromebrew developers don't know how to solve, or need help solving
Projects
None yet
Development

No branches or pull requests

4 participants