debrouxl / tilibs

TILP (formerly GtkTiLink) can transfer data between Texas Instruments graphing calculators and a computer. It works with all link cables (parallel, serial, Black/Gray/Silver/Direct Link) and it supports the TI-Z80 series (73..86), the TI-eZ80 series (83PCE, 84+CE), the TI-68k series (89, 92, 92+, V200, 89T) and the Nspire series (Nspire Clickpad / Touchpad / CX, both CAS and non-CAS)
http://lpg.ticalc.org/prj_tilp
63 stars 23 forks source link

libticables Compile error on Kubuntu 20.04 LTS #57

Closed foxler2010 closed 2 years ago

foxler2010 commented 2 years ago

Hello. I was searching around looking at ways to import programs to my TI-84+, and found webites pointing to TiLP as the best solution for connecting to my calculator via Linux.

I had downloaded the files from ticalc.org but they did not work very well. I browsed around for answers to the various errors at compile-time and had to enable many different options and things to get it to work. In the end after successfully compiling and installing everything I had used libticonv-1.1.5 thinking it was the right version; TiLP yelled at me about shared library versions being wrong and I was back to the beginning.

I found some info on the shared library error by reading some issues in https://github.com/debrouxl/tilp_and_gfm. I decided to uninstall everything and delete the source files, then clone it from GitHub instead of from ticalc.org. This would use the latest versions, like libticonv-1.1.6 instead of 1.1.5. The compiling and installing was going good and there were no errors for libticonv, but I have gotten an error for libticables in the "make" command phase of compiling and cannot find any documents concerning it anywhere. Attached is my output after running all the commands. The error is at the bottom at the end of the make command.

Here it is separated from the rest of the output:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICABLES_EXPORTS -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticables2_la-link_usb.lo -MD -MP -MF .deps/libticables2_la-link_usb.Tpo -c link_usb.cc  -fPIC -DPIC -o .libs/libticables2_la-link_usb.o
In file included from link_usb.cc:35:
linux/link_usb.cc: In function ‘int tigl_open(int, usb_dev_handle**)’:
linux/link_usb.cc:402:31: error: expected primary-expression before ‘)’ token
  402 |  *udh = usb_open((usb_device *)(tigl_devices[id].dev));
      |                               ^
linux/link_usb.cc: In function ‘int slv_open(CableHandle*)’:
linux/link_usb.cc:507:22: error: expected primary-expression before ‘)’ token
  507 |  uDev = (usb_device *)(tigl_devices[h->address].dev);
      |                      ^
make[3]: *** [Makefile:711: libticables2_la-link_usb.lo] Error 1
make[3]: Leaving directory '/home/user/Downloads/workspace/libticables/trunk/src'
make[2]: *** [Makefile:892: all-recursive] Error 1
make[2]: Leaving directory '/home/user/Downloads/workspace/libticables/trunk/src'
make[1]: *** [Makefile:498: all-recursive] Error 1
make[1]: Leaving directory '/home/user/Downloads/workspace/libticables/trunk'
make: *** [Makefile:407: all] Error 2

I am using Kubuntu 20.04 LTS and would prefer to manually compile everything, as so far the install script has not been working in my favor and I have gotten the most success typing the commands in myself. If there is a working solution with the script, though, I'm fine with it. Anything to run this program on my computer!

If anyone has info on how to solve this it would be greatly appreciated :)

-Foxler2010

output.txt

debrouxl commented 2 years ago

Thanks for the report :)

I can think of two things:

foxler2010 commented 2 years ago

Okay, been working all week. I'm going to check that libusb is set up correctly now.