Page 1 of 1

Compile error for 0.51.1

Posted: Sun Dec 23, 2018 1:31 pm UTC
by ice00
Hi,

I'm getting those errors while compiling on Linux (Fedora) from 0.51.1 sources:


Code: Select all

[ 88%] Building CXX object CMakeFiles/sgame-nacl.dir/src/sgame/components/MGTurretComponent.cpp.obj
/home/ice/rpmbuild/BUILD/unvanquished-0.51.1/src/sgame/components/MGTurretComponent.cpp:17:2: error: use of undeclared
      identifier 'GetThinkingComponent'
        REGISTER_THINKER(Think, ThinkingComponent::SCHEDULER_BEFORE, 0);
        ^
/home/ice/rpmbuild/BUILD/unvanquished-0.51.1/src/sgame/components/../backend/../CBSE.h:18:2: note: expanded from macro
      'REGISTER_THINKER'
        GetThinkingComponent().RegisterThinker([this](int i){this->METHOD(i);}, SCHEDULER, PERIOD)
        ^
1 error generated.
make[5]: *** [CMakeFiles/sgame-nacl.dir/build.make:950: CMakeFiles/sgame-nacl.dir/src/sgame/components/MGTurretComponent.cpp.obj] Error 1
make[4]: *** [CMakeFiles/Makefile2:334: CMakeFiles/sgame-nacl.dir/all] Error 2
make[3]: *** [Makefile:84: all] Error 2
make[2]: *** [CMakeFiles/nacl-vms.dir/build.make:112: nacl-vms-prefix/src/nacl-vms-stamp/nacl-vms-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/nacl-vms.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ZGg5YA (%build)



thanks

Re: Compile error for 0.51.1

Posted: Sun Dec 23, 2018 11:42 pm UTC
by killing time
My guess is an outdated submodule Try:

Code: Select all

git submodule update src/utils/cbse

Re: Compile error for 0.51.1

Posted: Mon Dec 24, 2018 7:33 pm UTC
by illwieckz
May be useful to update all the submodules at once because it's probably not the only outdated one:

Code: Select all

git submodule update --recursive

Re: Compile error for 0.51.1

Posted: Wed Dec 26, 2018 8:21 am UTC
by ice00
hi,

I had not use git, but downloaded the 0.51.1 package from the various related repository

Re: Compile error for 0.51.1

Posted: Wed Dec 26, 2018 5:21 pm UTC
by illwieckz
There is 7 submodules so going the tarball way may be very boring, if you really want to go the tarball way you'll need those to build (the 7th is not required to build binaries), before the link the expected directory name within Unvanquished directory :


Otherwise with git it's easy to fetch them all in one call:

Code: Select all

git clone --recurse-submodules https://github.com/Unvanquished/Unvanquished.git

Re: Compile error for 0.51.1

Posted: Wed Dec 26, 2018 6:19 pm UTC
by killing time
Breakpad is also not needed (USE_BREAKPAD is set to false by default). Breakpad is only really useful in the official release.

Re: Compile error for 0.51.1

Posted: Mon Dec 31, 2018 2:30 pm UTC
by ice00
Source compiled.

The data assets has a md5sums that is empty. Is this correct?

Else where the old tremolous map converted to new dpk format?

thanks

Re: Compile error for 0.51.1

Posted: Mon Dec 31, 2018 2:35 pm UTC
by illwieckz
Yeah, it's normal the md5sums is empty, well, it's not normal but it was a mistake at release time so that's expected ¯\_(ツ)_/¯.
It will not be empty on next release but we have to live with it for this one.

You'll find community maps converted to DPK format including tremulous ones there: http://gg.illwieckz.net/dl/unvanquished/pkg/
I'll do a forum post for them one day…

Re: Compile error for 0.51.1

Posted: Mon Dec 31, 2018 5:25 pm UTC
by ice00

Re: Compile error for 0.51.1

Posted: Mon Dec 31, 2018 9:20 pm UTC
by illwieckz
great