koffice plugin headers #4

Closed
opened 4 years ago by Ghost · 1 comments
Ghost commented 4 years ago

When we try to build kmplayer with the koffice plugin (--enable-koffice-plugin) the configure script fails to detect the koffice's headers such as "koDocument.h", because there's no "koDocument.h" header in koffice, only "KoDocument.h" with a big K, as a result the koffice plugin never gets built.

same goes for "koView.h" and "koFrame.h", both with a big K in koffice's headers.

If I correct that misspelling in configure.in.in as well as in kmplayer_koffice_part.cpp and kmplayer_koffice_part.h then FTBFS occurs with this error:

kmplayer/src/kmplayer_koffice_part.h:42:7: error: ‘struct KMPlayer’ redeclared as 
different kind of entity
   42 | class KMPlayer;
      |       ^~~~~~~~
In file included from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayertypes.h:24,
                 from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayerplaylist.h:32,
                 from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayersource.h:28,
                 from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayerview.h:33,
                 from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayerpartbase.h:35,
                 from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayer_koffice_part.cpp:44:
/home/cethyel/CMAKE_CONVERSION/kmplayer/src/triestring.h:25:11: note: previous 
declaration ‘namespace KMPlayer { }’
   25 | namespace KMPlayer {
      |           ^~~~~~~~
make[2]: *** [src/CMakeFiles/kmplayerkofficepart-module.dir/build.make:68:
src/CMakeFiles/kmplayerkofficepart-module.dir/kmplayer_koffice_part.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:151: src/CMakeFiles/kmplayerkofficepart-module.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
When we try to build kmplayer with the koffice plugin (--enable-koffice-plugin) the configure script fails to detect the koffice's headers such as "koDocument.h", because there's no "koDocument.h" header in koffice, only "**K**oDocument.h" with a big K, as a result the koffice plugin never gets built. same goes for "koView.h" and "koFrame.h", both with a big K in koffice's headers. If I correct that misspelling in **configure.in.in** as well as in **kmplayer_koffice_part.cpp** and **kmplayer_koffice_part.h** then FTBFS occurs with this error: ``` kmplayer/src/kmplayer_koffice_part.h:42:7: error: ‘struct KMPlayer’ redeclared as different kind of entity 42 | class KMPlayer; | ^~~~~~~~ In file included from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayertypes.h:24, from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayerplaylist.h:32, from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayersource.h:28, from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayerview.h:33, from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayerpartbase.h:35, from /home/cethyel/CMAKE_CONVERSION/kmplayer/src/kmplayer_koffice_part.cpp:44: /home/cethyel/CMAKE_CONVERSION/kmplayer/src/triestring.h:25:11: note: previous declaration ‘namespace KMPlayer { }’ 25 | namespace KMPlayer { | ^~~~~~~~ make[2]: *** [src/CMakeFiles/kmplayerkofficepart-module.dir/build.make:68: src/CMakeFiles/kmplayerkofficepart-module.dir/kmplayer_koffice_part.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:151: src/CMakeFiles/kmplayerkofficepart-module.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 ```
SlavekB added a new dependency 4 years ago
Owner

Solved by the above mentioned commits.

Solved by the above mentioned commits.
SlavekB closed this issue 4 years ago
SlavekB added this to the R14.0.8 release milestone 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Reference: TDE/kmplayer#4
Loading…
There is no content yet.