Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Nov 2017, 13:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
How do I compile anything?
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
michaellowe


Joined: 17 Dec 2011
Posts: 69
Location: The Garden

PostPosted: Sun 28 Jun 2015, 17:26    Post subject: No package 'libffi' found  

8-bit wrote:
In attempts to compile source code sometimes one runs into problems of required dependencies needed by the code not being present.

And some packagers of source code just assume that if their PC has that dependency file that others have it too.

Also, tracking down those missing dependency files can be a real pain.

And then some dependencies require other dependencies.

Sometimes I think it is a wonder that one can compile anything.

Also, who among us has the knowledge to write a "config" file for compiling?

Answer. Barry does. I do not.


ditto we are on the same page 8bit lol Wink

_________________
Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 1015

PostPosted: Sun 31 Jul 2016, 17:33    Post subject:  

it would be great to have a database of things that compile "out of the box" and in what puppy they compile in.

these would be pretty good for practice, perhaps an "easy, intermediate, difficult" list would be even better.
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1289

PostPosted: Sun 31 Jul 2016, 17:58    Post subject:  

learnhow2code wrote:
it would be great to have a database of things that compile "out of the box" and in what puppy they compile in.

these would be pretty good for practice, perhaps an "easy, intermediate, difficult" list would be even better.

Slacko 6.3, from memory:

- dosbox (pretty easy)
- links browser (pretty easy)
- mplayer (pretty easy)
- timidity (pretty easy)
- tar, gzip, xz, p7zip (pretty easy)
- jwm (pretty easy)
- gnome-player (pretty easy)
- htop (pretty easy)
- wine (pretty easy but takes a long time)
- firefox (pretty easy but takes a longggggg time)
- ndiswrapper (intermediate)
- broadcom_wl (intermediate)
- pidgin (difficult)

I tried a ton more but usually just were a one time things sporadically then deleted.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 411
Location: Connecticut, United States

PostPosted: Sun 31 Jul 2016, 18:12    Post subject:  

I regularly compile ZoneMinder. It was a steep learning curve but once I got the hang of it I can rip one out pretty easily.

I solve each error or missing dependency one by one and a lot of thinking out of the box and experimenting. I learned how to add PERL modules using CPAN and CPANM and how to find libs that must be present and are not. I search engine around the Ubuntu repos looking for the Debs that are called for.

I found that mixing some stuff from Debian and some from Ubuntu in Tahr 6.0,5 works and I just finished upgrading to ZoneMinder 1.30 by building it for source instead of using the PPM2 which with the new PPM mod 1.0.1 really makes it a snap to add repositories.

Any way good luck and keep at it until it works! I lucked out and somehow found away to build this ZM in Puppy Linux and it works very well.
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Mon 01 Aug 2016, 02:30    Post subject:  

Compiling for many is a bit of a black art. In fact it can be quite easy all the way up to very difficult. Many of us like to compile our own software and sometimes even for the experienced user it can be difficult to achieve. From my experience there are a few major factors that need to be considered:
The environment (the distro you are using EG: Fatdog, tahrpup & slacko etc);
The version of the Environment. (Fatdog64-710, tahrpup-6.0.5, slacko-6.3.2);
The application to be compiled;
The required dependencies and the order they need to be built and installed, and The build recipe.

In all cases the Devx needs to be loaded as this contains the majority of compiling tools. Sometimes you also need the distro kernel headers. This is required especially when you want to build driver modules.

If you are a slacko or Fatdog user you have a great resource avaiable called slackbuilds. This site will link you to the source code and provide a build recipe. In most cases this system is successful but occasionally it fails due to missing dependencies. Often where dependencies are required, the recipe will provide a link to them. https://slackbuilds.org/


Most of us are repeatedly reinventing the wheel. What I propose is we share our build recipes here on the forum using notecase as the database. The reason I suggest notecase is three fold:
It's in most pups,
It's easy to use,
You can import and export nodes, and
It has a hierarchical structure.

This way anyone can upload a node with the build recipe, links etc and others can download it and import it into their notecase database.

As rockedge said, he can build zoneminder quite quickly and easliy as he's done it many time in the past. If you are starting from scratch, trust me when I say this, it's a pig the first time you try. I'll bet there are many who have tried and given up, me for one.

Shortly I will post a simple template/example and I encourage others to do the same. I personally would like to see rockedge zoneminder example.
Notecase-compiling.png
 Description   A simple example
 Filesize   37.67 KB
 Viewed   223 Time(s)

Notecase-compiling.png

compiling.ncd.gz
Description  Fake .gz deleted it.
gz

 Download 
Filename  compiling.ncd.gz 
Filesize  1.09 KB 
Downloaded  88 Time(s) 

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 411
Location: Connecticut, United States

PostPosted: Tue 02 Aug 2016, 00:28    Post subject:  

I hope these instructions are clear! Any tips for refinement on the presentation will be appreciated. I like the notecase idea so here it is:
tahr605-zoneminder.ncd.gz
Description 
gz

 Download 
Filename  tahr605-zoneminder.ncd.gz 
Filesize  4.74 KB 
Downloaded  105 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Tue 02 Aug 2016, 20:21    Post subject:  

Thanks rockedge. I will have a closer look when I get a chance.
_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0774s ][ Queries: 12 (0.0063s) ][ GZIP on ]