Home
News
Features
Games
Authoring
Community
Forums
About
Contact
May 18, 2013, 06:01:45 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
AD Forums
>
Authoring
>
SLUDGE
> Topic:
Sludge Compilation failing on Ubuntu.
Pages: [
1
]
2
« previous
next »
Print
Author
Topic: Sludge Compilation failing on Ubuntu. (Read 2001 times)
Spummy
Newbie
Offline
Posts: 8
Sludge Compilation failing on Ubuntu.
«
on:
January 01, 2011, 04:33:32 PM »
Hey, as a long time Adventure game fan and Linux user it was awesome to hear about the porting of Sludge to Lin. And unfortunately my excitement has been defeated by a compilation error, whenever I try to run make, I get:
Code:
backdrop.o: In function `mixHSI(_IO_FILE*, int, int)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1294: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1296: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1307: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1308: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1309: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1310: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
backdrop.o: In function `loadHSI(_IO_FILE*, int, int, bool)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1064: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1066: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1077: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1078: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1079: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/backdrop.cpp:1080: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
sprites.o: In function `fixScaleSprite(int, int, sprite&, spritePalette const&, onScreenPerson*, int, int, bool)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:804: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:806: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:873: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:873: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:874: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:874: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:875: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
sprites.o:/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:875: more undefined references to `GLeeFuncPtr_glMultiTexCoord2f' follow
sprites.o: In function `fixScaleSprite(int, int, sprite&, spritePalette const&, onScreenPerson*, int, int, bool)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:798: undefined reference to `GLeeFuncPtr_glActiveTexture'
sprites.o: In function `scaleSprite(sprite&, spritePalette const&, onScreenPerson*, bool)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:705: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:706: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:707: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:713: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:710: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
sprites.o:/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:711: more undefined references to `GLeeFuncPtr_glMultiTexCoord2f' follow
sprites.o: In function `scaleSprite(sprite&, spritePalette const&, onScreenPerson*, bool)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:665: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:668: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:721: undefined reference to `GLeeFuncPtr_glActiveTexture'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:723: undefined reference to `GLeeFuncPtr_glActiveTexture'
sprites.o: In function `pasteSpriteToBackDrop(int, int, sprite&, spritePalette const&)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:393: undefined reference to `GLeeFuncPtr_glActiveTexture'
sprites.o:/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:395: more undefined references to `GLeeFuncPtr_glActiveTexture' follow
sprites.o: In function `pasteSpriteToBackDrop(int, int, sprite&, spritePalette const&)':
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:406: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:407: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:408: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
/home/XXXXXX/Downloads/sludge-2.0/source/Engine/sprites.cpp:409: undefined reference to `GLeeFuncPtr_glMultiTexCoord2f'
Which appears to be complaining that I don't have libglee installed. Which I do, I grabbed the ones listed at packages.ubuntu.com. Any idea what could be going wrong?
Logged
BigMc
SLUDGE Linux/GTK+ Maintainer
Sr. Member
Offline
Posts: 266
Re: Sludge Compilation failing on Ubuntu.
«
Reply #1 on:
January 01, 2011, 04:38:01 PM »
Hi and welcome to the forum!
Are you sure you installed both glee packets? The library and the development one are required.
Regards, BigMc
Logged
Spummy
Newbie
Offline
Posts: 8
Re: Sludge Compilation failing on Ubuntu.
«
Reply #2 on:
January 01, 2011, 09:13:10 PM »
Yes. Both are installed. (Thankfully I'm not that hopeless.
)
Logged
Trumgottist
Maker of SLUDGE
Longtime Member
Offline
Gender:
Posts: 1160
Re: Sludge Compilation failing on Ubuntu.
«
Reply #3 on:
January 02, 2011, 05:18:06 AM »
I don't know anything about Linux (that's BigMc's area), but those errors mean that the linker can't find the Glee functions, so Glee isn't properly installed. glee.lib isn't found. Try feeding the linker the path to it manually. (No, I don't know how to do that on Linux.)
Logged
"Programming is the computer game that makes all others possible."
- Ron Newcomb
BigMc
SLUDGE Linux/GTK+ Maintainer
Sr. Member
Offline
Posts: 266
Re: Sludge Compilation failing on Ubuntu.
«
Reply #4 on:
January 02, 2011, 05:32:52 AM »
GLee is found, but I think there are GL extensions missing or something like that. Which graphics card do you have? Is the correct driver installed? If you have a Nvidia or ATI card the drivers with 3d acceleration may not be installed by default.
Logged
Trumgottist
Maker of SLUDGE
Longtime Member
Offline
Gender:
Posts: 1160
Re: Sludge Compilation failing on Ubuntu.
«
Reply #5 on:
January 02, 2011, 07:05:41 AM »
Would that change things at the linking stage? On Windows that wouldn't bean issue until you'd try to run the program. But I don't know Linux, so you may be right. What I do know is that the linker can't find the functions that should exist in glee.lib (if that's how you include GLee, but as you're talking about installing it, I assume that's the case).
It seems like the opposite problem to me.
Did you compile GLee yourself, or did you download a precompiled library? After looking at the GLee sources, I think that may be a possible cause of your problem - your compiling environment doesn't mach the one that compiled GLee.lib. If I'm right, compiling it yourself or including GLee.c in the SLUDGE project instead of linking to glee.lib should fix the problem.
Logged
"Programming is the computer game that makes all others possible."
- Ron Newcomb
BigMc
SLUDGE Linux/GTK+ Maintainer
Sr. Member
Offline
Posts: 266
Re: Sludge Compilation failing on Ubuntu.
«
Reply #6 on:
January 02, 2011, 07:36:36 AM »
When I remove the GLee library, a whole bunch of other functions have undefined references. Here only two functions provided by OpenGL extensions are not found. The purpose of GLee is to resolve OpenGL extension functions, so I think it tries to reference it to the driver where the extension is not found.
What is your Ubuntu version Spummy?
Logged
NigeC
Guest
Re: Sludge Compilation failing on Ubuntu.
«
Reply #7 on:
January 02, 2011, 08:09:17 AM »
Which version of alure should it be? in the docs it says version 1.0 but in console you get version 1.1 installed: no
Ubuntu have taken a load of stuff out of 10.10 and stopped supporting them, it was a nightmare getting Thea to work again after upgrading
I'm no Linux expert, I use it mainly to beta test Thea and the Blender plugins, but in that respect its a fairly clean build apart from libglitz which wasn't avaiable
Logged
BigMc
SLUDGE Linux/GTK+ Maintainer
Sr. Member
Offline
Posts: 266
Re: Sludge Compilation failing on Ubuntu.
«
Reply #8 on:
January 02, 2011, 08:34:13 AM »
You need the git-version of alure or version 1.1 once it's released. Where did it say version 1.0 in the docs?
Logged
NigeC
Guest
Re: Sludge Compilation failing on Ubuntu.
«
Reply #9 on:
January 02, 2011, 09:45:51 AM »
its ok it was me being a d*ck
anyway I'm failing dismally compiling the dev kit, I've attached the console output, the other libs were installed earlier:
http://nigecstudios.co.uk/wp-content/uploads/2011/01/output.zip
Logged
BigMc
SLUDGE Linux/GTK+ Maintainer
Sr. Member
Offline
Posts: 266
Re: Sludge Compilation failing on Ubuntu.
«
Reply #10 on:
January 02, 2011, 11:22:57 AM »
There's still a problem with alure. I think Deirdra also had a problem when she first installed Alure from the repository. Remove the packages
Code:
sudo apt-get remove libalure-dev libalure1
Then hopefully it will try to link to alure 1.1. Before sludge-engine will run you probably also have to run
Code:
sudo ldconfig
to update the run-time linker cache (so that it can find the manually installed alure). Did you see the
compiling instructions for Ubuntu
? They're nicer than the INSTALL file.
Logged
NigeC
Guest
Re: Sludge Compilation failing on Ubuntu.
«
Reply #11 on:
January 02, 2011, 12:56:28 PM »
That's the instructions I used.
Ok I will try what you said and see what happens
Logged
NigeC
Guest
Re: Sludge Compilation failing on Ubuntu.
«
Reply #12 on:
January 02, 2011, 03:51:13 PM »
that sorted it thanks
Logged
Spummy
Newbie
Offline
Posts: 8
Re: Sludge Compilation failing on Ubuntu.
«
Reply #13 on:
January 02, 2011, 05:06:09 PM »
I'm using Ubuntu 10.04, but was using some 10.10 debs for it (So that may have made it upset). I'm using the proprietary NVidia drivers for my 9800GT. And have just managed to make it compile in a kind of lazy way.
I got the glee source and self compiled. but then the configure script in Sludge complained that it could no longer find glee.h. Too lazy to figure out how and where that should be, I copy-pasted glee.h and glee.c in the two sludge directories I found that needed them, and it compiled.
Messy, but it worked. But for future reference, how should I install glee.h?
Logged
BigMc
SLUDGE Linux/GTK+ Maintainer
Sr. Member
Offline
Posts: 266
Re: Sludge Compilation failing on Ubuntu.
«
Reply #14 on:
January 02, 2011, 05:13:20 PM »
I'm using the Ubuntu 10.10 debs on Ubuntu 9.10. Don't know why it didn't work for you.
Logged
Pages: [
1
]
2
Print
AD Forums
>
Authoring
>
SLUDGE
> Topic:
Sludge Compilation failing on Ubuntu.
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Adventure Gaming
-----------------------------
=> Adventure-related talk
=> Hints, walkthroughs, and troubleshooting
-----------------------------
Authoring
-----------------------------
=> Development support
=> Work in progress
=> Wanted/Offered: Help!
=> SLUDGE
-----------------------------
General
-----------------------------
=> Chit chat
=> News comments
=> Feature comments
=> Website support
Loading...
Unauthorised reproduction of anything on this website is not allowed without our written consent.
Materials on this site are the property of their respective owners. Copyright © Adventure Developers. All rights reserved.