Blargh! ok. I went and compiled those libraries from source, and now it's working. I had them in my /Library/Frameworks/SDL.framework, but apparently that's not good enough.
Done messing around for the evening, but I tried unsuccessfully to get the robe graphics into a .png file. I think I messed /something/ up, because even when the game didn't bug out when I equipped them, it still didn't actually show any robes. Ah well, something for tomorrow!
You did give me the access, and I did commit directly. I'll try to do things the courteous way from here on out, though, and commit to my own branch and file pull requests.
I can do that! I actually already just committed them directly into it, is that bad form? Should I use my own repo and then do the pull requests from there? Sorry, n000000b am I.
(Also, as a probably corrolary to #1, how do I set, say, Fire immunity?)
What. The. Heck. OK. So after playing with various permutations and Googlations, I found this to work:
g++ -I /usr/local/include/SDL src/*.cpp -o flare -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -framework Cocoa
Woooo
Now I'm down to just
$ g++ -I /usr/local/include/SDL src/*.cpp -o flare -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
(maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Blargh! ok. I went and compiled those libraries from source, and now it's working. I had them in my /Library/Frameworks/SDL.framework, but apparently that's not good enough.
Installed the SDL from source http://www.libsdl.org/release/SDL-1.2.15.tar.gz
Followed up with
$ g++ -I /usr/local/include/SDL src/*.cpp -o flare -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf
Got a bunch of errors like this:
In file included from src/AStarNode.h:11,
from src/AStarNode.cpp:1:
src/Utils.h:28:23: error: SDL_image.h: No such file or directory
In file included from src/Animation.cpp:28:
src/Animation.h:31:23: error: SDL_image.h: No such file or directory
In file included from src/Avatar.cpp:24:
src/Animation.h:31:23: error: SDL_image.h: No such file or directory
In file included from src/WidgetTooltip.h:25,
from src/MapIso.h:31,
from src/Entity.h:28,
from src/Avatar.h:27,
from src/Avatar.cpp:25:
src/FontEngine.h:25:21: error: SDL_ttf.h: No such file or directory
In file included from src/Entity.h:28,
from src/Avatar.h:27,
from src/Avatar.cpp:25:
I'm trying to compile FLARE (well actually, Polymorphable) on 10.7, but I'm getting the following errors:
$ cmake ..
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 3.1.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /Applications/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
Call Stack (most recent call first):
/Applications/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/FindSDL.cmake:172 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:34 (Find_Package)
-- Configuring incomplete, errors occurred!
Done messing around for the evening, but I tried unsuccessfully to get the robe graphics into a .png file. I think I messed /something/ up, because even when the game didn't bug out when I equipped them, it still didn't actually show any robes. Ah well, something for tomorrow!
Just so that I can always be up to date with whatever you're doing for code, I'll just work out of your branch directly, if that's alright, then!
You did give me the access, and I did commit directly. I'll try to do things the courteous way from here on out, though, and commit to my own branch and file pull requests.
I can do that! I actually already just committed them directly into it, is that bad form? Should I use my own repo and then do the pull requests from there? Sorry, n000000b am I.
Pages