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

By the way, it looks like it is possible to use scons in xcode: http://www.scons.org/wiki/IDEIntegration
Reply
01-04-2011, 03:02 PM,
#17
 
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?
Reply
01-04-2011, 04:54 PM,
#18
 
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:
Code:
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:
Code:
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?
Reply
01-04-2011, 11:04 PM,
#19
 
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.
Reply
01-05-2011, 01:03 PM,
#20
 
Yeah, I've tried that, but had no luck.
Reply
01-05-2011, 03:15 PM,
#21
 
So you couldn't find gl.h?
Reply
01-05-2011, 03:45 PM,
#22
 
I've found it in several different places, but can't get it to see any of them.
Reply
01-05-2011, 03:51 PM,
#23
 
Were they like OpenGL/gl.h or GL/gl.h?
Reply
01-05-2011, 04:04 PM,
#24
 
Mostly OpenGL/gl.h, but there was one GL/gl.h!
Reply
01-05-2011, 06:28 PM,
#25
 
i've fixed the xcode project and added a libcurl framework
Reply
01-06-2011, 03:40 PM,
#26
 
Awesome, I'll test it as soon as I can.
Reply
01-17-2011, 05:32 PM,
#27
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?

Code:
>svn update
At revision 3018.
>scons
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
./tools/osx/libcurl.framework/Versions/Release-7.21.3/Headers/curl/curl.h
Reply
01-17-2011, 07:24 PM,
#28
 
SCons is not properly configured to work on OS X. Directions for compiling on OS X are here: http://wiki.vdrift.net/Compiling_on_Mac_OS_X
Reply
01-18-2011, 11:33 AM,
#29
 
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).
Reply
01-18-2011, 06:32 PM,
#30
 
Yes, thanks, this did the trick for me:
Code:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)