Forums

Full Version: r2903 won't build
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
On r2903 with date 722 building on mac os x 10.6.4 fails with 2 errors and 5 warnings:

Code:
Build vdrift of project vdrift with configuration Debug

CompileC /Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/SDLMain.o SDLMain.m normal i386 objective-c com.apple.compilers.gcc.4_2
cd /Applications/vdrift/SVN/vdrift/tools/osx
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -mdynamic-no-pic -DDEBUG=1 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fvisibility=hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/vdrift.hmap -F/Applications/vdrift/SVN/vdrift/build/Debug -F/Applications/vdrift/SVN/vdrift/tools/osx -I/Applications/vdrift/SVN/vdrift/build/Debug/include -I../../bullet -I../../include -ISDL.framework/Headers -I/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/DerivedSources/i386 -I/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/DerivedSources -c /Applications/vdrift/SVN/vdrift/tools/osx/SDLMain.m -o /Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/SDLMain.o

/Applications/vdrift/SVN/vdrift/tools/osx/SDLMain.m: In function 'CustomApplicationMain':
/Applications/vdrift/SVN/vdrift/tools/osx/SDLMain.m:157: warning: type of 'argc' defaults to 'int'
/Applications/vdrift/SVN/vdrift/tools/osx/SDLMain.m:157: warning: type of 'argv' defaults to 'int'

CompileC /Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/config_mac.o config_mac.mm normal i386 objective-c++ com.apple.compilers.gcc.4_2
cd /Applications/vdrift/SVN/vdrift/tools/osx
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -mdynamic-no-pic -DDEBUG=1 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/vdrift.hmap -F/Applications/vdrift/SVN/vdrift/build/Debug -F/Applications/vdrift/SVN/vdrift/tools/osx -I/Applications/vdrift/SVN/vdrift/build/Debug/include -I../../bullet -I../../include -ISDL.framework/Headers -I/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/DerivedSources/i386 -I/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/DerivedSources -c /Applications/vdrift/SVN/vdrift/tools/osx/config_mac.mm -o /Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/config_mac.o

/Applications/vdrift/SVN/vdrift/tools/osx/config_mac.mm: In function 'char* get_mac_data_dir()':
/Applications/vdrift/SVN/vdrift/tools/osx/config_mac.mm:63: warning: 'cStringLength' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:369)
/Applications/vdrift/SVN/vdrift/tools/osx/config_mac.mm:65: warning: 'getCString:' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:370)
/Applications/vdrift/SVN/vdrift/tools/osx/config_mac.mm:66: warning: 'cStringLength' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:369)

Ld /Applications/vdrift/SVN/vdrift/build/Debug/vdrift.app/Contents/MacOS/vdrift normal i386
cd /Applications/vdrift/SVN/vdrift/tools/osx
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Applications/vdrift/SVN/vdrift/build/Debug -F/Applications/vdrift/SVN/vdrift/build/Debug -F/Applications/vdrift/SVN/vdrift/tools/osx -filelist /Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/vdrift.LinkFileList -mmacosx-version-min=10.4 -framework OpenGL -framework SDL_image -framework SDL_net -framework SDL -framework AppKit -framework SDL_gfx -framework GLExtensionWrangler -framework Ogg -framework Vorbis -o /Applications/vdrift/SVN/vdrift/build/Debug/vdrift.app/Contents/MacOS/vdrift

Undefined symbols:
  "WIDGET_COLORPICKER::SetupDrawable(SCENENODE&, std::tr1::shared_ptr<TEXTURE>, std::tr1::shared_ptr<TEXTURE>, std::tr1::shared_ptr<TEXTURE>, std::tr1::shared_ptr<TEXTURE>, float, float, float, float, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&, int)", referenced from:
      GUIPAGE::Load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, CONFIGFILE const&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, FONT, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, FONT> > > const&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, GUIOPTION, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, GUIOPTION> > >&, SCENENODE&, TEXTUREMANAGER&, MODELMANAGER&, std::basic_ostream<char, std::char_traits<char> >&, bool)in guipage.o
  "WIDGET_COLORPICKER::WIDGET_COLORPICKER()", referenced from:
      WIDGET_COLORPICKER* GUIPAGE::NewWidget<WIDGET_COLORPICKER>()in guipage.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I think we need a sticky thread for Mac OS.

There is no active Mac OS developer. Thus the project files for Mac OS are constantly outdated.

See:
http://vdrift.net/Forum/viewtopic.php?t=1335
http://vdrift.net/Forum/viewtopic.php?t=1381
http://vdrift.net/Forum/viewtopic.php?t=1430

Quote:Undefined symbols:"WIDGET_COLORPICKER::SetupDrawable(SCENENODE&
Meaning: Linker is looking for WIDGET_COLORPICKER.
Solution: Add widget_colorpicker.cpp to project.
if broken files like httpget are not stored in trunk and vdrift.i is moved elswhere i could setup the project to include *all* files in src/ so it never gets outdated.

try revision 2908.
@abs1nth
I've removed httpget from trunk for now(r2914). Would be great if you could update the project files.
Code:
CPP build/car.o
src/car.cpp: In member function ‘void CAR::SetColor(float, float, float)’:
src/car.cpp:838: error: using ‘typename’ outside of template
src/car.cpp: In member function ‘void CAR::EnableGlass(bool)’:
src/car.cpp:1358: error: using ‘typename’ outside of template
scons: *** [build/car.o] Error 1

in rv2915
Oops, the typename is unnecessary. What compiler are you using? GCC4.4 hasn't complained at all.
strange. i'm also using gcc 4.4

anyway, 2916 fixed it. but now it's trying to build httpget.o with the missing httpget.cpp and httpget.h from rv2914
Argh, I thought I had removed it from SConscript file.
cool, compiled. Smile

