darktohka / libtoontown

libotp and libtoontown built for the latest Panda3D 1.11.0 engine, supporting both Python 2 and Python 3.
19 stars 8 forks source link

Error compiling libtoontown on Ubuntu 16.04 #8

Closed DarthMDev closed 3 years ago

DarthMDev commented 3 years ago
Scanning dependencies of target otp
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/cImpulse.cxx.o
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/cMover.cxx.o
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/cMoverGroup.cxx.o
[  1%] Building CXX object cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/config_movement.cxx.o
In file included from /home/azureuser/libtoontown/src/otp/movement/config_movement.h:10:0,
                 from /home/azureuser/libtoontown/src/otp/movement/config_movement.cxx:6:
/usr/include/panda3d/notifyCategoryProxy.h:148:18: error: duplicate explicit instantiation of ‘class NotifyCategoryProxy<NotifyCategoryGetCategory_movement>’ [-fpermissive]
   template class NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename>; \
                  ^
/usr/include/panda3d/notifyCategoryProxy.h:160:3: note: in expansion of macro ‘NotifyCategoryDefName’
   NotifyCategoryDefName(basename, #basename, parent_category);
   ^
/home/azureuser/libtoontown/src/otp/movement/config_movement.cxx:14:1: note: in expansion of macro ‘NotifyCategoryDef’
 NotifyCategoryDef(movement, "");
 ^
cc1plus: warning: unrecognized command line option ‘-Wno-misleading-indentation’
cc1plus: warning: unrecognized command line option ‘-Wno-ignored-attributes’
cmake/otp/CMakeFiles/otp.dir/build.make:134: recipe for target 'cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/config_movement.cxx.o' failed
make[2]: *** [cmake/otp/CMakeFiles/otp.dir/__/__/src/otp/movement/config_movement.cxx.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'cmake/otp/CMakeFiles/otp.dir/all' failed
make[1]: *** [cmake/otp/CMakeFiles/otp.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
DarthMDev commented 3 years ago

Actually, now that I look at that issue it seems to be a panda3d issue possibly? Odd I am using the latest version (1.10.8) with astron support (but this issue doesn't happen on the same panda3d on windows)