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
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message



Forums
Problem compiling vdrift-trackeditor - 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: Problem compiling vdrift-trackeditor (/showthread.php?tid=1001)

Pages: 1 2


Problem compiling vdrift-trackeditor - norv - 10-01-2008

How do I run vdrift-trackeditor?
Do I have to compile?
If I run scons in the vdrift-trackeditor directory I get

Code:
norv@sid5600:~/vdrift-trackeditor$ scons
scons: Reading SConscript files ...
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
Checking for C++ header file SDL/SDL_image.h... (cached) yes

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/norv/vdrift-trackeditor/src/SConscript", line 32, in <module>
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/main.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-02\" -DVERSION=\"2008-10-02\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/main.cpp
src/main.cpp:955: error: ‘<anonymous>’ has incomplete type
src/main.cpp:955: error: invalid use of ‘GLvoid’
src/main.cpp:1058: error: ‘<anonymous>’ has incomplete type
src/main.cpp:1058: error: invalid use of ‘GLvoid’
src/main.cpp: In function ‘int main(int, char**)’:
src/main.cpp:955: error: too few arguments to function ‘int initGL(<type>)’
src/main.cpp:1808: error: at this point in file
src/main.cpp:1058: error: too few arguments to function ‘int drawGLScene(<type>)’
src/main.cpp:1894: error: at this point in file
scons: *** [build/main.o] Error 1
scons: building terminated because of errors.
norv@sid5600:~/vdrift-trackeditor$



- joevenzon - 10-02-2008

You are compiling correctly, but there was some old code that was causing errors with newer compilers. I checked in some changes just now to fix it -- try updating your SVN copy of VDrift-tracked to rev 69.


- norv - 10-03-2008

Thanks Joe, I got #69, got a bit further with the compile... but not quite there yet..
Code:
norv@sid5600:~$ svn co http://svn.vdrift.net/repos/vdrift-trackeditor/trunk vdrift-trackeditor
U    vdrift-trackeditor/src/main.cpp
Checked out revision 69.

norv@sid5600:~$
norv@sid5600:~$ cd vdrift-trackeditor
norv@sid5600:~/vdrift-trackeditor$ scons
scons: Reading SConscript files ...
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
Checking for C++ header file SDL/SDL_image.h... (cached) yes

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/norv/vdrift-trackeditor/src/SConscript", line 32, in <module>
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/main.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/main.cpp
g++ -o build/camera.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/camera.cpp
g++ -o build/font.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/font.cpp
g++ -o build/keyman.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/keyman.cpp
g++ -o build/messageq.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/messageq.cpp
g++ -o build/model.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/model.cpp
g++ -o build/mouse.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/mouse.cpp
g++ -o build/objects.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/objects.cpp
g++ -o build/quat.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/quat.cpp
g++ -o build/settings.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/settings.cpp
src/settings.cpp:82:67: warning: "/*" within comment
g++ -o build/track.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/track.cpp
g++ -o build/utility.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/utility.cpp
g++ -o build/configfile.o -c -Wall -Wno-non-virtual-dtor -g -O2 -DVERSION=\"2008-10-03\" -DVERSION=\"2008-10-03\" -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/configfile.cpp
src/configfile.cpp: In member function ‘void CONFIGVARIABLE::Set(std::string)’:
src/configfile.cpp:316: error: ‘atoi’ was not declared in this scope
src/configfile.cpp:317: error: ‘atof’ was not declared in this scope
scons: *** [build/configfile.o] Error 1
scons: building terminated because of errors.
norv@sid5600:~/vdrift-trackeditor$



- joevenzon - 10-03-2008

Alright... getting closer... try rev 70.


- norv - 10-05-2008

