PDA

View Full Version : PacmanEvolutions build errors



bvanevery
04-09-2013, 12:58 AM
ClanLib 3.0 SVN rev 9683

No Makefile on Linux, so I knocked up one. Attached, will need to be renamed.

precomp.h contains #include <ClanLib/vorbis.h>. Shouldn't.


g++ `pkg-config --cflags clanCore-3.0 clanDisplay-3.0 clanApp-3.0 clanGL-3.0 clanSWRender-3.0` -pthread -c age_ascii.cpp -o age_ascii.o
age_ascii.cpp:31:73: error: converting to execution character set: Invalid or incomplete multibyte or wide character
make: *** [age_ascii.o] Error 1
bvanevery@nomad:~/devel/ClanLib-3.0/Examples/Game/PacmanEvolutions$


g++ `pkg-config --cflags clanCore-3.0 clanDisplay-3.0 clanApp-3.0 clanGL-3.0 clanSWRender-3.0` -pthread -c program.cpp -o program.o
program.cpp: In static member function ‘static int Program::main(const std::vector<std::basic_string<char> >&)’:
program.cpp:18:2: error: ‘SetupVorbis’ is not a member of ‘clan’
program.cpp:18:20: error: expected ‘;’ before ‘setup_vorbis’
program.cpp:66:21: error: ‘class clan::DisplayWindow’ has no member named ‘get_hwnd’
program.cpp:66:130: error: ‘MB_OK’ was not declared in this scope
program.cpp:66:136: error: ‘MB_ICONERROR’ was not declared in this scope
program.cpp:66:148: error: ‘MessageBox’ was not declared in this scope
make: *** [program.o] Error 1

rombust
04-09-2013, 11:25 AM
Patch and fixes applied. Many thanks

bvanevery
04-09-2013, 03:23 PM
Now SetupSound is missing.

bvanevery@nomad:~/devel/ClanLib-3.0/Examples/Game/PacmanEvolutions$ make
g++ `pkg-config --cflags clanCore-3.0 clanDisplay-3.0 clanApp-3.0 clanGL-3.0 clanSWRender-3.0` -pthread age_2d.o age_3d.o age_ascii.o elapsed_timer.o game_object_ghost.o game_object_moving.o game_object_pacman.o game_world.o map.o precomp.o program.o text_explosion_2d.o text_explosion_ascii.o -o pacmanevolutions `pkg-config --libs clanCore-3.0 clanDisplay-3.0 clanApp-3.0 clanGL-3.0 clanSWRender-3.0`
program.o: In function `Program::main(std::vector<std::string, std::allocator<std::string> > const&)':
program.cpp:(.text+0x17a): undefined reference to `clan::SetupSound::SetupSound(bool)'
program.cpp:(.text+0x521): undefined reference to `clan::SetupSound::~SetupSound()'
program.cpp:(.text+0x7f7): undefined reference to `clan::SetupSound::~SetupSound()'
collect2: error: ld returned 1 exit status
make: *** [pacmanevolutions] Error 1
bvanevery@nomad:~/devel/ClanLib-3.0/Examples/Game/PacmanEvolutions$

rombust
04-09-2013, 03:46 PM
svn commit: Add clanSound to PacmanEvolutions/Makefile

bvanevery
04-09-2013, 05:59 PM
Yep that's that. Pacman Evolutions works in glorious GLSL 3.30 now.

Judas
04-09-2013, 06:03 PM
Actually strictly speaking it is using GLSL 3.2!

rombust
04-09-2013, 06:10 PM
Just change the "#version 330" to "#version 150" ;)