Offline
Jelly Stone park, MD USA

So search didn't turn up any hits, so I'll ask here. Did anyone get Klystracker to build on RPi2? I get 2 errors on many GUI objects. Using the Deb Jessie packages
    sudo apt-get install libsdl2-dev
    sudo apt-get install libsdl2-2.0-0
    sudo apt-get install libsdl2-image-dev
I get many
    " warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]"
on    
slider, file_list_view, flip, checkbox, button_event, button_text_event, spinner

and many
    "error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]"
on
songinfo1_view, songinfo2_view, songinfo3_view, playstop_view, info_line, write_command, program_view, inst_field, instrument_name_view, instrument_view, instrument_view2, instrument_list, fx_name_view, fx_global_view, fx_view

Looks like a problem with SDL2_image for armhf (?) Any tips or this is just a 'no go'
Yogi
EDIT: so I checked the view.c source  where these errors are. Seems that it's MAKEPTR() that the compiler doesn't like. Google search didn't help, seems to be a macro but no idea why the armhf GCC doesn't like it.
Yogi

Last edited by yogi (Dec 12, 2016 10:30 pm)

Offline

I have done some terrible things in the code, mainly using void* type arguments for ints and so on, which is not that clever in hindsight (an int is 4 bytes and a pointer is something other than that in your case, on 32-bit systems it should be four and four bytes so it doesn't matter). klystrack works on a 64-bit Linux so it probably works here too. Before you ask, I don't remember why I made this decision and I do know it's terrible.

So, you could just use the switches the error message suggests, i.e. "-Werror=int-to-pointer-cast" and "-Wint-to-pointer-cast", which bypass the warnings and doesn't trigger the error message. You can add that on line 21 in Makefile, after the other switches.

I hope that helps!

Offline
Jelly Stone park, MD USA
kometbomb wrote:

I have done some terrible things in the code, mainly using void* type arguments for ints and so on, which is not that clever in hindsight (an int is 4 bytes and a pointer is something other than that in your case, on 32-bit systems it should be four and four bytes so it doesn't matter). klystrack works on a 64-bit Linux so it probably works here too. Before you ask, I don't remember why I made this decision and I do know it's terrible.

So, you could just use the switches the error message suggests, i.e. "-Werror=int-to-pointer-cast" and "-Wint-to-pointer-cast", which bypass the warnings and doesn't trigger the error message. You can add that on line 21 in Makefile, after the other switches.

I hope that helps!

Hehe NO Judgements. 'What happens in the Vegas...er the IDE, stays in the IDE'
Thanks so much for the tips! Will give this a go. I'm such a noob so didn't even know " [-Werror=int-to-pointer-cast] " was a hint from the compiler on how to fix it.
Yogi

Offline

Well, I think the compiler would agree it's not a good thing to suppress warnings. Please report back how well it works on a Raspberry!

P.S. I don't use an IDE so I guess I'm pretty much a sitting duck. Absolutely no excuses. wink

Offline

https://github.com/kometbomb/klystrack/ … .7.0-final

Probably has its fair share of bugs and so on but: fuck 2016.

Offline
france

great teaser smile

Offline
Montreal, Canada

About damn time yo!

Now. Only three more days to finish Gravitus before 2016 is over.. GO ON. I DARE YOU smile

Offline
St.Petersburg, Russia

trying to wine this for mavericks 10.9.5, but havent succeded yet. is anyone lucky?

Offline

@Yoyz2k: Thanks... I was inspired by George Michael's passing but of course a lot more has happened since! sad

@n00bstar: Yeah I really should... at least I managed to release that half-ready thing. smile (People have really complimented the tunes so good work!)

@Draggs: Does klystrack say something? It should write a log file in the directory you run it from, maybe that has some clues?

Linux builds should come later... for some reason my build system broke down and refuses to create the packages so I need to find a workaround.

Last edited by kometbomb (Dec 29, 2016 8:07 pm)

Offline
France

Can't you compile it?
https://github.com/kometbomb/klystrack/ … wToCompile

I've just compiled it on Linux Mint, here is a binary for x64: http://dl.free.fr/hXtWwrpRA (for 30 days)

Thank you @kometbomb!

Offline
St.Petersburg, Russia

@kometbomb, welllllll wine is crashing after 2-3 secs jumpin and opening window-with-nothing.  permissions checked. i have backtrace file in dir, and it's pretty probably about "Unhandled exception: page fault on write access to 0x00000424 in 32-bit code (0x0040ebe6)". not sure how to fix that. :<

Offline
garvalf wrote:

Can't you compile it?

I have a problem when packaging the .deb file, dpkg just hangs. I was going to simply create a new Linux virtual machine and start from scratch, it could be as simple as the virtual machine running out of memory or so.

Thanks for the binary! I was actually planning to make the Linux download work like the Windows build, that is so it has the libraries included (and so it has 32 and 64-bit binaries and it automatically runs the correct one... used that technique for my game and it seems to work perfectly).

Offline
France

Sorry kometbomb, I was talking to @Draggs Connor and your message arrived in between! smile
First I thought mavericks was an Ubuntu variant, then I remembered after I compiled it on Linux that it was Mac OS X. I've given away my binary anyway.

I got a black window too with the windows binary, with wine on linux, and this error:

wine: cannot find L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorsvw.exe"

But I don't bother much with this because I prefer a native binary smile

I had a working Mac OS X virtual machine, but the file got corrupt after a disk crash so I can't use it anymore at the moment. For Draggs Connor, you could try to install libsdl2-image-dev and libsdl2-mixer-dev with a tool such as brew ( http://brew.sh/ ), and you should be able to compile Klystrack this way.

Last edited by garvalf (Dec 30, 2016 1:49 pm)

Offline
St.Petersburg, Russia

@garvalf oh some dark wizardry time
thanks, I'll try that!

Offline

sharing a linux binary via the snap container might be a good idea, it's sandboxed, etc,

more infos: http://www.omgubuntu.co.uk/?s=snap ; https://en.wikipedia.org/wiki/Snappy_%2 … manager%29

it's already supported by ubuntu & fedora and coming to debian (currently on sid, i think).

for the examples/instruments, is it possible to get the ones noobstar packaged on his website? the host he linked on his website is down https://n00bstar.blogspot.ca/p/files.html

Last edited by koub1s (Apr 22, 2017 7:26 pm)

Offline

I need to look into that package manager right now! I mean exactly at this moment.