Author Topic: Problem compiling TILP (SOLVED)  (Read 4020 times)

0 Members and 1 Guest are viewing this topic.

Offline Smitty

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Problem compiling TILP (SOLVED)
« on: September 08, 2013, 10:52:15 am »
Hello again, everybody! Don't think I've posted here in a few years. All that time and I've still never gotten TILP working..
I was trying it again today, after discovering that 1.16 wouldn't properly connect to my NSpire (not really sure if this a problem with TILP itself or not, says file transfer with NSpire should work in that version) I decided I'd try their auto-build script for 1.17, as per instructions here. It runs for a good while, and then stops with this error message:
Code: [Select]
checking for ARCHIVE... no
configure: error: Package requirements (libarchive) were not met:

No package 'libarchive' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ARCHIVE_CFLAGS
and ARCHIVE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I'm running Ubuntu 13.04, and I do have libarchive13 installed, which is the only version in the repo's. Do I need a package simply named libarchive, or is there a way to set a variable to use libarchive13 instead? I'm not really sure how to use environment variables, so if that's the answer, instructions would be appreciated.  ;D
« Last Edit: September 08, 2013, 03:16:34 pm by Smitty »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Problem compiling TILP
« Reply #1 on: September 08, 2013, 11:02:57 am »
The instructions in that topic are outdated, that's all :)
The message duly displayed by the script at its very beginning is, however, correct:

Before proceeding further, make sure that you're ready to go (look inside the install script):
1) configured PREFIX and SRCDIR the way you wish
   (as well as CC and CXX if you're into using non-GCC compilers);
2a) if you're using 64-bit Fedora (or any distro which installs libraries to non-standard paths), added --libdir=/usr/lib64 to the marked line, or...
2b) configured PKG_CONFIG_PATH if necessary
3) installed the build dependencies listed in the script. Unless you're on Debian and derivatives, use libusb 1.0.
        For instance, on Debian and derivatives, you would run:
        (sudo) apt-get install git autoconf automake libtool libglib2.0-dev zlib1g-dev libusb-dev libgtk2.0-dev libglade2-dev libsdl1.2-dev gettext bison flex groff texinfo xdg-utils libarchive-dev intltool
Otherwise, the build will fail!.
ENTER to proceed, CTRL + C to abort.


Just install libarchive-dev and intltool :)
« Last Edit: September 08, 2013, 11:06:26 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Smitty

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: Problem compiling TILP
« Reply #2 on: September 08, 2013, 11:05:49 am »
Ah, I wrongly assumed that both lists were the same. Thanks for the tip, compiling now. :)

Edit: It works perfectly! Can't wait to try out everybody's programs.  ;D Maybe I'll get to writing my own someday.
« Last Edit: September 08, 2013, 03:16:13 pm by Smitty »