JadedCtrl / Cardie

Renamed to https://github.com/JadedCtrl/Chat-O-Matic
https://github.com/JadedCtrl/Chat-O-Matic
Other
2 stars 0 forks source link

Build failed (32bit secondary architecture) #31

Closed Begasus closed 3 years ago

Begasus commented 3 years ago

With a clean checkout the build is failing for me (with libngt and libpurple installed):

g++ -c application/DefaultItems.cpp -iquote./  -iquote./  -iquoteapplication/  -iquoteapplication/preferences/  -iquoteapplication/views/  -iquoteapplication/windows/  -iquotedata/icons/misc/  -iquotedata/icons/replicant/  -iquotedata/icons/status/  -iquoteobjects.x86-cc8-release/  -isystemlibs/  -O3   -DVERSION="\"0.0.2\""  -DBUILD_DATE="\"2021-06-30  -D08:58\""  -o "objects.x86-cc8-release/DefaultItems.o"
application/DefaultItems.cpp: In function 'BObjectList<BMessage> DefaultCommands()':
application/DefaultItems.cpp:84:73: error: no matching function for call to 'ChatCommand::ChatCommand(const char [5], BMessage&, bool, List<int>)'
  ChatCommand* help = new ChatCommand("help", helpMsg, false, List<int>());
                                                                         ^
In file included from application/DefaultItems.cpp:13:
application/ChatCommand.h:31:6: note: candidate: 'ChatCommand::ChatCommand(BMessage*)'
      ChatCommand(BMessage* data);
      ^~~~~~~~~~~
application/ChatCommand.h:31:6: note:   candidate expects 1 argument, 4 provided
application/ChatCommand.h:29:6: note: candidate: 'ChatCommand::ChatCommand(const char*, BMessage, bool, List<long int>)'
      ChatCommand(const char* name, BMessage msg, bool toProtocol,
      ^~~~~~~~~~~
application/ChatCommand.h:29:6: note:   no known conversion for argument 4 from 'List<int>' to 'List<long int>'
application/ChatCommand.h:27:7: note: candidate: 'ChatCommand::ChatCommand(const ChatCommand&)'
 class ChatCommand : public BArchivable {
       ^~~~~~~~~~~
application/ChatCommand.h:27:7: note:   candidate expects 1 argument, 4 provided
application/ChatCommand.h:27:7: note: candidate: 'ChatCommand::ChatCommand(ChatCommand&&)'
application/ChatCommand.h:27:7: note:   candidate expects 1 argument, 4 provided
/boot/system/develop//etc/makefile-engine:297: recipe for target 'objects.x86-cc8-release/DefaultItems.o' failed
make[1]: *** [objects.x86-cc8-release/DefaultItems.o] Error 1
make[1]: Leaving directory '/Opslag/Cardie'
Makefile:4: recipe for target 'app' failed
make: *** [app] Error 2
JadedCtrl commented 3 years ago

Thanks― this shouldd be fixed with the last couple commits I just pushed, could you have another go?

If it works out, trying the libpurple add-on might be worthwhile, even if the Jabber add-on can't be built (ime): make -f protocols/purple/Makefile

Begasus commented 3 years ago

Will give it a go later, thanks so far, on libpurple ... I checked earlier to build it (enabling it in the Makefile) but ran into another error, will get back to that in a new issue I think ;)

Begasus commented 3 years ago

Next error after the latest changes:

application/ChatProtocol.h:85:28: error: 'BPath' has not been declared
    virtual void SetAddOnPath(BPath path) = 0;
                              ^~~~~
  application/ChatProtocol.h:86:10: error: 'BPath' does not name a type
    virtual BPath AddOnPath() = 0
JadedCtrl commented 3 years ago

Alright, just included BPath in the file (8d2ecfd), should work now

Begasus commented 3 years ago

Up to the next error :)

In file included from application/views/UserListView.h:10,
                 from application/views/UserListView.cpp:6:
application/Role.h:25:10: error: field 'fTitle' has incomplete type 'BString'
  BString fTitle;
          ^~~~~~
In file included from /boot/system/develop/headers/os/app/Messenger.h:14,
                 from /boot/system/develop/headers/os/app/Invoker.h:13,
                 from /boot/system/develop/headers/os/interface/ListView.h:9,
                 from application/views/UserListView.h:8,
                 from application/views/UserListView.cpp:6:
/boot/system/develop/headers/os/app/Message.h:29:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
In file included from application/views/UserListView.h:10,
                 from application/views/UserListView.cpp:6:
application/Role.h:20:15: error: 'title' has incomplete type
  Role(BString title, int32 perms, int32 priority)
       ~~~~~~~~^~~~~
In file included from /boot/system/develop/headers/os/app/Messenger.h:14,
                 from /boot/system/develop/headers/os/app/Invoker.h:13,
                 from /boot/system/develop/headers/os/interface/ListView.h:9,
                 from application/views/UserListView.h:8,
                 from application/views/UserListView.cpp:6:
/boot/system/develop/headers/os/app/Message.h:29:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
/boot/system/develop//etc/makefile-engine:297: recipe for target 'objects.x86-cc8-release/UserListView.o' failed
JadedCtrl commented 3 years ago

*f5b90ec― Alright, what's next? =w=

Begasus commented 3 years ago

This one can be closed, build worked :)