Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » Upp moves to SVN
Re: Upp moves to SVN [message #1339 is a reply to message #1335] Tue, 28 February 2006 11:07 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13982
Registered: November 2005
Ultimate Member
iplayfast wrote on Mon, 27 February 2006 20:18

I've not seen smartsvn before. It looks like it would do the job. Why do you think it's better then TortoiseSVN?

Attached is my first patch! (whee!!)

This patch allows the SDLexample to work on Linux. The only thing is, I think that the beta I downloaded already has some changes in it.

Is the svn at sourceforge up to date?

The patch (human readable)
Replace this
#include <SDL.h>

with this
#include <SDL/SDL.h>

According to SDL sites this is what is expected. But in just trying out this patch on windows, it breaks it. Perhaps you folks need to add and SLD directory before the one you added to windows? (just guessing)

replace this
        fntbmp = SDL_LoadBMP(GetDataFile("font.bmp"));

with this
#ifdef PLATFORM_WIN32
        fntbmp = SDL_LoadBMP(GetDataFile("font.bmp"));
#endif
#ifdef PLATFORM_POSIX
    fntbmp = SDL_LoadBMP(GetDataFile("upp/examples/SDLExample/font.bmp"));
#endif

So that the font.bmp is found. I don't know the best way of handling this for an example program. The data isn't with the binary under Linux, so I just mapped it to where it was from my home directory.

There is probably a better way to handle this, but I don't know.




Well, I have repaired the part I could by your previous patch. However, I was not able to resolve that DataFile problem there as well..... (brc maybe?).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upp 602 beta4 released
Next Topic: New installer (and release system) test
Goto Forum:
  


Current Time: Mon Jun 03 03:03:57 CEST 2024

Total time taken to generate the page: 0.00874 seconds