Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » alplatf.h

This thread is locked; no one can reply to it. rss feed Print
alplatf.h
Zachary Miller
Member #14,891
January 2013

I was following the tutorial at http://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5. I am using Visual Studios 2012 and not 2010, and the latest version of Allegro so I realize it might not all be the same.

I got the the point where I'm supposed to debug, run it for the first time. I get this error...
c:\allegro\include\allegro5\internal\alconfig.h(28): fatal error C1083: Cannot open include file: 'allegro5/platform/alplatf.h': No such file or directory

I read that that file is supposed to be created or something? I'm not quite sure what to do.

Thanks for your help,
Zachary Miller

Arthur Kalliokoski
Second in Command
February 2005
avatar

wrong
That tutorial assumes you downloaded the binaries, which don't have a platform directory. Are you trying to compile Allegro or just make a program that uses it?

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Edgar Reynaldo
Member #8,592
May 2007
avatar

Zachary Miller
Member #14,891
January 2013

I appreciate the help, but I'm not quite sure what you mean. Is the alplatf.h file in a different place than where it searched for, and so I somewhere put it to the wrong place? Because there is a alplatf.make file there...

Or is that error unrelated and I just didn't put the right directory in somewhere? I double checked it. Sorry, could you be a bit more specific?

Thanks again!

To clarify I'm trying to create a program that uses Allegro. I'm going through this tutorial trying to make sure it works.

Edgar Reynaldo
Member #8,592
May 2007
avatar

Each project has its own properties. In MSVC, that's called a solution. Find out how to set the include file search directory. When you find out how to do that, set it to the include directory of the allegro5 binaries package you downloaded. And you probably don't want to mix versions of MSVC binaries. Otherwise you have to build it yourself, which sucks.

Emanresu
Member #12,510
January 2011

I just recently found out that Allegro doesn't come with that file, it has to be built. I'm not sure how it works with MSVC, but I had to use CMake to get mine built and working with Code::Blocks.

Do you have to use CMake when using Allegro with MSVC?

"* Entoutcas has quit IRC (Quit: And the Lord said unto John; Come forth and receive eternal life. But John came fifth and won a toaster...)"
"I was in a casino, minding my own business, and this guy came up to me and said, 'You're gonna have to move. You're blocking a fire exit.' As though if there was a fire, I wasn't gonna run. If you're flammable and have legs, you are never blocking a fire exit... ...Unless you're a table."
-Mitch Hedberg (R.I.P.)
"Quit: (+[WG]sPiKie) (Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].)"

Go to: