Linux favour...
Miscellaneous Forums/General Discussion/Linux favour...
would some kindly person who has a blitzmax on linux please compile this for me. It's a really simple game i wrote last week, but i don't have a Linux machine ATM
http://www.charliesgames.com/bSquareArena.zipi just need the .exe (or whatever), and there should be no changes to make to the code.
i've got the windows and mac versions too which i'll post soon.
i don't really have anything to offer except a copy of the super *rare* Linux version of Bullet Candy, if that helps...
Cheers
Charlie
Best way is get VirtualBox and a ubuntu linux CD then, setup a virtual machine and install Linux on that. Then download the required Linux BlitzMax bits then compile :)
Give me a short while. and I'll compile it in Linux for you.
Sent you an email.
I would advise getting Ubuntu (or Xubuntu) and install it in Windows. Thats saves having to partition anything... Very useful!
Dam beat me to it :)
Virtual PC 2007 is free now, just so you know.
I tried to do an install of ubtuntu on a partition. I got to the installation screen and it asked me what partition to use...
But I don't know which one has windows on, and there is no reference to point to as they both use the same reference.
How do you know which partition has Windows on in the Ubuntu installation screen?
Also, does Blitz Max work in Ubuntu? I've never tried it.
Also, does Blitz Max work in Ubuntu? I've never tried it.
Yes, it does.
But I don't know which one has windows on, and there is no reference to point to as they both use the same reference.
I think the partitions should have a drive name on them, most likely your windows installation is on 'C:\'.
Google how to install Ubuntu, you have to create a swap partition and a Linux file-system partition.
Thanks MrTAToad, much appreciated.
Also, if anyone has the ability to compile a c++ and SDL version of the game under linux, that would be great. same prize though, sorry ;)
http://www.charliesgames.com/SquareArena.zipit needs SDL_mixer, SDL_ttf and just plain old SDL to compile.
should be pretty straight forward to compile, but you will need to probably watch the SDL includes and also the high score loading and saving lines (before the first while loop and in the enterHighScore() function, this needs to be a real location on the hard disk)
Cheers
Charlie
How do you know which partition has Windows on in the Ubuntu installation screen?
That depends on how you've partitioned the drive.
There is a tool you can use when you use the Live CD ( try ubuntu without changing you hard drive setup ) call Gparted (it can be found under System->Adminastrator as Partition Editor).
This tool will allow you to create/delete/resize a partition as well as display file system information.
Unix/Linux will display the avalible drives as /dev/sda /dev/sdb (for SATA drives) or /dev/hda /dev/hdb for PATA Drives and a partition on those drives as a number (e.g /dev/sda1 /dev/sda2).
Windows file systems would be listed as ntfs (Windows 2K/XP/VISTA/SERVER 200x or fat32 (windows 95/98).
Be warned before you do any kind of messing with the partition table. Make sure you have...
1) An original manufatures disk (or one that can be created from the back up software supplied with the computer as a windows backup soultion is no good at all)
2) You back up any data you wish to keep.
@jkrankie
The file for the SDL version zip file you posted is corrupted
yes, it had only uploaded half the file for some reason,
try this new one:
http://www.charliesgames.com/SquareArena.zipCheers
Charlie
Cant do the Linux one - still trying to work out how to use KDevelop. Its not exactly the most friendly IDE around :(
you can compile from the command line if you have the SDL libraries installed. you should be able to get them from synaptic package manger if you are using ubuntu
Cheers
Charlie
Thanks.
My computer is already partitioned.
In installing, it lists two radio buttons that named exactly the same, with the same reference number.
In "Manual" it does display the available drives. I can't remember what it says. But I don't recall any numbers. I'll have to check on the Live CD again.
I have backed up my work, and I'll probably install it later this week as soon as I've figured out which partition holds what
Well I know every thing is installed correctly but I'm getting an error with TTF_RenderText_Soild function "undefined reference"
@dawlane - this might have something to do with the includes at the top of the main.cpp file, they should say something like:
#include "SDL/SDL.h"
#include "SDL/SDL_ttf.h"
#include "SDL/SDL_mixer.h"
i think i might have changed them to get them to work on my mac, so you might find that is the problem.b you may not even need the "SDL/" at all.
Cheers
Charlie
Hold on I'm an idiot for got to add the libs to the link stage. Don't know why `sdl-config --libs` isn't doing that?
For installing ubuntu just for compiling BMax and the like, use Wubi, it lets you install Ubuntu on your windows partition (no need to repartition).
OK little problem here
class Bomb
{
public:
Bomb::Bomb(float inX,float inY);<-HERE
void update(float inX,float inY);
void draw();
float x[1000],y[1000];
float radius[1000],angle[1000];
float speed;
int life;
};
SquareArena/main.cpp|300|error: extra qualification ‘Bomb::’ on member ‘Bomb’
Removed the Bomb:: bit
Got it to compile but crashes on start up
that'll be the high score file trying to access the root directory. you'll need to change that to probably your home folder (is it ~/ on linux?)
Cheers
Charlie
Been debugging it's having problems with loading the game images.
Edit: Could do with adding a get paths function so the program finds it's files
the image and sound files need to be in the same folder as the executable, it will work then. this one threw me earlier on my mac, as i had placed the images and sounds and the ttf file in the project folder, which is not where the game executable is stored.
Cheers
Charlie
They are. If I remember you have to pass the absolute path in Unix systems.
I will look into this later tomorrow night.
so long as the images etc are in the same directory as the exe, the only thing that will cause a problem is the high score file location.
Cheers
Charlie
so long as the images etc are in the same directory as the exe
It isn't that simple with linux.
I've modified your code a bit so that the application will find out where it lives (It should compile on a Mac as well).
You may need to tidy it up a bit ;)
Don't forget to mention me in the credits :)
And it will need to be tested on a few other machines.
Check your email
Let me know if you got it
no sign of the email, could you try sending it to charlie@...
Cheers
Charlie
Sent it again
wow, thanks very much. the path stiff is especially interesting.
Cheers
Charlie
hmmm... BulletCandyV2 for linux (Ubuntu 8.04) you gave me gives a lovely singnal 11 in appstub when loading the levels.
If i remember that's a invalid memory segment access.
I checked out the Beta version which runs fine.
The path stuff is quite interesting.
I know that /proc is a virtual file directory containing all running process on the machine and have been trying to figure out how it works.
The man page may give clues
http://linux.die.net/man/5/proc though I did read somewhere that /proc may become redundant in the future.
After reading the article at LinuxQuestion.org. I think I have the answer
/proc/self is a symbolic link to the process-ID subdir of /proc, e.g.
/proc/4323 when the pid of the process of this program is 4323.
Inside /proc/<pid> there is a symbolic link to the executable that is
running as this <pid>. This symbolic link is called "exe". So if we
read the path where the symlink /proc/self/exe points to we have the
full path of the executable.