but now i can't get the joe export to work in blender. Tongue

Code:
Traceback (most recent call last):
  File "/home/portets/.blender/scripts/export-joe.py", line 30, in save_joe
    filename = mesh.properties['joename']
KeyError: 'key not in subgroup dict'
It's been a long time since I've looked into the scripts. Yeah, they might need some love too.

A quick fix is to comment out: filename = mesh.properties['joename']
The latest version (r2957, data 755) fails with this error:

Code:
Build vdrift of project vdrift with configuration Debug

Ld /Users/tim/Applications/vdrift/SVN/vdrift/build/Debug/vdrift.app/Contents/MacOS/vdrift normal i386
cd /Users/tim/Applications/vdrift/SVN/vdrift/tools/osx
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/tim/Applications/vdrift/SVN/vdrift/build/Debug -F/Users/tim/Applications/vdrift/SVN/vdrift/build/Debug -F/Users/tim/Applications/vdrift/SVN/vdrift/tools/osx -filelist /Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/vdrift.LinkFileList -mmacosx-version-min=10.4 -framework OpenGL -framework SDL_image -framework SDL_net -framework SDL -framework AppKit -framework SDL_gfx -framework GLExtensionWrangler -framework Ogg -framework Vorbis -o /Users/tim/Applications/vdrift/SVN/vdrift/build/Debug/vdrift.app/Contents/MacOS/vdrift

Undefined symbols:
  "_SDL_main", referenced from:
      -[SDLMain applicationDidFinishLaunching:] in SDLMain.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

The only change I've made is in SDLMain.m to remove some warnings:
Code:
void CustomApplicationMain (argc, argv)
to
Code:
void CustomApplicationMain (int argc, char **argv)
but the build still fails with the orginal version

I've search on google for a solution, but can't find anything.
sry messed up the xcode file last time when i tried to auto-include all current src files. try revision 2958.
Now says

Code:
Build vdrift of project vdrift with configuration Debug

CompileC /Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/coordinatesystems.o ../../src/coordinatesystems.cpp normal i386 c++ com.apple.compilers.gcc.4_2
cd /Users/tim/Applications/vdrift/SVN/vdrift/tools/osx
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -mdynamic-no-pic -DDEBUG=1 -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/vdrift.hmap -F/Users/tim/Applications/vdrift/SVN/vdrift/build/Debug -F/Users/tim/Applications/vdrift/SVN/vdrift/tools/osx -I/Users/tim/Applications/vdrift/SVN/vdrift/build/Debug/include -I../../bullet -I../../include -ISDL.framework/Headers -I/Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/DerivedSources/i386 -I/Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/DerivedSources -c /Users/tim/Applications/vdrift/SVN/vdrift/tools/osx/../../src/coordinatesystems.cpp -o /Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/coordinatesystems.o

i686-apple-darwin10-gcc-4.2.1: /Users/tim/Applications/vdrift/SVN/vdrift/tools/osx/../../src/coordinatesystems.cpp: No such file or directory
i686-apple-darwin10-gcc-4.2.1: warning: '-x c++' after last input file has no effect
i686-apple-darwin10-gcc-4.2.1: no input files
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

I think that coordinatesystems.cpp doesn't exist.
Deleting coordinatesystems.cop from the project fixes it.
The latest version (r3012, data 779) fails with 11 errors. I think this has been around for a while now - I haven't built for a little time now. I think I have added/removed all the files needed for the project.

Code:
Ld /Users/tim/Applications/vdrift/SVN/vdrift/build/Debug/vdrift.app/Contents/MacOS/vdrift normal i386
cd /Users/tim/Applications/VDrift/SVN/vdrift/tools/osx
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/tim/Applications/vdrift/SVN/vdrift/build/Debug -F/Users/tim/Applications/vdrift/SVN/vdrift/build/Debug -F/Users/tim/Applications/VDrift/SVN/vdrift/tools/osx -filelist /Users/tim/Applications/vdrift/SVN/vdrift/build/vdrift.build/Debug/vdrift.build/Objects-normal/i386/vdrift.LinkFileList -mmacosx-version-min=10.4 -framework OpenGL -framework SDL_image -framework SDL_net -framework SDL -framework AppKit -framework SDL_gfx -framework GLExtensionWrangler -framework Ogg -framework Vorbis -o /Users/tim/Applications/vdrift/SVN/vdrift/build/Debug/vdrift.app/Contents/MacOS/vdrift

Undefined symbols:
  "_curl_multi_cleanup", referenced from:
      HTTP::~HTTP() in http.o
      HTTP::~HTTP() in http.o
  "_curl_multi_info_read", referenced from:
      HTTP::Tick()     in http.o
  "_curl_global_init", referenced from:
      HTTP::HTTP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in http.o
      HTTP::HTTP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in http.o
  "_curl_multi_remove_handle", referenced from:
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
  "_curl_easy_init", referenced from:
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
  "_curl_multi_add_handle", referenced from:
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
  "_curl_multi_perform", referenced from:
      HTTP::Tick()     in http.o
  "_curl_easy_cleanup", referenced from:
      HTTP::CancelAllRequests()      in http.o
      HTTP::Tick()     in http.o
      HTTP::~HTTP() in http.o
      HTTP::~HTTP() in http.o
  "_curl_easy_setopt", referenced from:
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
      HTTP::Request(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_ostream<char, std::char_traits<char> >&)in http.o
  "_curl_multi_init", referenced from:
      HTTP::HTTP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in http.o
      HTTP::HTTP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in http.o
  "_curl_easy_getinfo", referenced from:
      HTTP::Tick()     in http.o
      HTTP::Tick()     in http.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Pages: 1 2 3 4