The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
libvorbis - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: libvorbis (/showthread.php?tid=757)

Pages: 1 2 3 4


libvorbis - joevenzon - 08-19-2007

I'm adding music support to VDrift with libvorbis. In the vdrift/SConstruct file I added vorbis/vorbisfile.h to the check_headers list. In vdrift/src/Sconscript I added vorbisfile to the common_libs list. Please modify/add as necessary to make it work for your platforms.


- joevenzon - 08-19-2007

Checked in, R1815.


- cotharyus - 08-20-2007

This has horribly broken the OS X build.

CompileC /Users/lauasanf/code/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o /Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/lauasanf/code/vdrift/tools/osx
/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -g -O3 -fmessage-length=0 -mtune=G4 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -I/Users/lauasanf/code/build/vdrift.build/Release-Deployment/vdrift.build/vdrift.hmap -mdynamic-no-pic -F/Users/lauasanf/code/build/Release-Deployment -F/Users/lauasanf/code/vdrift/tools/osx -I/Users/lauasanf/code/build/Release-Deployment/include -I../../include -ISDL.framework/Headers -Iode.framework/Headers -I/Users/lauasanf/code/build/vdrift.build/Release-Deployment/vdrift.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/pch-dxcmspvacvznjgafiylecvgkkmhx/pch.h -c /Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp -o /Users/lauasanf/code/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:10:31: error: vorbis/vorbisfile.h: No such file or directory
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp: In member function 'void SOUNDBUFFER::LoadOGG(const std:Confusedtring&, const SOUNDINFO&)':
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:792: error: 'vorbis_info' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:792: error: 'pInfo' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:793: error: 'OggVorbis_File' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:793: error: expected `;' before 'oggFile'
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:795: error: 'oggFile' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:795: error: 'ov_open' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:797: error: 'ov_info' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:800: error: 'ov_pcm_total' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:814: error: 'ov_clear' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:830: error: 'ov_read' was not declared in this scope
/Users/lauasanf/code/vdrift/tools/osx/../../src/sound.cpp:838: error: 'ov_clear' was not declared in this scope


Anyone got recommendations or a quick fix for this? If it's something that's going to take some time, I've still got a couple of recent working versions laying around.


- xTs - 08-20-2007

you're missing the headers of libvorbis

../src/sound.cpp:10:31: error: vorbis/vorbisfile.h: No such file or directory


- cotharyus - 08-20-2007

I'm assuming that would be because libvorbis was not installed on that system?


- cotharyus - 08-20-2007

ok, I've got two versions of libvorbis on this system:

spider: root# find / -name vorbisfile.h
/opt/local/include/vorbis/vorbisfile.h
/opt/local/var/macports/software/libvorbis/1.1.2_0/opt/local/include/vorbis/vorbisfile.h
/usr/local/include/vorbis/vorbisfile.h


apparently #include <vorbis> != /usr/local/include || /opt/local/include on OS X. Anyone want to whip up an ifdef for this?


- joevenzon - 08-21-2007

I think the proper way to do this is to add /usr/local/include to the include path that's passed to your compiler, which would look like -I/usr/local/include

It should go somewhere in the SConstruct file, I think, but I'm not sure exactly where....


- cotharyus - 08-21-2007

Ok - I'm pretty new to this whole OSX thing, so I'll take a look at it. It might be easier than it looks...


- cotharyus - 08-21-2007

Line 65 of SConstruct:

CCFLAGS = ['-Wall -I/usr/local/include/'],

- I added the -I/usr/local/include/ (tried it without the trailing / as well) and still get the exact same compile errors. Anyone?


- xTs - 08-21-2007

Try to edit line 64.

there're the include path noted.


Something like:
CPPPATH = ['#include', '#tools/osx', '#tools/osx/SDL.framework/Headers','/usr/local/include/'],


- cotharyus - 08-21-2007

Yep. You're right. According to Scons.org

Program('hello.c', CPPPATH = ['include', '/home/project/inc'])

Will look like this on POSIX or Linux:

cc -o hello.o -c -Iinclude -I/home/project/inc hello.c

Which means that this:

CPPPATH = ['#include', '/usr/local/include', '#tools/osx', '#tools/osx/SDL.framework/Headers'],

Should be right. Except it's producing the same errors as before....

...yall go on and picture me scratching my head...


- cotharyus - 08-21-2007

You know, I'm starting to think there's something I don't know about OS X. Because it's the kind of guy I am, I copied /usr/local/include/vorbis into /vdrift/src/include and did the same with /usr/local/include/ogg - at which point, all objects were created just fine, but in linking - you'd have thought that I hadn't put /usr/local/lib on line 67. Have I lost my mind, or is the OSX build ignoring things passed to scons altogether?


- joevenzon - 08-22-2007

What does the compiler command line that scons executes look like after adjusting the SConstruct file as you have? I wonder if you need a # symbol in there like the others, and what that symbol means.


- cotharyus - 08-22-2007

Ok, here's the scoop. As close as I can tell, all the scons work on osx is wasted. At least if you build using xcode. I removed the header files from the includes directory again, and edited the xcode project file, and got it to compile this far again. I keep coming up with undefined symbols, which I know means the linker can't find the libs it's trying to link against. I've edited the project file again to include /usr/local/lib but still getting the same thing. Maybe I'll figure this out....


- cotharyus - 08-22-2007

/usr/bin/ld: Undefined symbols:
_ov_clear
_ov_info
_ov_open
_ov_pcm_total
_ov_read
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_clear
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_info
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_open
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_pcm_total
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_read
collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_ov_clear
_ov_info
_ov_open
_ov_pcm_total
_ov_read
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_clear
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_info
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_open
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_pcm_total
/Users/Projects/build/vdrift.build/Release-Deployment/vdrift.build/Objects-normal/ppc/sound.o reference to undefined _ov_read
collect2: ld returned 1 exit status
Build failed (1 error)


Ok - what library should those functions be in?