Compiling SVN for linux

Linux related help section

Re: Compiling SVN for linux

Postby roysen on Fri Jan 11, 2008 6:11 am

Have you read all post in this thread? The same problem is mentions before. How did you install Lazaruz and what is the path to it?
________________________________
Patiently waiting for a Linux version! :)
Running develop version of USdx while I'm waiting.
Image
OpenSuSE 11.0
Girls are always running through my mind. They don't dare walk.
User avatar
roysen
worlds northern most USDX user
 
Posts: 44
Joined: Thu Oct 11, 2007 6:50 am
Location: Norway

Re: Compiling SVN for linux

Postby mog on Tue Jan 15, 2008 2:18 pm

Hey,

I was compiling USDX on my Linux box, till I found out that sdlutils is not gonna work on that architecture. Anyways, I started to log all the stuff I had to do..

On Ubuntu or a Debian do the following to compile USDX from scratch

(1) Install Lazarus Version 2.2
http://wiki.lazarus.freepascal.org/Gett ... repository

(2) Installing neccessary libs
Code: Select all
sudo apt-get install fp-ide fp-units-*


(3) Fetch the source of our trunk
Code: Select all
svn co https://ultrastardx.svn.sourceforge.net/svnroot/ultrastardx/trunk ultrastardx


(4) Start Lazarus
Menu -> Applications/Programming/Lazarus

(5) Get all the necessary libs
* jedi-sdl v1.1
http://sourceforge.net/project/platform ... p_id=43805

* opengl 1.2
http://forum.ultrastardeluxe.org/compil ... engl12.zip
I already changed the path to the inc file, make sure that fits for you!
opengl12.pas -> line 256 -> {$I ../../SDL/Pas/jedi-sdl.inc}

(6) Compile
.. here's where fortune left me, because of my wrong architecture when compiling the sdlutils.pas


Hope that helped a bit, at least the opengl12.pas will not be a blocker for you anymore. Make sure, that when you level up in this riddle, to write down the solutions here..

Greetings, Mog
Uhm, I don't use punctuation marks - I has smilies!!
User avatar
mog
Developer
 
Posts: 106
Joined: Mon Sep 10, 2007 11:28 am

Re: Compiling SVN for linux

Postby roysen on Wed Jan 23, 2008 12:01 am

My way on OpenSuSE 10.3 x86 (32bit).

Install fpc-2.2.0-0 http://downloads.sourceforge.net/lazarus/fpc-2.2.0-0.i386.rpm?modtime=1194556742&big_mirror=1
Install fcp-src-2..2.0-0 http://downloads.sourceforge.net/lazarus/fpc-src-2.2.0-071105.i386.rpm?modtime=1194556788&big_mirror=1
Install lazarus-0.9.24-0 http://downloads.sourceforge.net/lazarus/lazarus-0.9.24-0.i386.rpm?modtime=1194556888&big_mirror=1

Fetch latest USdx source
svn co https://ultrastardx.svn.sourceforge.net ... ltrastardx ultrastardx
"svn info" output:
Sist endret av: eddie-0815
Siste endrede revisjon: 802
Dato for siste endring: 2008-01-20 19:17:19 +0100 (søn, 20 jan 2008)


Install JEDI-SDL w/opengl12.pas
Get JEDI-SDL and extract it to souce code "ultrastardx/trunk/Game/Code/lib/JEDI-SDLv1.0"
http://www.northcapeonline.com/downloads/JEDI-SDLv1.zip

Build USDXResCompiler
Compile "USDXResCompiler.lpr" in UltrastarDX\trunk\Tools with "linux-build.sh". Then take that binary, run it like "USDXResCompiler Ultrastar.rc" and you will end up with the "UltraStar.lrs" file ( which needs to be in the UltrastarDX\trunk\Game\Code directory )

Build USDX
Edit /trunk/Games/Code/linux-build.sh to my lazarus path:
clear
fpc -S2cgi -OG1 -gl -vewnhi -l -Filib/JEDI-SDLv1.0/SDL/Pas/ -Fu/usr/lib/lazarus/components/images/lib/i386-linux/ -Fu/usr/lib/lazarus/lcl/units/i386-linux/ -Fu/usr/lib/lazarus/lcl/units/i386-linux/gtk2/ -Fu/usr/lib/lazarus/packager/units/i386-linux/ -Fu. -oUltraStar -dLCL -dLCLgtk2 UltraStar.lpr


Run linux-build.sh in ultrastardx/trunk/Game/Code/

And end up with this error:
Compiling Classes/UPlatformLinux.pas
UPlatformLinux.pas(18,14) Error: There is no method in an ancestor class to be overridden: "TPlatformLinux.DirectoryFindFiles(WideString, WideString, Boolean):Dynamic Array Of TDirectoryEntry"
UPlatformLinux.pas(19,14) Error: There is no method in an ancestor class to be overridden: "TPlatformLinux.TerminateIfAlreadyRunning(var AnsiString):Boolean"
UPlatformLinux.pas(21,14) Error: There is no method in an ancestor class to be overridden: "TPlatformLinux.GetLogPath:WideString"
UPlatformLinux.pas(22,14) Error: There is no method in an ancestor class to be overridden: "TPlatformLinux.GetGameSharedPath:WideString"
UPlatformLinux.pas(23,14) Error: There is no method in an ancestor class to be overridden: "TPlatformLinux.GetGameUserPath:WideString"
UPlatformLinux.pas(24,6) Error: No matching implementation for interface method "IPlatform.FindSongFile(WideString, WideString):WideString" found
UPlatformLinux.pas(24,6) Error: No matching implementation for interface method "IPlatform.halt" found
UPlatformLinux.pas(26,1) Fatal: There were 7 errors compiling module, stopping
Fatal: Compilation aborted

What the **** did I wrong now? :evil:
________________________________
Patiently waiting for a Linux version! :)
Running develop version of USdx while I'm waiting.
Image
OpenSuSE 11.0
Girls are always running through my mind. They don't dare walk.
User avatar
roysen
worlds northern most USDX user
 
Posts: 44
Joined: Thu Oct 11, 2007 6:50 am
Location: Norway

Re: Compiling SVN for linux

Postby jaybinks on Tue Jan 29, 2008 12:49 am

thats compiler problems..
maybe switches.inc has incorrect settings for you.

henny has started on a configure script that should help with this sort of thing in the futuer.
otherwise, jump on IRC and Ill see if I can help you.
jaybinks
Developer
 
Posts: 27
Joined: Wed Sep 12, 2007 10:23 am
Location: Brisbane Australia

Re: Compiling SVN for linux

Postby Fredz on Mon Feb 04, 2008 1:09 am

I've managed to compile the svn version with fpc on Linux with some modifications to the source code, but I've got an error when starting the application. The splash screen does appear and it starts analyzing songs, but then I've got an exception. Does anyone know where it could come from ?

Error: SongList [Searching For Songs]
[snip] various errors from bad txt files, just like in MS Windows [/snip]
Error: SongList [Search Complete]
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$08110370
$0809AB92 TCATSONGS__REFRESH, line 446 of Classes/USongs.pas
$080C9330 TSCREENSONG__CREATE, line 761 of Screens/UScreenSong.pas
$08082B66 LOADSCREENS, line 682 of Classes/UGraphic.pas
$0808256D INITIALIZE3D, line 503 of Classes/UGraphic.pas
$0808AC60 MAIN, line 307 of Classes/UMain.pas
$08049DAD main, line 35 of UltraStar.lpr
TApplication.HandleException Access violation
Stack trace:
$08110370
$0809AB92 TCATSONGS__REFRESH, line 446 of Classes/USongs.pas
$080C9330 TSCREENSONG__CREATE, line 761 of Screens/UScreenSong.pas
$08082B66 LOADSCREENS, line 682 of Classes/UGraphic.pas
$0808256D INITIALIZE3D, line 503 of Classes/UGraphic.pas
$0808AC60 MAIN, line 307 of Classes/UMain.pas
$08049DAD main, line 35 of UltraStar.lpr
[FORMS.PP] ExceptionOccurred
Fredz
 
Posts: 25
Joined: Mon Feb 04, 2008 1:01 am

Re: Compiling SVN for linux

Postby jaybinks on Tue Feb 12, 2008 11:52 pm

linux version seems to be mostly working now.

playable, although not 100%
still some visual stuff needs fixing, and ive got some reports of the audio not being 100% in sync with words
but hey, we are getting there !

check out the current preview package if you want.
http://downloads.sourceforge.net/ultrastardx/UltraStarDeluxe_1.1_i386.deb?use_mirror=osdn

tested on ubuntu 7.1
no songs included... will need to put them in /usr/local/share/UltraStarDeluxe/Songs

--
edit
<mog> changed the download link from senduit to our webspace
jaybinks
Developer
 
Posts: 27
Joined: Wed Sep 12, 2007 10:23 am
Location: Brisbane Australia

Re: Compiling SVN for linux

Postby ttx07 on Fri Feb 22, 2008 5:15 pm

just tried UltraStarDeluxe_1.1_i386.deb on Ubuntu 7.10 (gutsy), fails with exception / error below.
Any ideas on how to proceed ?? Recompile ?

## Error was:
Input #0, mp3, from '/usr/local/share/UltraStarDeluxe/Sounds/rimshot022b.mp3':
Duration: 00:00:00.1, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, mono, 128 kb/s
Searching for Theme : /usr/local/share/UltraStarDeluxe/Themes/*.ini
Deluxe.ini
Classic.ini
TTheme.LoadTheme : /usr/local/share/UltraStarDeluxe/Themes/Deluxe.ini
feof
int_LoadSongList
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$00000000
$0807FE54
$080882FD
TApplication.HandleException Access violation
Stack trace:
$00000000
$0807FE54
$080882FD
[FORMS.PP] ExceptionOccurred
ttx07
 
Posts: 2
Joined: Fri Feb 22, 2008 5:09 pm

Re: Compiling SVN for linux

Postby Fredz on Fri Feb 22, 2008 11:50 pm

It could come from the paths, you can try to compile like this to avoid this problem (from the ultrastardx/Game/Code directory) :
./autogen.sh
./configure --enable-dev-build
make

Then copy the UltraStar executable to a place where you have an unzipped installation with Languages, Themes, Songs, etc. directories.

It this doesn't work, make sure you don't have a Tabs=On line in your config.ini.

If this still doesn't work, you could use gdb to launch USDX and find the real reason of the bug with a backtrace.
Fredz
 
Posts: 25
Joined: Mon Feb 04, 2008 1:01 am

Re: Compiling SVN for linux

Postby ttx07 on Mon Feb 25, 2008 11:09 am

Well,

Found out that running UltraStarDeluxe (installed from deb package on Ubuntu 7.10 gutsy)
runs if started from install directory (/usr/local/share/UltraStarDeluxe) but is deadly slow
even on my brand new 2 Processor Machine.

A fresh compiled version (compiled with configure --enable-dev-build) dumps core
(Segmentation fault from /usr/lib/libSDL-1.2.so.0).
My last Pascal Programming was in 1986, so I switched to ultrastar-ng and got
it running (quick even on laptop).

Thanks for your hints !
Michael.
ttx07
 
Posts: 2
Joined: Fri Feb 22, 2008 5:09 pm

Re: Compiling SVN for linux

Postby jaybinks on Tue Feb 26, 2008 12:33 pm

how strange..
every machine Ive tried the deb on is fine for speed..

do you have the NVidia or ATI drivers installed for your card,
or the open source versions ??

maybe thats the issue.
jaybinks
Developer
 
Posts: 27
Joined: Wed Sep 12, 2007 10:23 am
Location: Brisbane Australia

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests

cron