Compile error for 0.51.1

Get support for Unvanquished.
ice00
Posts: 18
Joined: Sat Feb 20, 2016 3:19 pm UTC

Compile error for 0.51.1

Postby ice00 » Sun Dec 23, 2018 1:31 pm UTC

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
User avatar
killing time
Programmer
Posts: 84
Joined: Wed Jul 04, 2012 7:55 am UTC

Re: Compile error for 0.51.1

Postby killing time » Sun Dec 23, 2018 11:42 pm UTC

My guess is an outdated submodule Try:

Code: Select all

git submodule update src/utils/cbse
User avatar
illwieckz
Project Head
Posts: 473
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Compile error for 0.51.1

Postby illwieckz » Mon Dec 24, 2018 7:33 pm UTC

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
This comment is licensed under cc ​​by 4 and antecedent.
ice00
Posts: 18
Joined: Sat Feb 20, 2016 3:19 pm UTC

Re: Compile error for 0.51.1

Postby ice00 » Wed Dec 26, 2018 8:21 am UTC

hi,

I had not use git, but downloaded the 0.51.1 package from the various related repository
User avatar
illwieckz
Project Head
Posts: 473
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Compile error for 0.51.1

Postby illwieckz » Wed Dec 26, 2018 5:21 pm UTC

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
This comment is licensed under cc ​​by 4 and antecedent.
User avatar
killing time
Programmer
Posts: 84
Joined: Wed Jul 04, 2012 7:55 am UTC

Re: Compile error for 0.51.1

Postby killing time » Wed Dec 26, 2018 6:19 pm UTC

Breakpad is also not needed (USE_BREAKPAD is set to false by default). Breakpad is only really useful in the official release.
ice00
Posts: 18
Joined: Sat Feb 20, 2016 3:19 pm UTC

Re: Compile error for 0.51.1

Postby ice00 » Mon Dec 31, 2018 2:30 pm UTC

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
User avatar
illwieckz
Project Head
Posts: 473
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Compile error for 0.51.1

Postby illwieckz » Mon Dec 31, 2018 2:35 pm UTC

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…
This comment is licensed under cc ​​by 4 and antecedent.
User avatar
illwieckz
Project Head
Posts: 473
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Compile error for 0.51.1

Postby illwieckz » Mon Dec 31, 2018 9:20 pm UTC

great
This comment is licensed under cc ​​by 4 and antecedent.

Return to “Troubleshooting”

Who is online

Users browsing this forum: No registered users and 3 guests