bugTechne - Bugs: bug #28270, problems installing techne

 
 

bug #28270: problems installing techne

Submitted by:  None
Submitted on:  Sat 12 Dec 2009 07:13:53 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 14 Dec 2009 08:16:51 AM UTC, comment #1:

Hi,

I assume you had to define environment variables because Fedora is missing pkg-config files for lua and openal. The problem is you're not defining these correctly. These variables need to be set to the switches needed by the compiler in order to find the libraries and header files.

I'm not sure what the correct values are for Fedora but I can give you some hints. Regarding *_LIBS variables: these need to specify two switches. -L tells the compiler where to look for the library and -l what library to load. So if you find liblua.so.1 inside /usr/lib/lua/5.1/ you'd need to specify the following:

setenv LUA_LIBS "-L/usr/lib/lua/5.1/ -llua"

Generally a library called libfoo.so.x.y is specified as -lfoo to the compiler. Regarding the *_CFLAGS variables: these generally need to specify paths to look for header files. So if during compilation gcc complains that it can't find lauxlib.h and you find it to be inside /usr/include/lua/5.1 you'd need to specify:

setenv LUA_CFLAGS "-I/usr/include/lua/5.1"

Same rules apply for OpenAL. The LUAC variable finally needs to be set to the Lua 5.1 compiler binary. So if this is located say in /usr/bin/ and is called luac then you need to set LUAC to:

setenv LUAC /usr/bin/luac

That's more or less it. It's a pain, I know but with a little fiddling you'll work it out. Let me know if you get stuck again.

Dimitris Papavasiliou <dpapavas>
Project Administrator
Sat 12 Dec 2009 07:13:53 PM UTC, original submission:

Hello

Im having problems installing techne

first off, Im using fedora 11(Leonidas):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[aevar@stofa techne-0.1]$ echo $SHELL
/bin/tcsh

[aevar@stofa techne-0.1]$ uname -a
Linux stofa.m3u 2.6.30.9-102.fc11.i586 #1 SMP Thu Dec 3 23:46:37 EST 2009 i686 i686 i386 GNU/Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I was trying to install a billiards game...

I used tar xvf on the 3 tar files in .../One-20100-GNOME/Games/Billiards/

Then I ran./configure on the billiards game :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@stofa billiards-0.3]# pwd
/samansafn/bin/billiards-0.3
[root@stofa billiards-0.3]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for techne... no
configure: error:
You need to have a working installation of Techne in order to install
Billiards. You can get Techne at:

http://savannah.nongnu.org/projects/techne/

[root@stofa billiards-0.3]#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So after getting and extracting the techne tar file I went to the techne extracted path and did a few things there :

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[aevar@stofa techne-0.1]$ setenv LUA_LIBS /usr/lib/lua/5.1/
[aevar@stofa techne-0.1]$ setenv LUA_CFLAGS /usr/lib/lua/5.1/
[aevar@stofa techne-0.1]$ setenv LUAC /usr/lib/lua/5.1/
[aevar@stofa techne-0.1]$ setenv OPENAL_CFLAGS /usr/lib/
[aevar@stofa techne-0.1]$ setenv OPENAL_LIBS /usr/lib/
[aevar@stofa techne-0.1]$ pwd
/home/aevar/Download/techne-0.1
[aevar@stofa techne-0.1]$ ./configure
...
...
{omitted readout}
...
...
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for clock_gettime... no
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating common/Makefile
config.status: creating src/techne
config.status: WARNING: 'src/techne.in' seems to ignore the --datarootdir setting
config.status: executing depfiles commands
[aevar@stofa techne-0.1]$

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and I went on to type in make install:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@stofa techne-0.1]#make install
Making install in src
make[1]: Entering directory `/home/aevar/Download/techne-0.1/src'
gcc -DPACKAGE_NAME=\"techne\" -DPACKAGE_TARNAME=\"techne\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"techne\ 0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"techne\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRDUP=1 -x objective-c -include common.h -D_GNU_SOURCE -DGL_GLEXT_PROTOTYPES -DPKGDATADIR='"/usr/local/share/techne"' -DPKGLIBDIR='"/usr/local/lib/techne"' -Wall -pthread -pthread /usr/lib/lua/5.1/ /usr/lib/ /usr/lib/ -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
gcc: cannot specify -o with -c or -S with multiple files
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/aevar/Download/techne-0.1/src'
make: *** [install-recursive] Error 1
[root@stofa techne-0.1]#

any ideas ?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dpapavas (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 01 Feb 2010 05:27:52 PM UTCdpapavasOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1