Help regarding development/scripting, troubleshooting or just general gameplay -- anything that hasn't already been answered in the Wiki or pinned FAQs.
[CC] camera.c -> camera.o
In file included from camera.c:29:
Client.h:28:23: error: enet/enet.h: No such file or directory
In file included from Client.h:29,
from camera.c:29:
Network.h:42: error: expected declaration specifiers or ‘...’ before ‘ENetEvent’
Network.h:185: error: expected specifier-qualifier-list before ‘ENetAddress’
Network.h:194: error: expected declaration specifiers or ‘...’ before ‘ENetEvent’
Network.h:221: error: expected specifier-qualifier-list before ‘ENetPeer’
Network.h:240: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Network.h:241: error: expected declaration specifiers or ‘...’ before ‘ENetPeer’
Network.h:250: error: expected specifier-qualifier-list before ‘ENetAddress’
Network.h:287: error: expected declaration specifiers or ‘...’ before ‘ENetPeer’
Network.h:305: error: expected specifier-qualifier-list before ‘ENetHost’
Network.h:375: error: expected specifier-qualifier-list before ‘ENetPacket’
Network.h:408: error: expected declaration specifiers or ‘...’ before ‘ENetEvent’
Network.h:409: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Network.h:410: error: expected declaration specifiers or ‘...’ before ‘ENetPeer’
In file included from Client.h:29,
from camera.c:29:
Network.h:412: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Network.h:413: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Network.h:414: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Network.h:418: error: expected ‘)’ before ‘*’ token
Network.h:419: error: expected ‘)’ before ‘*’ token
Network.h:421: error: expected declaration specifiers or ‘...’ before ‘ENetPeer’
Network.h:429: error: expected declaration specifiers or ‘...’ before ‘ENetPeer’
Network.h:434: error: expected ‘)’ before ‘*’ token
Network.h:435: error: expected ‘)’ before ‘*’ token
Network.h:447: error: expected ‘)’ before ‘*’ token
Network.h:450: error: expected ‘)’ before ‘*’ token
In file included from camera.c:29:
Client.h:76: error: expected specifier-qualifier-list before ‘ENetPeer’
Client.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Client.h:161: error: expected declaration specifiers or ‘...’ before ‘ENetEvent’
camera.c: In function ‘cam_move’:
camera.c:281: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:284: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:289: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:292: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:297: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:300: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:303: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:309: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:310: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:322: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:323: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:335: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:336: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:348: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:354: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:360: error: ‘struct sClient’ has no member named ‘loc_pla_count’
camera.c:365: error: ‘struct sClient’ has no member named ‘loc_pla_count’
make: *** [camera.o] Error 1
And when I try to run it like make -f ./game/Makefile.unix I get:
You need to makefile in the Egoboo directory and not just in the Game directory so that Egoboo compiles Enet as well? (Enet is a network library that Egoboo uses and requires to compile)
Zefz wrote:You need to makefile in the Egoboo directory and not just in the Game directory so that Egoboo compiles Enet as well? (Enet is a network library that Egoboo uses and requires to compile)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for EGOBOO... yes
checking for IMG_Load in -lSDL_image... yes
checking for Mix_Linked_Version in -lSDL_mixer... yes
checking for TTF_Linked_Version in -lSDL_ttf ... yes
configure: creating ./config.status
.in'ig.status: error: cannot find input file: `
Ok I've made a little progress.
When I do mkdir lib under enet it satisfies it and lets me make libenet.a.
So then I went back to 2.6.x and try make I get:
penguinflyer5234 wrote:both, usually.
But apparently you have the right header since egoboo_vfs.c compiled correctly, but not the library...
I'm pretty sure it only looks in /usr/lib but you should be able to add more places to look by adding -L(location) to LD_FLAGS before it says -lphysfs
I had to compile and install Physfs 2.0.1 because there are no builds for it currently on my distro.
And I added -L/usr/lib64 in front of -lphysfs and it seems to have compiled gonna try a make install and cross my fingers.
Ah welcome to the club! It seems most (all?) Linux users are having that problem at the moment. SDL is somehow not setting a video mode Linux likes. We still haven't figured out what this is!