Yep, that compliles. When I run the vdrift file in the build directory it complains it can't find data/settings/Vdrift.config, but that file is there.. and if I copy vdrift executable to the main directory it segfaults. But getting closer!
Code:
norv@sid5600:~/vdrift-trackeditor/build$ ./vdrift
CONFIGFILE.Load: Couldn't find file:  data/settings/VDrift.config
CONFIGFILE.Load: Couldn't find file:  data/settings/VDrift.config
CONFIGFILE::GetParam():  main.data_dir not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  main.version not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.width not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.height not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.depth not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.fullscreen not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.tree_detail not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.terrain_detail not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.show_hud not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.show_fps not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.mph not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.texture_size not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  display.view_distance not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  game.selected_car not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  game.car_paint not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  game.camera_mode not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  game.game_mode not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  game.track not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  network.host_game not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  network.server_ip not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  network.server_port not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  sound.volume not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  mouse.enabled not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  mouse.xsens not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  mouse.ydead not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  mouse.ysens not found in data/settings/VDrift.config
CONFIGFILE::GetParam():  control.autoclutch not found in data/settings/VDrift.config
Run with -verbose for troubleshooting.
Video mode set failed: Couldn't open data/textures/medium/gui/newfontt3.png
norv@sid5600:~/vdrift-trackeditor/build$



- joevenzon - 10-05-2008

Try running build/vdrift from the VDrift-tracked folder instead of running ./vdrift from the build folder.


- norv - 10-06-2008

Yep, that works, the track editor opens. Now to work out how to use it!
Thanks for the help Joe.


- norv - 10-12-2008

I was able to export my track (rough draft!) from Blender into vdrift-trackeditor and trace the track.
When I run the joepack command I get
Code:
norv@sid5600:~/vdrift-trackeditor$ cd data/tracks/byron/objects
norv@sid5600:~/vdrift-trackeditor/data/tracks/byron/objects$ joepack/joepack -c objects.jpk *.joe
bash: joepack/joepack: No such file or directory
norv@sid5600:~/vdrift-trackeditor/data/tracks/byron/objects$
What should I do to get it to work?


- joevenzon - 10-13-2008

First, build the joepack tool with
Code:
cd ~/vdrift-trackeditor/joepack
scons
then you can do
Code:
cd ~/vdrift-trackeditor/data/tracks/byron/objects
~/vdrift-trackeditor/joepack -c objects.jpk *.joe



- joevenzon - 10-13-2008

I've just updated the wiki instructions to be correct and also fixed a few other problems with them.


- norv - 10-13-2008

Thanx Joe for the update. I get a compile error with joepack:
Code:
norv@sid5600:~/vdrift-trackeditor/joepack$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/main.o -c -Iinclude src/main.cpp
src/main.cpp: In function 'int main(int, char**)':
src/main.cpp:237: error: 'strcpy' was not declared in this scope
scons: *** [src/main.o] Error 1
scons: building terminated because of errors.
norv@sid5600:~/vdrift-trackeditor/joepack$



- joevenzon - 10-13-2008

Alright, try rev 71 of the track editor.


- norv - 10-14-2008

Yep, joepack compiles now.
When I moved the new track into main vdrift folder and started vdrift I got

Code:
EXCEPTION: src/textures.cpp, line 489:  Error loading texture file: tracks/byron/trackshot.png (/home/norv/vdrift/data/tracks/byron/trackshot.png)

So I made a dummy trackshot.png and now the game loads. But when I choose my track it complains about not finding textures..

Code:
EXCEPTION: src/textures.cpp, line 489:  Error loading texture file: /home/norv/vdrift/data/tracks/byron/objects/sky_photo6.jpg (/home/norv/vdrift/data//home/norv/vdrift/data/tracks/byron/objects/sky_photo6.jpg)

Not sure where I went wrong. Somehow I have failed to export and pack textures. I'll try again. Thanks for all the help!


- norv - 10-14-2008

I got to "drive" the track - but looks like my Blender texture settings are all up the creek - back to the drawing board!


- joevenzon - 10-15-2008

norv Wrote:Not sure where I went wrong. Somehow I have failed to export and pack textures. I'll try again. Thanks for all the help!

Just in case you haven't figured it out, all you need to do is export the textures to png and put them in the data/tracks/byron/objects folder; they don't get put in the joepack file.