...
error: GL/glew.h: No such file or directory
error: AL/al.h: No such file or directory
error: AL/alut.h: No such file or directory
...(several similar to the above)
source/de/hackcraft/object/cObject.h:246: error: ISO C++ forbids declaration of ‘i’ with no type
source/de/hackcraft/object/cObject.h:246: error: cannot convert ‘__gnu_cxx::__normal_iterator<rComponent**, std::vector<rComponent*, std::allocator<rComponent*> > >’ to ‘int’ in initialization
....
source/de/hackcraft/object/cObject.h:246: error: ISO C++ forbids declaration of ‘i’ with no type
source/de/hackcraft/object/cObject.h:246: error: cannot convert ‘__gnu_cxx::__normal_iterator<rComponent**, std::vector<rComponent*, std::allocator<rComponent*> > >’ to ‘int’ in initialization
# Project: Linwarrior 3D
# Makefile with auto-dependency generation
# Add Include directories here.
INCLUDES = -I source -I/Library/Frameworks/OpenAL.framework/Headers/ -I/opt/local/include/
# Automatic searching for source files.
# Objects to compile are all sources (cpp) and put the .o below build-dir.
OBJECTS=$(addprefix build/, $(subst .cpp,.o, $(wildcard source/*.cpp source/*/*.cpp source/*/*/*.cpp source/*/*/*/*.cpp source/*/*/*/*/*.cpp source/*/*/*/*/*/*.cpp) ) )
LIBRARIES= -L/Library/Frameworks/OpenAL.framework/ -L/opt/local/lib/ -lGLEW -lGLU -lSDL -lopenal -lalut
TARGET=dist/linwarrior
MKDIR=mkdir -p
RM=rm -f
RMREC=rm -f -r
CP=cp
CPP=c++
LIMITER=/
QUOTE=
#... rest stays the same
ln -s OpenAL AL
ln -s ./ AL
/Library/Frameworks/OpenAL.framework/Headers/AL/al.h:87:37: error: '<anonymous>' has incomplete type
/Library/Frameworks/OpenAL.framework/Headers/AL/al.h:87:44: error: invalid use of 'ALvoid'
...
/Library/Frameworks/OpenAL.framework/Headers/AL/al.h:87:37: error: '<anonymous>' has incomplete type
/Library/Frameworks/OpenAL.framework/Headers/AL/al.h:87:44: error: invalid use of 'ALvoid'
//... some lines after...
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147:120: error: format string argument not a string type
hc {l Wrote}:I've had a look at the header you've sent and what google spit out.
From that I'd say change line 87: ALAPI ALenum ALAPIENTRY alGetError( ALvoid );
To: ALAPI ALenum ALAPIENTRY alGetError();
Ie. ALvoid removed
Or to: ALAPI ALenum ALAPIENTRY alGetError( void );
hc {l Wrote}:What's the point in using ALvoid anyway???
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:0,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
from mOpenAL.framework/Headers/AL/alut.h:27,
from source/de/hackcraft/object/cObject.h:37,
from source/de/hackcraft/comp/rWeapon.h:14,
from source/de/hackcraft/main.h:17,
from source/de/hackcraft/main.cpp:3:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147:120: error: format string argument not a string type
source/de/hackcraft/main.cpp: In static member function 'static int cMain::run(int, char**)':
source/de/hackcraft/main.cpp:771:43: error: 'alutInitWithoutContext' was not declared in this scope
source/de/hackcraft/main.cpp:777:65: error: 'ALUT_LOADER_BUFFER' was not declared in this scope
source/de/hackcraft/main.cpp:777:83: error: 'alutGetMIMETypes' was not declared in this scope
source/de/hackcraft/main.cpp:778:67: error: 'ALUT_LOADER_MEMORY' was not declared in this scope
source/de/hackcraft/main.cpp:790:63: error: 'alutCreateBufferFromFile' was not declared in this scope
source/de/hackcraft/main.cpp:945:50: error: 'alutSleep' was not declared in this scope
source/de/hackcraft/main.cpp: In function 'int SDL_main(int, char**)':
In file included from mOpenAL.framework/Headers/AL/alc.h:4:0,
from source/de/hackcraft/main.cpp:17:
mOpenAL.framework/Headers/AL/altypes.h:57:22: error: conflicting declaration 'typedef unsigned int ALsizei'
/System/Library/Frameworks/OpenAL.framework/Headers/al.h:74:13: error: 'ALsizei' has a previous declaration as 'typedef int ALsizei'
In file included from mOpenAL.framework/Headers/AL/alc.h:5:0,
from source/de/hackcraft/main.cpp:17:
mOpenAL.framework/Headers/AL/alctypes.h:58:22: error: conflicting declaration 'typedef unsigned int ALCsizei'
LIBRARIES= -framework Cocoa -framework OpenGL -L/opt/local/lib/ -lSDLmain -lSDL -lGLEW -lGLU -framework OpenAL -framework Alut
TARGET=dist/linwarrior
MKDIR=mkdir -p
RM=rm -f
RMREC=rm -f -r
CP=cp
# CPP=c++
CPP=/opt/local/bin/g++-mp-4.5
LIMITER=/
QUOTE=
# Adding dummy macro
CFLAGS += -DKNT=1
#include <GL/glew.h>
#ifdef KNT
#include <OpenAL/al.h>
#include <ALUT/alut.h>
#else
#include <AL/al.h>
#include <AL/alut.h>
#endif
#ifdef KNT
#include <OpenAL/alc.h>
#include <ALUT/alut.h>
#else
#include <AL/alc.h>
#ifndef __WIN32
#include <AL/alext.h>
#endif
#include <AL/alut.h>
#endif
Users browsing this forum: No registered users and 1 guest