The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.28 (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.28 (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.28 (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.28 (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.28 (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.28 (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.28 (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.28 (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.28 (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 array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
problem with compiling in Debian - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5)
+--- Thread: problem with compiling in Debian (/showthread.php?tid=2390)



problem with compiling in Debian - pironman - 06-27-2019

Good morning, I try to compile VDrift in debian stretch, but i get this error:


Code:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/stdexcept:39,
                 from /usr/include/c++/6/array:39,
                 from /usr/include/c++/6/tuple:39,
                 from /usr/include/c++/6/bits/stl_map.h:63,
                 from /usr/include/c++/6/map:61,
                 from src/joeserialize.h:25,
                 from src/graphics/vertexarray.h:24,
                 from src/graphics/model.h:23,
                 from src/graphics/model_obj.h:23,
                 from src/graphics/model_obj.cpp:20:
/usr/include/c++/6/bits/basic_string.h:5340:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5340:5: note:   template argument deduction/substitution failed:
src/graphics/model_obj.cpp:224:57: note:   ‘std::ostream {aka std::basic_ostream<char>}’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
   error_output << "Error opening file for writing: " << error_output << endl;
                                                         ^~~~~~~~~~~~
scons: *** [build/graphics/model_obj.o] Error 1
scons: building terminated because of errors.


These are only the last lines, but there is a lot of similar error.
Whats the problem?

Thanks


RE: problem with compiling in Debian - NaN - 06-28-2019

Did you modify the source files?

That line does not make any sense:
Code:
error_output << "Error opening file for writing: " << error_output << endl;

It should be:

Code:
error_output << "Error opening file for writing: " << strFileName << endl;



RE: problem with compiling in Debian - pironman - 06-29-2019

(06-28-2019, 12:39 PM)NaN Wrote: Did you modify the source files?

That line does not make any sense:
Code:
error_output << "Error opening file for writing: " << error_output << endl;

It should be:

Code:
error_output << "Error opening file for writing: " << strFileName << endl;

No, I simply copy and paste


RE: problem with compiling in Debian - NaN - 06-29-2019

Your compiler is complaining about an error in a specific line of code. But this line of code does not match vdrift code. It is different. That is why I asked whether you did something with vdrift source code.


RE: problem with compiling in Debian - pironman - 12-03-2019

Good morning.

After 5 months, I'll try again.
Now I have a fresh debian installation on my pc, and some other differences.
I have just installed all the dependecies required.
Then, I try to compile, using the command as in the readme file:

Code:
scons arch=a64 release=1 extbullet=1 prefix=/usr/local


and that's the output:


Code:
root@mattia:/home/mattia/vdrift# scons arch=a64 release=1 extbullet=1 prefix=/usr/local
scons: Reading SConscript files ...
Package bullet was not found in the pkg-config search path.
Perhaps you should add the directory containing `bullet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'bullet' found
OSError: 'pkg-config bullet --libs --cflags' exited 1:
 File "/home/mattia/vdrift/SConstruct", line 361:
   env.ParseConfig('pkg-config bullet --libs --cflags')
 File "/usr/lib/scons/SCons/Environment.py", line 1557:
   return function(self, self.backtick(command))
 File "/usr/lib/scons/SCons/Environment.py", line 594:
   raise OSError("'%s' exited %d" % (command, status))
root@mattia:/home/mattia/vdrift#


why package bullet not found?
in debian, that's package is "libbullet2.87", could be the different name the problem? How can I fix it?

Thanks


RE: problem with compiling in Debian - NaN - 12-04-2019

You need the dev package, which should be caled something like libbullet-dev. It should install pkgconfig/bullet.pc.

From my experience VDrift builds fine on Fedora, Arch Linux and Ubuntu. Not sure why it won't on your system.