sudo apt install libsfml-dev
git clone https://github.com/dulsi/ostrichriders
cd ostrichriders
make -f OstrichRiders.cbp.mak
src/sfmlGame/MediaManagers/SoundManager.cpp: In member function ‘void SoundManager::addSound(const char*)’:
src/sfmlGame/MediaManagers/SoundManager.cpp:44:46: error: ‘printf’ was not declared in this scope
printf("Loading sound: %s...\n", fileName);
themightyglider {l Wrote}:I had some trouble to build your game from source on Ubuntu 14.4 32Bit and 64Bit as well.
I tried:sudo apt install libsfml-dev
git clone https://github.com/dulsi/ostrichriders
cd ostrichriders
make -f OstrichRiders.cbp.mak
And here is the error I get:src/sfmlGame/MediaManagers/SoundManager.cpp: In member function ‘void SoundManager::addSound(const char*)’:
src/sfmlGame/MediaManagers/SoundManager.cpp:44:46: error: ‘printf’ was not declared in this scope
printf("Loading sound: %s...\n", fileName);
What am I doing wrong?
obj/Debug/src/sfmlGame/Entity/MenuEntity.o: In function `MenuEntity::MenuEntity(sf::Font const*, int, Menu*, float, float, float)':
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:22: undefined reference to `sf::String::String(wchar_t const*)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:22: undefined reference to `sf::Text::Text(sf::String const&, sf::Font const&, unsigned int)'
obj/Debug/src/sfmlGame/Entity/MenuEntity.o: In function `MenuEntity::render(sf::RenderWindow*)':
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:68: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:68: undefined reference to `sf::Text::setColor(sf::Color const&)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:70: undefined reference to `sf::String::String(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:70: undefined reference to `sf::Text::setString(sf::String const&)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:72: undefined reference to `sf::String::String(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:72: undefined reference to `sf::Text::setString(sf::String const&)'
/home/scameron/github/ostrichriders/src/sfmlGame/Entity/MenuEntity.cpp:76: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
[... many more that I omitted ...]
$ dpkg -l | grep sfml
ii libsfml-audio2:amd64 2.1+dfsg-4ubuntu2 amd64 Simple and Fast Multimedia Library - Audio part
ii libsfml-dev:amd64 2.1+dfsg-4ubuntu2 amd64 Simple and Fast Multimedia Library - Development Files
ii libsfml-graphics2:amd64 2.1+dfsg-4ubuntu2 amd64 Simple and Fast Multimedia Library - Graphics part
ii libsfml-network2:amd64 2.1+dfsg-4ubuntu2 amd64 Simple and Fast Multimedia Library - Network part
ii libsfml-system2:amd64 2.1+dfsg-4ubuntu2 amd64 Simple and Fast Multimedia Library - System part
ii libsfml-window2:amd64 2.1+dfsg-4ubuntu2 amd64 Simple and Fast Multimedia Library - Window part
$ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.3
DISTRIB_CODENAME=rosa
DISTRIB_DESCRIPTION="Linux Mint 17.3 Rosa"
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
cat: /etc/upstream-release: Is a directory
$ bin/Release/OstrichRiders
Failed to load image "/usr/share/ostrichriders/media/hero0.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/hero1.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/hero2.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/mods/standard/media/tiles.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/ennemy0.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/ennemy1.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/ennemy2.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/ennemy3.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/egg16.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/gate64.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/mods/standard/media/bg.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/intro.jpg". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/blackPart.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/hud.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/select.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/life0.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/life1.png". Reason : Unable to open file
Failed to load image "/usr/share/ostrichriders/media/life2.png". Reason : Unable to open file
...
$ find . -type f -print | xargs grep usr.share
./ostrichriders.spec:mkdir -p %{buildroot}/usr/share/ostrichriders
./ostrichriders.spec:mkdir -p %{buildroot}/usr/share/icons/hicolor
./ostrichriders.spec:mkdir -p %{buildroot}/usr/share/appdata
./ostrichriders.spec:cp -R data/* %{buildroot}/usr/share/ostrichriders
./ostrichriders.spec:cp -R icons/* %{buildroot}/usr/share/icons/hicolor/
./ostrichriders.spec:cp ostrichriders.appdata.xml %{buildroot}/usr/share/appdata
./ostrichriders.spec:desktop-file-install --dir=%{buildroot}/usr/share/applications ostrichriders.desktop
Binary file ./obj/Release/src/joust/GameConstants.o matches
Binary file ./obj/Release/src/defaultfont.o matches
Binary file ./obj/Windows/src/joust/GameConstants.o matches
Binary file ./obj/Windows/src/defaultfont.o matches
Binary file ./obj/Debug/src/joust/GameConstants.o matches
Binary file ./obj/Debug/src/defaultfont.o matches
Binary file ./bin/Release/OstrichRiders matches
Binary file ./bin/Debug/OstrichRiders matches
./src/defaultfont.cpp:// #define JOUST_FONT "/usr/share/fonts/liberation/LiberationSans-Regular.ttf"
./src/defaultfont.cpp:#define JOUST_FONT "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf"
./src/joust/GameConstants.cpp:#define JOUST_DATA_DIR_DEFAULT "/usr/share/ostrichriders/"
grep: ./data/mods/random/scores: No such file or directory
grep: (copie).dat: No such file or directory
grep: ./data/mods/sandbox/scores: No such file or directory
grep: (copie).dat: No such file or directory
grep: ./data/mods/standard/scores: No such file or directory
grep: (copie).dat: No such file or directory
char *joust_data_dir_default(void)
{
static char *jdd = NULL;
if (jdd)
return jdd;
jdd = getenv("JOUST_DATA_DIR_DEFAULT");
if (!jdd)
jdd = "/usr/share/whatever/the/default/path/was";
return jdd;
}
smcameron {l Wrote}:Or maybe provide a command line option...
OstrichRiders --datadir blah
smcameron {l Wrote}:And maybe a man page. And the sound effects could use some work, esp. the wingsFlap.wav sounds like someone typing on an old Underwood typewriter. But, the original Joust sound effects by the famous Eugene Jarvis are a tough act to follow.
smcameron {l Wrote}:And there's something a little odd about the controls... as you let your ostrich fall downwards, no matter how fast you let your descent become, a single tap on the space bar brings your ostrich to a halt -- I am pretty sure the original game's controls didn't work like that.
smcameron {l Wrote}:Having given these very minor criticisms (which you should feel free to ignore if you want to), I should also say that this game is pretty cool, very nicely done.
dulsi {l Wrote}:smcameron {l Wrote}:Or maybe provide a command line option...
OstrichRiders --datadir blah
OstrichRiders -ldata
Probably should document it. I kinda expected people would use Code::Blocks so the project file automatically runs it with that argument. I only added the makefile because I wanted to be able to package it for Fedora and couldn't otherwise. Detecting the lack of /usr/share/OstrichRiders and trying data is probably something I should add.
Akien {l Wrote}:I think most people will actually use the Makefile instead of loading it in an IDE that they're not necessarily familiar with.
velocity.y += weight * delay;
dulsi {l Wrote}:Ostrich Riders 0.6.4 has been released. There is not much new. I just wanted a new release to attempt to get it into Fedora.
Users browsing this forum: No registered users and 1 guest