You are not logged in.

#1 2015-06-30 13:43:15

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

[SOLVED]Cannot Compile blobandconquer(game)

Hello everyone.

I want to play Blob Wars in my Arch PC. But the AUR package is Flagged out-of-date (2013-07-24) . So I downloaded the source from this site.

After extracting and issuing

$ make

I got following error:

/usr/bin/ld: /usr/lib/libGL.so: undefined reference to symbol 'XGetVisualInfo'
/usr/lib/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
makefile:99: recipe for target 'blobAndConquer' failed
make: *** [blobAndConquer] Error 1

After that I searched web to solve this error and came across this post but could not well understood how to implement it in my case as I have nearly no knowledge regarding linking libraries. So if someone could help me solve this error by providing step-by-step instructions, it will be very helpful.

Last edited by nlern (2015-07-03 07:27:36)

Offline

#2 2015-06-30 14:29:48

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: [SOLVED]Cannot Compile blobandconquer(game)

First, Check if you have those dependencies (according to aur package, added lib32 equivalent just in case)...

pacman -S mesa sdl_image sdl_mixer sdl_ttf lib32-mesa lib32-sdl_image lib32-sdl_mixer lib32-sdl_ttf

Offline

#3 2015-06-30 15:22:12

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED]Cannot Compile blobandconquer(game)

@Malkymder, Yes I've all x64 dependencies although I have not installed 32 bits.

Last edited by nlern (2015-06-30 15:54:22)

Offline

#4 2015-07-02 09:03:55

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED]Cannot Compile blobandconquer(game)

I did a little advancement regarding this.

I added -lX11 to LIBS in makefile.

Now I get following error:

g++  -Wformat=2 -Wformat-security -Wstrict-aliasing=2 -Wmissing-format-attribute -Wmissing-noreturn -Wdisabled-optimization `sdl-config --cflags` -DVERSION=1.11 -DRELEASE=1 -DUSEPAK=0 -DDEV=0 -DPAKNAME=\"blobAndConquer.pak\" -DPAKLOCATION=\"/usr/share/games/blobAndConquer/\" -DGAMEPLAYMANUAL=\"/usr/share/doc/blobAndConquer//index.html\" -Wall -pedantic -DLOCALEDIR=\"/usr/share/locale/\" -g -c src/pak.cpp
src/pak.cpp: In function ‘void recurseDirectory(char*)’:
src/pak.cpp:128:16: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘gzFile {aka gzFile_s*}’ for argument ‘1’ to ‘int gzclose(gzFile)’
     gzclose(pak);
                ^
src/pak.cpp:160:16: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘gzFile {aka gzFile_s*}’ for argument ‘1’ to ‘int gzclose(gzFile)’
     gzclose(pak);
                ^
makefile:95: recipe for target 'pak.o' failed
make: *** [pak.o] Error 1

But interestingly I also get blobAndConquer named executible in the same directory and can play the game(with some black screns).

Can anyone help me solve this error?

Last edited by nlern (2015-07-02 09:04:49)

Offline

#5 2015-07-03 07:27:10

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED]Cannot Compile blobandconquer(game)

I cloned this git repository, then compiled the source and after successful compilation got 0.7 version binary of the game. It had textures unlike the previous (latest) one. So I copied the binary and texture files to latest ones directory and there the 0.7 binary ran successfully with sounds and textures. So my problem is solved!

Offline

Board footer

Powered by FluxBB