You are not logged in.

#1 2013-01-16 13:54:46

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

compile functy

Hi i'm using archlinux 32bit and trying to compile functy.

the compilation require first to compile symbolics and install it, and it work, but when is the functy turn I have this make error:

/usr/bin/ld: impossibile trovare -lglee

(that says that he can't find -lglee)

but I have the "glee" package installed

PS: I would like to know also why "pkg-config --libs glee" give this results:

Package glee was not found in the pkg-config search path.
Perhaps you should add the directory containing `glee.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glee' found

Offline

#2 2013-01-16 13:57:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: compile functy

From the AUR or freehand or...?

Offline

#3 2013-01-16 14:05:57

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

from source downloaded from the official website.

I didn't use AUR because:

1) the package is orphan
2) it doesn't compile anyway

Offline

#4 2013-01-16 14:28:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: compile functy

It looks like the glee package does not have a .pc file included.

Pass the object file manually.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-01-16 14:36:27

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

1) it's a BUG?
2) how can I do it?

Offline

#6 2013-01-16 16:46:53

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: compile functy

Where is "glee" installed? i.e. where is libglee.so on your system?

Offline

#7 2013-01-16 16:56:23

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

in /usr/lib/libGLee.so

Last edited by fabioamd87 (2013-01-16 16:57:09)

Offline

#8 2013-01-16 16:57:36

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: compile functy

Well, there's your problem. The build process is trying to link to libglee when it should be linking to libGLee.

Offline

#9 2013-01-16 20:24:25

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

I'm in contact with the developer (a very kind person), we've tried to add:

AC_SEARCH_LIBS([GLeeEnabled], [glee GLee], [], [])

in the functy/src/configure.ac
the zipball have been updated on sourceforge, but unfortunately another error occur:

/usr/bin/ld: ___functy-vis.o: undefined reference to symbol 'glLightfv'
/usr/bin/ld: note: 'glLightfv' is defined in DSO /usr/lib/libGL.so.1 so try adding it to the linker command line
/usr/lib/libGL.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [../functy] Errore 1
make[2]: Leaving directory `/home/fabio/Scaricati/functy-0.22/src'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/home/fabio/Scaricati/functy-0.22'
make: *** [all] Errore 2

can someone have a solution in order to modify the sources in order to make it compile on Debian based distro and ArchLinux too?

Thanks

Offline

#10 2013-01-17 02:28:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: compile functy

The error message says to add libGL to the linker line.  Did you do that?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2013-01-17 09:31:36

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

I don't know how to do it, and btw I've modified my question, I'm no more interested in compiling functy on archlinux but how to make it cross distro compilable:

http://packages.ubuntu.com/quantal/i386 … v/filelist
https://www.archlinux.org/packages/community/i686/glee/

as you can see ubuntu is not case sensitive but archlinux is, how to modify the makefile or something else?

Offline

#12 2013-01-17 12:34:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: compile functy

You don't know how to do something simple that is documented in the man page, so instead you want to do something complicated that has no obvious documentation?

The linker is case sensitive - this is not different in ubuntu and arch.  But for some reason the case of the object files differs in Ubuntu and arch for glee.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2013-01-17 14:14:24

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

is possible to make the program compile in ubuntu and in archlinux in the same way?

is this BUG related?

Offline

#14 2013-01-22 11:07:56

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: compile functy

make -l usr/lib/libGLee.so?

Offline

Board footer

Powered by FluxBB