maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Help me to code for Sailfish OS (https://talk.maemo.org/showthread.php?t=100817)

Markkyboy 2020-04-21 08:23

Re: Help me to code for Sailfish OS
 
Hi, I need to install rpmrebuild to continue messing about with building/editing apps. I would like to install it to '/home/nemo' not 'root'. How do i install to '/home/nemo'?, thanks

coderus 2020-04-21 09:09

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by Markkyboy (Post 1567014)
Hi, I need to install rpmrebuild to continue messing about with building/editing apps. I would like to install it to '/home/nemo' not 'root'. How do i install to '/home/nemo'?, thanks

cant understadnd what you mean. please explain what you trying to do

Markkyboy 2020-04-21 09:29

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1567015)
cant understadnd what you mean. please explain what you trying to do

For many years, my rpmbuild folder resided in /home/nemo, these were set up manually. I reset my device recently and forgot to make a copy of the rpmbuild directory, so all is lost.

Rather than set up those folders manually in /home/nemo, I want to install rpmbuild to home/nemo, so that when I build apps, I find my RPMs in /home/nemo/rpmbuild/* instead of the root rpmbuild directory.

coderus 2020-04-21 09:46

Re: Help me to code for Sailfish OS
 
you can use macroses

https://docs.fedoraproject.org/en-US..._build_process

Markkyboy 2020-04-21 09:51

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1567017)

Thanks for the reminder!!, I had a macro file in /home/nemo but forgot to back it up, damn!, I knew something was missing!

Could you remind me of what I need to put in the file?

Thanks for the link regarding RPMMacros ~ I'm just unsure of the contents of the macro file...?

I found some notes I'd made referring to macro files, but did not list the macro file contents :(

coderus 2020-04-21 10:09

Re: Help me to code for Sailfish OS
 
_rpmdir iirc

Markkyboy 2020-04-21 10:18

Re: Help me to code for Sailfish OS
 
Okay, thanks, I will google/play around and work it out.

Meanwhile, I'm going round to punch my neighbours lights out and his fkin dogs, for repeated fkin barking!, day and fkin night!, for fkin months!, bsstsds! ...I've asked nicely several times, enough is enough!, I may not be back and may end up languishing in a Spanish prison for assault!

Regards

Markkyboy 2020-04-21 16:41

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1567021)
_rpmdir iirc

Thanks coderus, sorted.
  1. make a file in `/home/nemo`
  2. name it `.rpmmacros`
  3. add `%_topdir /home/nemo/rpmbuild`

That's it, get building!, I just ran a build and the resulting file was found in 'rpmbuild/RPMS/noarch' as expected.

Directions on 'how to' taken from here; http://ftp.rpm.org/max-rpm/s1-rpm-an...uild-area.html

Morc 2020-04-22 19:06

Re: Help me to code for Sailfish OS
 
I've been thinking about trying to port SDL app to Sailfish OS. Is that achievable? Because i have a SDL app source, i firstly modified it to use libSDL2 but i'm having problems on importing SDL.h libs in it as i might also need source for SDL. Does anyone know what could help me?

Halftux 2020-04-22 19:24

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by Morc (Post 1567054)
Because i have a SDL app source, i firstly modified it to use libSDL2 but i'm having problems on importing SDL.h libs in it as i might also need source for SDL. Does anyone know what could help me?

You need to install the development packages:

SDL2-devel
SDL2_gfx-devel
SDL2_image-devel
SDL2_mixer-devel
SDL2_net-devel
SDL2_sound-devel
SDL2_ttf-devel

But don't now if it is still valid, names could have changed.


All times are GMT. The time now is 16:26.

vBulletin® Version 3.8.8