LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2015, 12:51 PM   #1
Bernt.Ribbum
Member
 
Registered: Aug 2011
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 1
Question Problem linking foobillardplus - missing library


Hi all,

I'm running Ubuntu 15.04 and try to compile foobillardplus from the sourceforge sources. I want to improve the game somewhat if I can manage. But I end up with a missing NVIDIA library. The offending symbols are glCombinerParameteriNV and similar.

The program CAN be compiled without these functions, but the performance suffers enough to make it unplayable in that case.

Fiddling a bit with it, I found this command line ALMOST working:

bernt@puta:~/projects/foobillard-2.9/src$ gcc -Wall `freetype-config --cflags` `sdl-config --cflags` -DUSE_SDL -DUSE_SOUND -g -O2 -o foobillard billard3d.o billmove.o billard.o vmath.o ball.o png_loader.o table.o queue.o aiplayer.o options.o evaluate_move.o helpscreen.o textobj.o font.o sys_stuff.o net_socket.o sound_stuff.o menu.o bumpref.o -lSM -lICE -lGL -lGLU -lXaw -lm -lXi -lpng -lfreetype -lz -lpng12 -lSDL

I have tried all the NVIDIA related libs I can find, but no. Especially, adding -lCg -lCgGL to the command does not help (yes, these libs are installed and present on my system).

I'm now out of options and turn to this place to see if I can get help. Any idea which (proprietary?) library supplies the gl* functions?

Any help greatly appreciated!
 
Old 04-28-2015, 02:29 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,630

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
i take it you never bothered reading the README file in the source tarbal
"foobillardplus-3.42beta.tar.gz"

to quote it !!!
Quote:
BUILDING:
---------

Building for soundsupport and no Nvidia-related specs are standard.
Please don't use enable-nvidia (it's only for testing.....)
A build for more generic cards is in progress.

For compilation from source you need the gnu autoconf and automake packages.
After unpacking the sourceball change to the foobillardplus directory and
type the follwing commands.

aclocal --force
autoconf -f
autoheader -f
automake -a -c -f

simply type in main-directory (for standard-installation):

./configure
make
make install
from this
Quote:
gcc -Wall `freetype-config --cflags` `sdl-config --cflags` -DUSE_SDL -DUSE_SOUND -g -O2 -o foobillard billard3d.o billmove.o billard.o vmath.o ball.o png_loader.o table.o queue.o aiplayer.o options.o evaluate_move.o helpscreen.o textobj.o font.o sys_stuff.o net_socket.o sound_stuff.o menu.o bumpref.o -lSM -lICE -lGL -lGLU -lXaw -lm -lXi -lpng -lfreetype -lz -lpng12 -lSDL
it looks like you are just randomly tossing things at it

not good


that is one WAY WAY WAY!!! TOO LONG of a build line , filled with what looks like a lot of random stuff

this can be shrank down to
Code:
autoreconf -iv 
./configure --prefix=/usr
you SHOULD get a output that looks something like this
Code:
  CC:                       gcc
    CFLAGS:                   
    LDFLAGS:                  

    Install path:             /usr/foobillardplus
    Binary dir:               /usr/foobillardplus/bin
    Data rootdir:             /usr/foobillardplus/data
    Data dir:                 /usr/foobillardplus/data
    Locale dir:               /usr/foobillardplus/data/locale
    Doc dir:                  /usr/foobillardplus/data/locale

    Debug flags:              
    Optimization flags:       
    Mathsingle precision:     yes
    Sound compiling:          yes
    Generic Touchdevice:      no
    WeTab Tablet compiling:   no
    Network compiling:        yes
    use sse                   no
    fast math routines        yes

Now run make ...
then fallow this on screen instructions
Code:
make
then
Code:
su -

make install
 
Old 04-28-2015, 03:31 PM   #3
Bernt.Ribbum
Member
 
Registered: Aug 2011
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 1
Thanks John, and sorry for the untimely intrusion. My problem was that I had managed to download the original foobillard, NOT the plus version. The make system is broken in the version I downloaded, that's why I had to tweak the link statement the way I did to get anything done at all. The README file that I found (and did read!) said nothing.

Next time I'll make sure I download what I look for at least.

Cheers
 
Old 04-28-2015, 09:22 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,630

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
some tips

if there are autotools config files
things like
"acinclude.m4"
"aclocal.m4"
"configure.ac"
and so on

you can rebuild the "configure" file with
Code:
autoreconf -iv
then you can run "configure" to recreate the "Makefile"
 
Old 04-29-2015, 11:11 AM   #5
Bernt.Ribbum
Member
 
Registered: Aug 2011
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 1
Thanks John. I only have a passing knowledge of the GNU make system, and no experience in using it (other than ./configure + make + make install). But the interest is there, and I'm happy you are willing to talk to me. Now I just need to find time and energy to figure out for example what SDL_net.h is all about, and off I go. Eventually. In the meantime I watch snooker on TV - a good time of year this :-)

Thanks again!

- Bernt
 
  


Reply

Tags
compile, foobillardplus, library, linking, nvidia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Library linking problem GGoysens Linux - Newbie 2 07-31-2014 08:57 AM
[SOLVED] ./configure problem for libsf library due to apparently missing libdb library. vectrum Linux - Software 6 08-05-2011 02:11 PM
Library Linking problem IronBeagle Linux - Software 3 02-14-2006 12:10 PM
Still library linking problem The_Nerd Programming 19 05-20-2004 04:08 PM
Library linking problem The_Nerd Programming 10 04-26-2004 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration