Menu

#3 Compilation problem (makefile error in the examples folder)

open
nobody
None
5
2015-10-25
2015-10-25
ssinfod
No

Hello, I had some problem compiling "SDL Terminal 1.1.3".

First, I installed the following packages:
sudo apt-get install build-essential libgtk2.0-dev

Then, I tried to build the "SDL terminal" with "./configure" and then "make".

I had the following error:

../libtool: line 1820: cd: -/: invalid option
cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
libtool: link: cannot determine absolute directory name of `-L/usr/lib'
make[1]: *** [pyterm] Error 1
make[1]: Leaving directory `/home/dev/tmp/SDL_terminal-1.1.3/examples'
make: *** [all-recursive] Error 1

I was able to fix the problem by changing the makefile inside the examples folder. I edited the following line:

#pyterm_LDADD = ../src/libSDL_terminal.la  -lGL -lGLU -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -L-L/usr/lib -lz -lpthread -ldl  -lutil

versus:

pyterm_LDADD = ../src/libSDL_terminal.la  -lGL -lGLU -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -L/usr/lib -lz -lpthread -ldl  -lutil

The problem seems to be created by "-L-L" that was present twice.

If possible can you fix the makefile.

thanks,
ssinfod

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.