Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
r2903 won't build
12-28-2010, 02:58 PM,
VDrift has curl(libcurl) as additional dependency since 2991.

By the way, it looks like it is possible to use scons in xcode:
01-04-2011, 03:02 PM,
I think the Mac build would greatly benefit from using SCons. This is our main build system and since it is platform-independent, we should try to use it whenever possible. It is used to build on Linux and FreeBSD, and it is possible to build on Windows (although I'm not sure it is used). Mac used to use it but hasn't for a long time. Who would like to help with this?
01-04-2011, 04:54 PM,
I've had a go, but haven't been getting anywhere - at step 5 when it should build ... it doesn't. For some reason it won't find OpenGL:
Checking for C++ header file OpenGL/gl.h... no
You do not have the OpenGL/gl.h headers installed. Exiting.
Command /opt/local/bin/scons failed with exit code 1

I can't get curl working with either:
ld: warning: in /Users/tim/Applications/VDrift/SVN/vdrift/tools/osx/curl.framework/curl, file was built for unsupported file format which is not the architecture being linked (i386)
. Any idea how I would rebuild it for the right architecture?
01-04-2011, 11:04 PM,
Search your filesystem for gl.h. It's possible that the header is in another location. There is Mac-specific code in SConstruct on lines 67-118. There you can tweak any of the environment variables that are passed to the compiler at build time.
01-05-2011, 01:03 PM,
Yeah, I've tried that, but had no luck.
01-05-2011, 03:15 PM,
So you couldn't find gl.h?
01-05-2011, 03:45 PM,
I've found it in several different places, but can't get it to see any of them.
01-05-2011, 03:51 PM,
Were they like OpenGL/gl.h or GL/gl.h?
01-05-2011, 04:04 PM,
Mostly OpenGL/gl.h, but there was one GL/gl.h!
01-05-2011, 06:28 PM,
i've fixed the xcode project and added a libcurl framework
01-06-2011, 03:40 PM,
Awesome, I'll test it as soon as I can.
01-17-2011, 05:32 PM,
r3018 won't build
On linux revision 3018 won't compile because the curl headers can't be found although they are present under ./tools/osx/ (see below).
Perhaps a Scons config file needs to be updated?

>svn update
At revision 3018.
scons: Reading SConscript files ...
Checking for C++ header file asio.hpp... yes
Checking for C++ header file boost/bind.hpp... yes
Checking for C++ header file GL/gl.h... yes
Checking for C++ header file GL/glu.h... yes
Checking for C++ header file SDL/SDL.h... yes
Checking for C++ header file SDL/SDL_image.h... yes
Checking for C++ header file SDL/SDL_rotozoom.h... yes
Checking for C++ header file vorbis/vorbisfile.h... yes
Checking for C++ header file GL/glew.h... yes
Checking for C++ header file curl/curl.h... no
You do not have the curl/curl.h headers installed. Exiting.
>find . -name curl.h
01-17-2011, 07:24 PM,
SCons is not properly configured to work on OS X. Directions for compiling on OS X are here:
01-18-2011, 11:33 AM,
The tools/osx curl headers are for OSX. If you're on linux you need to install the libcurl development headers through your package manager (or manually via the libcurl website).
01-18-2011, 06:32 PM,
Yes, thanks, this did the trick for me:
sudo apt-get install libcurl4-gnutls-dev

btw I started with the 2010-06-30 version but I like this development version a lot better. At least, I have a lot more success controlling the car Smile.

Forum Jump:

Users browsing this thread: 1 Guest(s)