|
|
| Where do I start to install allegro |
|
Anthony Gordon
Member #11,716
February 2010
|
I never been so confused about installation in my life. I consider myself to be a expert, if not advanced programmer. But my expertise is mostly in web development. I've done window's applications but Ive never set up an outside library. So I am completely lost. I am using version 4.2 (why?) because that's the version the book I am reading is using so I decided that would be best. I opened the docs folder and read the txt file and it gave a bunch of functions so I am not sure if I am suppose to put those functions somewhere. The book says to add dependency to visual studio express 2005. find and att the allegro.lib file. I am using express 2008 and I can't find where to add dependencies nore can I find the allegro.lib file. if someone could just briefly summarize what i am suppose to do. maybe that might help me out. Could someone help me out!! |
|
Arthur Kalliokoski
Member #5,540
February 2005
|
Look in allegro/examples. Copy them to some temp folder and tweak them a bit at a time to see what happens. It'll take a month or two. I really admire the U.S. Constitution. It's so much better than what we have now. |
|
Anthony Gordon
Member #11,716
February 2010
|
I just updated my original post. as of adding examples to an outside file and tweaking it. I am not sure how that will help. And month or 2 is a long time. |
|
kazzmir
Member #1,786
December 2001
|
Did you look at docs/build/msvc.txt? Anthony Gordon said: And month or 2 is a long time. If you're an expert maybe it will only take you a week to figure out, but anyway whats a month or two? |
|
Johan Halmén
Member #1,550
September 2001
|
Anthony Gordon said: I just updated my original post. Don't do that. The thread will make no sense in the long run. Are you talking about installing allegro in the first place or starting an allegro application project in MSVC? I don't know anything about MSVC and I have a peculiar pleasant feeling because of that. I've installed allegro with MinGW and Dev-Cpp. It's very straight forward. People say Dev-Cpp is crap. But so is allegro. So? You can still do wonderful things with them. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
Dario ff
Member #10,065
August 2008
|
Anthony Gordon said: I consider myself to be a expert, if not advanced programmer. Johan Halmén said: People say Dev-Cpp is crap. The main problem with Dev-Cpp is that it won't compile the sources that included a header if you modified the latter. You have to either modify the sources, delete the objects, or if you want to be sure, recompile the WHOLE project. Other IDEs like Code::Blocks look on their own what sources should be recompiled if a header was modified. kazzmir said: Did you look at docs/build/msvc.txt? Seconded, it's all there. TranslatorHack 2010, a human translation chain in a.cc. |
|
Anthony Gordon
Member #11,716
February 2010
|
I appreciate the responses guys. I am trying to install allegro for Microsoft C++ Express Edition 2008. I actually found a great tutorial but it's not entirely accurate http://wiki.allegro.cc/index.php?title=Install_Allegro_4.9.x_Binary_for_MSVC_2008_Express in the provided link it says to add the path allegro/lib to the "additional library directories". The only problem with that is there is no lib directory. atleast not in the 4.9 versions I tried to download. I downloaded 4.9.15, 4.2.2, 4.9.15.1, 4.9.17 (I downloaded that twice just to make sure) No lib folders. I did however see the lib folders in version less then 4.9.x . But that went against the tutorial. Later on in the tutorial it says Under Configuration Properties > Linker > Input add "allegro-4.9.15.lib allegro_font-4.9.15.lib allegro_ttf-4.9.15.lib" I can't find any of the lib files (allegro-4.9.15.lib). Could any one tell me if I am doing something right Thanks guys again I appreciate the help. I really would like to get started on learning some of this stuff. |
|
gnolam
Member #2,030
March 2002
|
Anthony Gordon said: I downloaded 4.9.15, 4.2.2, 4.9.15.1, 4.9.17 (I downloaded that twice just to make sure) No lib folders.
Then whatever archive handler you are using is broken. BTW, 4.9 has a completely different API from 4.2/4.4, so nothing Allegro-related in your book will be of any use... Anthony Gordon said: I consider myself to be a expert
Quote: I opened the docs folder and read the txt file and it gave a bunch of functions so I am not sure if I am suppose to put those functions somewhere. >_< -- |
|
Anthony Gordon
Member #11,716
February 2010
|
I was afraid of that. well thanks for clearing that up for me. I will try harder to get a folder that has both includes, and lib folders in it. But what about Under Configuration Properties > Linker > Input add "allegro-4.9.15.lib allegro_font-4.9.15.lib allegro_ttf-4.9.15.lib" where can I find "allegro-4.9.15.lib allegro_font-4.9.15.lib allegro_ttf-4.9.15.lib" so I know how to place it in. also. is it possible that someone is formiluar with adding older version (4.2.2) to MSVC++ Express so I can go off the book ?? thanks |
|
Tomoso
Member #3,128
January 2003
|
For 4.2 you want to go here and get download the binaries for Microsoft Visual C++ 9.0. I also found this guide after a quick googling which looks like it should help. Lazy Noob - Blog |
|
Dbaaar
Member #11,731
February 2010
|
Anthony Gordon said: I actually found a great tutorial but it's not entirely accurate http://wiki.allegro.cc/index.php?title=Install_Allegro_4.9.x_Binary_for_MSVC_2008_Express I am new to game design. I was wondering if anyone understand step 5(compiling) on that tutorial. If I understood that I'd be able to finish installing Allegro (4.9.17) to MSVC++ 08 Express and I might be able to help. Also, http://allegro5.org/index.php?option=com_phocadownload&view=category&id=13:4917-binaries&Itemid=53, this link should take you to a place where you can download Allegro 4.9.17 and it had both the lib and include files, but to open it I had to download a program called "BitZipper".
EDIT: You want to download "allegro-4.9.17-msvc-static-bin.7z". "Step 5 - Compiling Before you try to compile we still need to move some files about. Open up your project folder (Default location is something like this: "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects"). [found this part] Once you have your projects folder open you will want to copy over the font file times.tff [what is times.tff?]. Open up the "\Debug" folder inside your project folder and re-copy the font there also (For some reason if you compile inside MSVC without having the font file in your project folder, it wont find it in the folder where your .exe is so keep it in both for now). You will also need copy the contents of "C:\Allegro\dll" folder to your "\Debug" folder. You don't need the dlls your not using but better to be safe than sorry. [I can't find the "dll"'s] Now hit compile and hopefully a black window should appear with 2 lines of texts saying "Allegro 5 Rocks!". And that's it, Allegro should now be working in MSVC++ Express 2008." |
|
LennyLen
Member #5,313
December 2004
|
Dbaaar said: but to open it I had to download a program called "BitZipper". Instead of downloading a program that only works for 30 days (unless you pay for it), the better option would be to get 7-Zip instead, as it's free and open-source. It's also the software written by the people who designed the .7z file format. Quote: [I can't find the "dll"'s] It looks like they're missing from the 4.9.17 binary releases (I just checked both of them), so you're going to have to build Allegro yourself if you want them. Quote: [what is times.tff?]. As the guide said, it's a font file. Step 1 of the guide also said this: and you can either search and download times.ttf from some where or just use another font already on your system.
|
|
Trent Gamblin
Member #261
April 2000
|
The 4.9.17 binary release is static only, you don't need dlls. If eating hotdogs is wrong, I don't wanna be right. |
|
Dbaaar
Member #11,731
February 2010
|
Ok so I went into my fonts. Clicked on Times New Roman. Then copy and pasted the regular one into my debug folder. The file was "times", so it should have worked but it still says there is no such file or directory. |
|
LennyLen
Member #5,313
December 2004
|
Dbaaar said: Ok so I went into my fonts. Clicked on Times New Roman. Then copy and pasted the regular one into my debug folder. The file was "times", so it should have worked but it still says there is no such file or directory. Try putting it in the main project directory with your source code instead. I don't use MSVC, but that's where you have to put files like that with every other IDE I've ever used.
|
|
|