Technical support > Windows
Compilation Errors - Radiant Related
geever:
--- Quote from: odie on August 18, 2009, 07:54:26 am ---Mine was : soundplayer.h file generating many strange declarations not found.....
Still cant resolve this as of this morning. -.-
Sigh.
Anyone who can help?
--- End quote ---
That is the missing openAL lib. Links on IRC log.
-geever
RudolfoWood:
another idea (don't know whether geevers hint helped): you'll need vorbisfile, vorbis and ogg libraries during linking - I updated codeblocks sound project file on saturday. perhaps something more is missing. please attach last lines of compile log.
odie:
Hihi,
Thanks geever for the IRC logs. Made more progress.
Summary of what i have done:
* Got the file from "http://mattn.ninex.info/download/openal.zip"
* Unzipped it and transferred contents to respective folders.
* Namely - include/AL whole folder to the /Codeblocks Folder/MingGW/include/AL
* /lib contents which includes only libopenal32.a to /Codeblocks Folder/MingGW/lib
* and lastly pkgconfig which includes only openal.pc to /Codeblocks Folder/MinGW/lib/pkgconfig
Couple of warnings along the way, which are ok i believe, until it reaches 2 lines with error.
The error now boils down to another c file.
The error codes states that
--- Code: ---.objs\radiant_sound\src\tools\radiant\libs\gtkutil\timer.o:C:/SVN Update/src/tools/radiant/libs/gtkutil/timer.cpp:46: undefined reference to `gtk_timeout_add'
.objs\radiant_sound\src\tools\radiant\libs\gtkutil\timer.o:C:/SVN Update/src/tools/radiant/libs/gtkutil/timer.cpp:54: undefined reference to `gtk_timeout_remove'
collect2: ld returned 1 exit status
Creating library file: ..\..\radiant\modules\libsound.dll.a
Process terminated with status 1 (4 minutes, 12 seconds)
2 errors, 4 warnings
--- End code ---
The exact lines from the files i have copied and pasted here....
--- Code: --- // Starts the timer and saves the handler id locally
void Timer::enable ()
{
if (_timerID == 0) {
_timerID = gtk_timeout_add(_timeout, _callback, _data);
}
}
// Disables the timer and resets the handler ID
void Timer::disable ()
{
if (_timerID != 0) {
gtk_timeout_remove(_timerID);
_timerID = 0;
}
}
--- End code ---
Full log here:
(Too Long, see attached txt file)
Any help pls? Thanks. :D
odie:
Hi,
I updated to today's 25738 and recompiled my workspace.
New Errors are: (Now stopped elsewhere)
--- Code: ---Linking executable: ..\..\radiant\uforadiant.exe
Warning: resolving _glGetString by linking to _glGetString@4
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _glGetIntegerv by linking to _glGetIntegerv@8
.objs\radiant\src\tools\radiant\radiant\qgl.o: In function `Z18QGL_assertNoErrorsv':
C:/SVN Update/src/tools/radiant/radiant/qgl.cpp:316: undefined reference to `glGetError'
C:/SVN Update/src/tools/radiant/radiant/qgl.cpp:325: undefined reference to `glGetError'
collect2: ld returned 1 exit status
Process terminated with status 1 (10 minutes, 12 seconds)
2 errors, 14 warnings
--- End code ---
From these codes:
--- Code: ---void QGL_assertNoErrors() {
GLenum error = glGetError();
while (error != GL_NO_ERROR) {
const char* errorString = reinterpret_cast<const char*>(qgluErrorString(error));
if (error == GL_OUT_OF_MEMORY) {
ERROR_MESSAGE("OpenGL out of memory error: " << errorString);
} else {
ERROR_MESSAGE("OpenGL error: " << errorString);
}
error = glGetError();
}
}
--- End code ---
Anyone for advise pls?
RudolfoWood:
update - this error was fixed in rev. 25740.
Perhaps you have to do a clean build.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version