
And here is my first static package:
supertuxkart-svn10047-irr3843-freebsd-amd64.tar.bz2 (64-bit)
It works on my DesktopBSD 1.7 (FreeBSD 7.2)

Please, test this static package.
Try new rubber ball model (I am NOT convinced but let's get feedback ^^)
===============================================================================
If you hear cracks and pops with some applications, adjust the
OPENAL_BUFFER_SIZE environment variable, for instance:
export OPENAL_BUFFER_SIZE=8192
fgfs
If the OPENAL_BUFFER_SIZE environment variable is not set, the default sound
card buffer size is used.
Increasing the audio buffer size increases the audio latency but decreases the
CPU usage; decreasing the audio buffer size decreases the audio latency but
increases the CPU usage (which can cause cracks and pops).
===============================================================================
g++ -DPACKAGE_NAME=\"supertuxkart\" -DPACKAGE_TARNAME=\"supertuxkart\" -DPACKAGE_VERSION=\"SVN\" -DPACKAGE_STRING=\"supertuxkart\ SVN\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"supertuxkart\" -DVERSION=\"SVN\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AL_AL_H=1 -DHAVE_OGGVORBIS=1 -DENABLE_BIDI=1 -DSVNVERSION=\"10056\" -DBT_NO_PROFILE=/\*\*/ -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -DSUPERTUXKART_DATADIR="\"/usr/local/share/games/supertuxkart/\"" -I./bullet/src/ -I./enet/include/ -I/usr/local/include -I /usr/local//include -I /usr/local//include/irrlicht -I/usr/local/include -I/usr/local/include -Wall -DNDEBUG -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from ./io/file_manager.hpp:37,
from ./addons/addon.hpp:31,
from addons/addons_manager.hpp:26,
from main.cpp:144:
./io/xml_node.hpp:76: error: 'int XMLNode::get(const std::string&, time_t*) const' cannot be overloaded
./io/xml_node.hpp:74: error: with 'int XMLNode::get(const std::string&, int*) const'
*** Error code 1
Stop in /root/Desktop/supertuxkart-svn/src.
*** Error code 1
Stop in /root/Desktop/supertuxkart-svn/src.
*** Error code 1
xeno74 {l Wrote}:I have an error at compile of STK rev. 10056 on FreeBSD 8.2 i386:
./io/xml_node.hpp:76: error: 'int XMLNode::get(const std::string&, time_t*) const' cannot be overloaded
hiker {l Wrote}:xeno74 {l Wrote}:I have an error at compile of STK rev. 10056 on FreeBSD 8.2 i386:
I assume that on your system time_t is an int?
Does it compile if you remove the first function mentioned in the error message?
- {l Code}: {l Select All Code}
./io/xml_node.hpp:76: error: 'int XMLNode::get(const std::string&, time_t*) const' cannot be overloaded
If so, what #ifdef can I use for your system to just remove this function?
Cheers,
Joerg
hiker {l Wrote}:If so, what #ifdef can I use for your system to just remove this function?
Cheers,
Joerg
#ifdef FREEBSD
hiker {l Wrote}:
Ah thanks, I somehow thought it was 64-bit only.
I've added the #ifdef in r10089, but it's not yet in 0.7.3rc1(but will be in 0.7.3). Could you (Xeno) just verify that this works as expected?
Thanks!
Joerg
hiker {l Wrote}:
Ah thanks, I somehow thought it was 64-bit only.
I've added the #ifdef in r10089, but it's not yet in 0.7.3rc1(but will be in 0.7.3). Could you (Xeno) just verify that this works as expected?
Thanks!
Joerg
//int get(const std::string &attribute, Time::TimeType *value) const;
// ----------------------------------------------------------------------------
//int XMLNode::get(const std::string &attribute, Time::TimeType *value) const
//{
// std::string s;
// if(!get(attribute, &s)) return 0;
//
// if (!StringUtils::parseString<Time::TimeType>(s, value))
// {
// fprintf(stderr, "[XMLNode] WARNING: Expected int but found '%s' for attribute '%s' of node '%s' in file %s\n",
// s.c_str(), attribute.c_str(), m_name.c_str(), m_file_name.c_str());
// return 0;
//}
//
//return 1;
//} // get(TimeType)
// ----------------------------------------------------------------------------
xeno74 {l Wrote}:I must comment out the following lines:
hiker {l Wrote}:xeno74 {l Wrote}:I must comment out the following lines:
Thanks, I forgot that. I've fixed this on trunk, can you just verify that it works as expected, then I'll apply this to 0.7.3 as well.
Cheers,
Joerg
g++ -DPACKAGE_NAME=\"supertuxkart\" -DPACKAGE_TARNAME=\"supertuxkart\" -DPACKAGE_VERSION=\"SVN\" -DPACKAGE_STRING=\"supertuxkart\ SVN\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"supertuxkart\" -DVERSION=\"SVN\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AL_AL_H=1 -DHAVE_OGGVORBIS=1 -DENABLE_BIDI=1 -DSVNVERSION=\"10100\" -DBT_NO_PROFILE=/\*\*/ -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -DSUPERTUXKART_DATADIR="\"/usr/local/share/games/supertuxkart/\"" -I./bullet/src/ -I./enet/include/ -I/usr/local/include -I /usr/local//include -I /usr/local//include/irrlicht -I/usr/local/include -I/usr/local/include -Wall -DNDEBUG -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from ./io/file_manager.hpp:37,
from ./addons/addon.hpp:31,
from addons/addons_manager.hpp:26,
from main.cpp:144:
./io/xml_node.hpp:78: error: 'int XMLNode::get(const std::string&, time_t*) const' cannot be overloaded
./io/xml_node.hpp:74: error: with 'int XMLNode::get(const std::string&, int*) const'
gmake[2]: *** [main.o] Fehler 1
gmake[2]: Leaving directory `/root/Desktop/supertuxkart-svn/src'
gmake[1]: *** [all-recursive] Fehler 1
gmake[1]: Leaving directory `/root/Desktop/supertuxkart-svn/src'
gmake: *** [all-recursive] Fehler 1
xeno74 {l Wrote}:
Unfortunately it doesn't work
touch foo.h; cpp -dM foo.h
hiker {l Wrote}:xeno74 {l Wrote}:
Unfortunately it doesn't work
That looks like FREEBSD is not defined in your compiler. Could you just check what is actually defined? According to g++ man page:
- {l Code}: {l Select All Code}
touch foo.h; cpp -dM foo.h
will show what is defined in the preprocessor.
Cheers,
Joerg
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __DEC64_DEN__ 0.000000000000001E-383DD
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 2
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
#define __GNUC_PATCHLEVEL__ 1
#define __DEC64_MAX_EXP__ 384
#define __SHRT_MAX__ 32767
#define __LDBL_MAX__ 1.1897314953572316e+4932L
#define __UINTMAX_TYPE__ long long unsigned int
#define __DEC32_EPSILON__ 1E-6DF
#define __unix 1
#define __LDBL_MAX_EXP__ 16384
#define __SCHAR_MAX__ 127
#define __USER_LABEL_PREFIX__
#define __STDC_HOSTED__ 1
#define __LDBL_HAS_INFINITY__ 1
#define __DEC64_MIN_EXP__ (-383)
#define __DBL_DIG__ 15
#define __FLT_EPSILON__ 1.19209290e-7F
#define __LDBL_MIN__ 3.3621031431120935e-4932L
#define __DEC32_MAX__ 9.999999E96DF
#define __unix__ 1
#define __DECIMAL_DIG__ 17
#define __LDBL_HAS_QUIET_NAN__ 1
#define __GNUC__ 4
#define __FLT_HAS_DENORM__ 1
#define __FreeBSD_cc_version 800001
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_HAS_INFINITY__ 1
#define __DEC32_MIN_EXP__ (-95)
#define __LDBL_HAS_DENORM__ 1
#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
#define __DEC32_MIN__ 1E-95DF
#define __DBL_MAX_EXP__ 1024
#define __DEC128_EPSILON__ 1E-33DL
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __GXX_ABI_VERSION 1002
#define __FLT_MIN_EXP__ (-125)
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DBL_HAS_QUIET_NAN__ 1
#define __DEC128_MIN__ 1E-6143DL
#define __REGISTER_PREFIX__
#define __DBL_HAS_DENORM__ 1
#define __NO_INLINE__ 1
#define __DEC_EVAL_METHOD__ 2
#define __i386 1
#define __FLT_MANT_DIG__ 24
#define __VERSION__ "4.2.1 20070719 [FreeBSD]"
#define i386 1
#define __DEC64_EPSILON__ 1E-15DD
#define __DEC128_MIN_EXP__ (-6143)
#define __i486__ 1
#define unix 1
#define __i386__ 1
#define __SIZE_TYPE__ unsigned int
#define __DEC32_DEN__ 0.000001E-95DF
#define __ELF__ 1
#define __FLT_RADIX__ 2
#define __LDBL_EPSILON__ 2.2204460492503131e-16L
#define __FreeBSD__ 8
#define __LDBL_DIG__ 15
#define __KPRINTF_ATTRIBUTE__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __FLT_MAX_10_EXP__ 38
#define __LONG_MAX__ 2147483647L
#define __FLT_HAS_INFINITY__ 1
#define __DEC64_MAX__ 9.999999999999999E384DD
#define __DEC64_MANT_DIG__ 16
#define __DEC32_MAX_EXP__ 96
#define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
#define __LDBL_MANT_DIG__ 53
#define _LONGLONG 1
#define __WCHAR_TYPE__ int
#define __FLT_DIG__ 6
#define __INT_MAX__ 2147483647
#define __i486 1
#define __FLT_MAX_EXP__ 128
#define __DBL_MANT_DIG__ 53
#define __DEC64_MIN__ 1E-383DD
#define __WINT_TYPE__ int
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MAX_10_EXP__ 4932
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __INTMAX_MAX__ 9223372036854775807LL
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN_10_EXP__ (-37)
#define __INTMAX_TYPE__ long long int
#define __DEC128_MAX_EXP__ 6144
#define __GNUC_MINOR__ 2
#define __DEC32_MANT_DIG__ 7
#define __DBL_MAX_10_EXP__ 308
#define __LDBL_DENORM_MIN__ 7.4653686412953080e-4948L
#define __STDC__ 1
#define __PTRDIFF_TYPE__ int
#define __DEC128_MANT_DIG__ 34
#define __LDBL_MIN_10_EXP__ (-4931)
#define __GNUC_GNU_INLINE__ 1
Auria {l Wrote}:Joerg... the file said __FreeBSD__, not __FREEBSD__
hiker {l Wrote}:Auria {l Wrote}:Joerg... the file said __FreeBSD__, not __FREEBSD__
Thanks for noticing this, I've tried again in r10108. Xeno, if this doesn't work, can't you just send us a patch?
Cheers,
Joerg
g++ -DPACKAGE_NAME=\"supertuxkart\" -DPACKAGE_TARNAME=\"supertuxkart\" -DPACKAGE_VERSION=\"SVN\" -DPACKAGE_STRING=\"supertuxkart\ SVN\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"supertuxkart\" -DVERSION=\"SVN\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AL_AL_H=1 -DHAVE_OGGVORBIS=1 -DENABLE_BIDI=1 -DSVNVERSION=\"10125\" -DBT_NO_PROFILE=/\*\*/ -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -DSUPERTUXKART_DATADIR="\"/usr/local/share/games/supertuxkart/\"" -I./bullet/src/ -I./enet/include/ -I/usr/local/include -I /usr/local//include -I /usr/local//include/irrlicht -I/usr/local/include -I/usr/local/include -Wall -DNDEBUG -O2 -MT addon.o -MD -MP -MF .deps/addon.Tpo -c -o addon.o `test -f 'addons/addon.cpp' || echo './'`addons/addon.cpp
addons/addon.cpp: In constructor 'Addon::Addon(const XMLNode&)':
addons/addon.cpp:70: error: no matching function for call to 'XMLNode::get(const char [5], time_t*) const'
./io/xml_node.hpp:72: note: candidates are: int XMLNode::get(const std::string&, std::string*) const
./io/xml_node.hpp:73: note: int XMLNode::get(const std::string&, irr::core::stringw*) const
./io/xml_node.hpp:74: note: int XMLNode::get(const std::string&, int*) const
./io/xml_node.hpp:75: note: int XMLNode::get(const std::string&, unsigned int*) const
./io/xml_node.hpp:80: note: int XMLNode::get(const std::string&, float*) const
./io/xml_node.hpp:81: note: int XMLNode::get(const std::string&, bool*) const
./io/xml_node.hpp:82: note: int XMLNode::get(const std::string&, Vec3*) const
./io/xml_node.hpp:83: note: int XMLNode::get(const std::string&, irr::core::vector2df*) const
./io/xml_node.hpp:84: note: int XMLNode::get(const std::string&, irr::core::vector3df*) const
./io/xml_node.hpp:85: note: int XMLNode::get(const std::string&, irr::video::SColorf*) const
./io/xml_node.hpp:86: note: int XMLNode::get(const std::string&, irr::video::SColor*) const
./io/xml_node.hpp:87: note: int XMLNode::get(const std::string&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*) const
./io/xml_node.hpp:88: note: int XMLNode::get(const std::string&, std::vector<float, std::allocator<float> >*) const
./io/xml_node.hpp:89: note: int XMLNode::get(const std::string&, std::vector<int, std::allocator<int> >*) const
./io/xml_node.hpp:90: note: int XMLNode::get(irr::core::vector3df*) const
gmake[2]: *** [addon.o] Error 1
gmake[2]: Leaving directory `/root/Desktop/supertuxkart-svn/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/Desktop/supertuxkart-svn/src'
gmake: *** [all-recursive] Error 1
#ifndef __FreeBSD__
#endif
Users browsing this forum: No registered users and 1 guest