Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamPP-master/steam++.cpp:29:2: error: ‘CMsgClientLogon’ was not declared in this scope #29

Open
tothsuo19 opened this issue Jan 5, 2018 · 1 comment

Comments

@tothsuo19
Copy link

tothsuo19 commented Jan 5, 2018

Several of these errors appear when attempting to build in KDevelop. I've read elsewhere this perhaps may be due to some proto's being moved around. Attempting suggested fixes didn't help.
Thanks for any correspondence.

@mirko911
Copy link

mirko911 commented Apr 16, 2018

Hi, i don't know if you already found the solution. I did the following to get it working:

I added these .proto files to the PROTOBUF_GENERATE_CPP List in the CMakeLists.txt file

        /root/SteamKit/Resources/Protobufs/steamclient/steammessages_clientserver_login.proto
        /root/SteamKit/Resources/Protobufs/steamclient/steammessages_clientserver.proto
        /root/SteamKit/Resources/Protobufs/steamclient/steammessages_base.proto
        /root/SteamKit/Resources/Protobufs/steamclient/encrypted_app_ticket.proto
        /root/SteamKit/Resources/Protobufs/steamclient/steammessages_clientserver_friends.proto
        /root/SteamKit/Resources/Protobufs/steamclient/steammessages_clientserver_2.proto

I also edited each of these .proto files and added syntax = "proto2"; to the first line of the file to get rid of the warnings.
After that I added all the new header files to the cmclient.h file

#include "steam++.h"
#include "steam_language/steam_language_internal.h"
#include "steammessages_clientserver.pb.h"
#include "steammessages_clientserver_login.pb.h"
#include "steammessages_base.pb.h"
#include "encrypted_app_ticket.pb.h"
#include "steammessages_clientserver_friends.pb.h"
#include "steammessages_clientserver_2.pb.h"

Atm. I'm just building the example. I'll create a pull request when I know that everything is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants