08-23-2007, 05:22 AM,
|
|
Fx
Junior Member
 
|
Posts: 19
Threads: 1
Joined: Aug 2007
|
|
About libvorbis
Maybe we should include the latest vorbis/ogg package in the svn trunk to be sure we are all using the same library no ?
Is it the libvorbis-1.2.0 downloadable at http://downloads.xiph.org/releases/vorbis/
|
|
08-23-2007, 08:40 AM,
|
|
cotharyus
Senior Member
   
|
Posts: 332
Threads: 17
Joined: Oct 2006
|
|
I have good news and bad news.
The good news is it compiles, links, and runs on my Macbook now. The method used to make this magic happen is, apparently, not considered safe, however if it was altogether right out, the option to screw with the linker wouldn't exist, so I'm doing it anyway. I'm going to need to post this so other people with Intel based Macs can try it and see if it works for them. Did you catch that? That was the bad news.
As of libvorbisfile, it looks like PPC is dead unless someone with OSX on a PPC can make a build, because when I try to link against the vorbis libs on a PPC build, I get errors that it's only i386 compatible. There may be something I can do (trash the libs and rebuild them differently?) to make it work propperly for a PPC build, but lets take one step at a time here.
BTW, that linker magic is as follows:
edit xcode project info
Under other linker flags add:
-weak_library /usr/local/lib/libvorbisfile -weak_library /usr/local/lib/libvorbis.0 -weak_library /usr/local/lib/libogg.0.dylib
you also need to add /usr/local/lib/** to your header search path, and if you're doing this on an intel mac, turn off the PPC architecture build. If anyone wants to try this on a PPC mac and manages to get a good build, or if someone gets a universal build, I'd like to know how.
|
|
08-23-2007, 01:58 PM,
|
|
mpo
Member
  
|
Posts: 65
Threads: 18
Joined: May 2007
|
|
I'm compiling under windows 2000, i have downloaded vorbis library but when i try to compile scons tell me:
ogg/ogg.h no such file or directory
Where i can find ogg.h? I have tried to seach it but i haven't found that file..
|
|
08-23-2007, 03:16 PM,
|
|
mpo
Member
  
|
Posts: 65
Threads: 18
Joined: May 2007
|
|
Now the compiler doesn't return errors but when the game is running and i try to start a new race (single race or practice game) the application return to windows closing the window.
Which it can be the problem?
|
|
08-23-2007, 06:12 PM,
|
|
Fx
Junior Member
 
|
Posts: 19
Threads: 1
Joined: Aug 2007
|
|
Compiling ok
Hi,
I tried to compile under xcode and i followed the advices from cotharyus, except this: i used the following 'Other linker flag'
-weak_library /usr/local/lib/libvorbisfile.a -weak_library /usr/local/lib/libogg.a -weak_library /usr/local/lib/libvorbis.a
So Download the latest version of libogg and libvorbis, untar them and open a terminal.
1-Compile first libogg
./configure
make
make install
2-Compile libvorbis
./configure
make
make install
3-Edit the xcode settings as adviced by cotharyus. i used
-weak_library /usr/local/lib/libvorbisfile.a -weak_library /usr/local/lib/libogg.a -weak_library /usr/local/lib/libvorbis.a
for the linker flag.
Remark: it build the vdrift executable, but it doesn't make the package with the datas and the other files as seen in the web distribution.
Tests: The bug still remains, when you crash on a wall, there is no more response of the car. It seems that it is the track itself (Monaco) who may be responsible.
|
|
08-24-2007, 05:01 AM,
|
|
mak77
Junior Member
 
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
i've build the current version in XP and run in Vista, it's working
|
|
08-24-2007, 12:33 PM,
|
|
bugsyv
Junior Member
 
|
Posts: 46
Threads: 6
Joined: May 2007
|
|
cotharyus Wrote:BTW, that linker magic is as follows:
edit xcode project info
Under other linker flags add:
-weak_library /usr/local/lib/libvorbisfile -weak_library /usr/local/lib/libvorbis.0 -weak_library /usr/local/lib/libogg.0.dylib
For the mac guys: we have been making framework bundles and putting them in the app package for all the required dependencies. Linking to stuff in /usr/lib should work, but it complicates deployment... unless of course you are linking to static libs, but then it complicates workspace setup
I'm not sure when I will be able to look in to this as I am spending my free time on a work-related project now.... *sigh*
BTW, the error your seeing is probably due to the fact that the dylibs you have on your machine are not universal or ppc-built.
|
|
08-24-2007, 12:47 PM,
|
|
Fx
Junior Member
 
|
Posts: 19
Threads: 1
Joined: Aug 2007
|
|
Depolyment release
cotharyus - You were right, i had also tu copy the data folder in my folder structure in order to run.
I copy the content of the dmg in a folder, and then start vdrift. The window closes at startup
|
|
08-24-2007, 12:57 PM,
|
|
cotharyus
Senior Member
   
|
Posts: 332
Threads: 17
Joined: Oct 2006
|
|
bugsyv Wrote:For the mac guys: we have been making framework bundles and putting them in the app package for all the required dependencies. Linking to stuff in /usr/lib should work, but it complicates deployment... unless of course you are linking to static libs, but then it complicates workspace setup 
I'm not sure when I will be able to look in to this as I am spending my free time on a work-related project now.... *sigh*
BTW, the error your seeing is probably due to the fact that the dylibs you have on your machine are not universal or ppc-built.
Ok. You'll have to break that framework bundle thing down for me a little. I think I understand what you're talking about, but not sure I understand how to do it, based on what I've seen so far. Part of being new to the world of mac and mac development.
I suspected the dylibs thing was probly something like that. Since both libvorbis and libogg were built from source from the command line, I'm assuming there's some switch I have to throw to make the libs work for universal builds - but I haven't had time to sort out what it is yet. Pointers?
|
|
|