|
|
This thread is locked; no one can reply to it.
|
1
2
|
| Invincible Countermeasure - beta 2 (January 2015) |
|
Peter Hull
Member #1,136
March 2001
|
Linley: - will do. Regarding the Linux makefile, I had some problems with Xubuntu (both it and Mint are based on Ubuntu I believe). The libraries had to come after the .o files on the command line, and also they were registered with pkg-config as allegro-5.0 etc. instead of just allegro-5
|
|
bamccaig
Member #7,536
July 2006
|
Thanks, Peter. Those are the exact problems that I aimed to address with the last set of patches and that pleases me because it means that I was on the right track. Upon further investigation it appears that my fixes had some bugs. It turns out that Makefiles are sensitive to tab characters even outside of rules. The art of Makefile authoring is still coming to me, obviously. The second bug that I had was in my script to detect Allegro versions. For one thing, it didn't silence stderr while it queried pkg-config for different Allegro versions, which would result in ugly error output that was meant to be ignored. For another, it was attempting to capture stdout and check for content whereas it appears that the exit status is a sufficient condition. These bugs have been fixed: The whole set of fixes then becomes: I'll update the issue and see if that helps its OP. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
Peter Hull
Member #1,136
March 2001
|
On the subject of Makefiles, the link action should use `$^` (all prerequisites) rather than `$?` (all prerequisites newer than the target). http://www.gnu.org/software/make/manual/make.html#Automatic-Variables Pete
|
|
bamccaig
Member #7,536
July 2006
|
-- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
Peter Hull
Member #1,136
March 2001
|
I've put in a pull request, never done this before so hopefully it'll be right.
|
|
bamccaig
Member #7,536
July 2006
|
Peter Hull said:
I've put in a pull request, never done this before so hopefully it'll be right. "Right" is subjective. Everybody wants it done a different way (to get it "correct" in a busy environment you basically have to ask, or just try and fix it after). Ultimately, you accomplished the core mechanic that is a pull request (publish the branch somewhere, send correspondence asking upstream to merge it in). There are some changes that I'd like to make before I merge (I try to be a perfectionist), but they're mostly subjective. And with the work that you've done I might be able to figure out an install target. I'll try to work on it this weekend. Thanks! -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
Peter Hull
Member #1,136
March 2001
|
bamccaig said: Ultimately, you accomplished the core mechanic that is a pull request Yay! On the code, my aim was to have a solution applicable to Windows, Mac and Linux, and to change Linley's code as little as possible. I've run into a little snag though - when Xcode is building in development mode it puts the resources in a dir with a very long name, e.g. /Users/peterhull/Library/Developer/Xcode/DerivedData/Countermeasure-edbvuuhnycilvsaagjhpogqmjkcn/Build/Products/Debug/Countermeasure.app/Contents/Resources/data/images/fwss_font.bmp but the IC code has a hard limit of 100 chars for a path. Pete
|
|
Linley Henzell
Member #3,963
October 2003
|
You should be able to get away with just changing FILE_PATH_LENGTH (in g_header.h) from 100 to whatever you need it to be. |
|
|
1
2
|