Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Error with the agk.h

Author
Message
Filla
User Offline
Joined: 7th Oct 2020
Location:
Posted: 7th Oct 2020 17:09 Edited at: 11th Oct 2020 09:48
Hello community.

I'm completely new with C++ but i'm trying the Tutorials from the AppGameKit.
I'm now at the Bumble Bee Tutorial.
My Version is the AppGameKit IDE 2020.04.30c on Linux Kubuntu.

When I try to load the two sprites I have an Error that says that the agk.h could not be found.

The "template.cpp" includes the "template.h" with



In the template.cpp I have the following lines like it's said in the Tutorial:



The "template.h" includes "agk.h":



And I insert the lines:



Normally it should work...

So maybe their could be a problem with the INC directions in the Makefile.

I was looking if the agk.h file exists and it does at:



In the makefile I wrote the lines:



Like I should do in the tutorial.

But why cant it find the agk.h file and dont set the background and the bumble?

i dont understand whats wrong...Maybe it's a stupid question but I cant fix it.

PS.: I was never writing in a forum like this. I hope that the "[" and the "]" set the codes in the codefields. didnt know which one by code I should use, sorry ^^
“The doer alone learneth.”
- Friedrich Nietzsche -
Lupo4mica37
User Offline
Joined: 1st Jun 2020
Location:
Posted: 7th Oct 2020 20:17 Edited at: 7th Oct 2020 20:21
Hi Filla,

In the case you want to write several lines of code, especially good for more lengthy code, you can use the button above marked Code and choose from the list which language then copy and paste the code and then click on the button Code again and choose the appropriate language to close the code section.



As an example. For C++, you can choose C++ from the Code button menu.

PS I have never been part of any forum, but this one is a good one to be part of. It can be difficult at times, but on the long run it is a very good place to grow and learn from the wonderful people here.
????????
Filla
User Offline
Joined: 7th Oct 2020
Location:
Posted: 15th Oct 2020 17:48
Hey Lupo,

Thanks for helping with the code section. Now it looks a lot better ^.^

Now it can start with the actually problem XD
Maybe you can help me with it, too ^.^
“The doer alone learneth.”
- Friedrich Nietzsche -
JonEnstrom
User Offline
Joined: 27th Apr 2020
Location:
Posted: 21st Oct 2020 19:24
Depending on your C++ IDE program you'll need to figure out how to setup your IDE/project to include files in the C++Libraries/common/include folder.

Also, you don't need to declare your variables in the header file like you are trying to do, they should be declared in the template.cpp file near the top after the line that says "app App;"
Lupo4mica37
User Offline
Joined: 1st Jun 2020
Location:
Posted: 26th Oct 2020 21:39 Edited at: 26th Oct 2020 21:53
Hi Filla, you better ask Lee. I am not qualified to help you, nor I have time to even investigate this problem at present. Forgive me.

EDIT: Actually, there is someone in this forums that cold potentially help you. His nick is JeZxLee. Private Message him about your problem. He has a lot of experience with C++, so good person to contact about the matter. Here is his webpage. I hope that helps. Take care.
????????

Login to post a reply

Server time is: 2020-12-04 21:09:38
Your offset time is: 2020-12-04 21:09:38