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 Thu 23 Oct 2014, 14:56
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 1 of 1 [15 Posts]  
Author Message
jomazq

Joined: 29 Sep 2011
Posts: 7

PostPosted: Thu 29 Sep 2011, 20:37    Post subject:  How do I compile anything?
Subject description: i just want something to work...
 

so i'm running puppeeeRC2 with the devx.sfs on a eee pc 1001p and i've spent a few years around linux with dsl ubuntu knoppix and others . i with dsl was still being developed. it's my favorite.

./config and stuff wasn't working... it would unpack a lot of files and then there would be no application or executable file.

i've decided that all linux documentation is necessarily incomplete because after three years i haven't compiled one package from source that did anything but take up diskspace. i'm really tired of it...

i'm hoping to find someone who might be willing to hold my hand. because while i can write scripts - i'm no programmer . and the most frrustrating problem is when i compile or something and there's just no feedback about completing an operation.

./configure ./makeinstall ... what am i not understanding? what options should i use when ... i've tried all of them in varying combinations....

so now i thought src2pkg in puppeee (which i love dearly) was going to make linux software accessible to me. big whoop... i've made 15 lumps of memory called pets that don't install initialize or anything...

i just feel right now like putting my eeepc through the wall after a good afternoon of frustration.
Back to top
View user's profile Send private message 
battleshooter


Joined: 14 May 2008
Posts: 1095
Location: Australia

PostPosted: Thu 29 Sep 2011, 20:50    Post subject:  

Hey jomazq,

Have a look at Packaging 101 Technosaurus has done an excellent write up on how to compile and package on Puppy.

I'm no programmer either, I just pick up what I know by Googling, but it helps to know the basics. I'd be willing to help answer any questions I know, but really, just shoot a question into the forums and someone will turn up who knows the answer, so in essence the whole forum would hold your hand Smile Welcome to the kennels by the way Smile

Battleshooter

_________________
LMMS 1.0.2, Ardour 3.5.389, Kdenlive 0.9.8
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2260

PostPosted: Sun 02 Oct 2011, 03:13    Post subject:  

You still have to *install* the pets after creating them with src2pkg.
Back to top
View user's profile Send private message 
battleshooter


Joined: 14 May 2008
Posts: 1095
Location: Australia

PostPosted: Sun 02 Oct 2011, 05:19    Post subject:  

Haha, I'm wondering how I missed that Laughing That could be what's wrong Laughing

Battleshooter

_________________
LMMS 1.0.2, Ardour 3.5.389, Kdenlive 0.9.8
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Mon 03 Oct 2011, 01:53    Post subject:  

could you please be a bit more specific about what does not work as expected?
Maybe an example sourcecode, and the output you get from ./configure.
Back to top
View user's profile Send private message Visit poster's website 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: Mon 03 Oct 2011, 02:33    Post subject:  

here's an easy one, nwipe (one of the packages I have up on here) is really simple to compile you can find it on sourceforge. download the package and then unpack it. once you unpack it go into the folder and type in a window ./configure --prefix=usr and enter after that type make all hit enter
and then type make install DESTDIR=/tmp/nwipe what this will do is create the nwipe folder in the tmp directory, then go into the tmp directory and bring up a new window and type dir2pet nwipe and it will bring up a list of options to create a pet file out of the nwipe folder in the tmp directory it's pretty straight forward and easy.

_________________
PupRescue 2.5
Puppy Crypt 528
Back to top
View user's profile Send private message 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: Mon 03 Oct 2011, 03:52    Post subject:  

dammit why is it not letting me edit my post I mean to put ./configure --prefix=/usr
_________________
PupRescue 2.5
Puppy Crypt 528
Back to top
View user's profile Send private message 
battleshooter


Joined: 14 May 2008
Posts: 1095
Location: Australia

PostPosted: Tue 04 Oct 2011, 02:27    Post subject:  

Yeah I noticed that, I thought I was the only one. On some threads I can't edit either. It's weird.

Battleshooter

_________________
LMMS 1.0.2, Ardour 3.5.389, Kdenlive 0.9.8
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1798
Location: Out wandering... maybe.

PostPosted: Fri 07 Oct 2011, 23:47    Post subject:  

There's always been an issue with the permissions in this subforum, ever since it was created. We discussed it in the sticky at the top of the list (New Forum "Compiling"). I didn't think the permissions problem still existed, though. Sad

Basically, the list of things you can and can't do probably looks like this (at the bottom of the Compiling subforum thread listing):

Quote:
You can post new topics in this forum
You can 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 cannot download files in this forum

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
battleshooter


Joined: 14 May 2008
Posts: 1095
Location: Australia

PostPosted: Sat 08 Oct 2011, 01:39    Post subject:  

Ahh yes, I see that now. Well at least that explains it, thanks.

Battleshooter

_________________
LMMS 1.0.2, Ardour 3.5.389, Kdenlive 0.9.8
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Sat 08 Oct 2011, 12:47    Post subject:  

You missed one that is mis-stated on the forum.
It says You can delete your own posts if they have not been replied to.

I have never been able to delete a new post that I made that has not been replied to so that statement is wrong.

So about all you can do is edit your post to be empty other than a request in it to a moderator to delete the post.

And if your post is a reply to a thread, you cannot remove your reply and can only edit it.
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Sat 08 Oct 2011, 12:57    Post subject:  

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.
Back to top
View user's profile Send private message 
leahcimewol

Joined: 27 Sep 2011
Posts: 1

PostPosted: Mon 17 Oct 2011, 14:08    Post subject: compiling what? from newbie
Subject description: ???
 

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.


I like what you say about barry, made me chuckle, and feel a little better.
What I don't understand is why we have to compile at all?
It's the one thing I miss about windows, you download a program and you install it, easy peazy! none of this config and compile crap, it's so complicated when you are a newbie?! I know in the end I will learn loads and more than windows could ever have taught me, but honestly sometimes I just haven't got the time to sit at a computer trying to understand how to carry out something that ends up taking an entire evening to get my head round?...anyway deep breath here goes I'm going to dive into creating my first file and also creating my first backupfile so I can mess around with that and not screw up my system! wish me luck, any pointers would be gretaly appreciated and any hands to hold would be great as well as I familiarise myself here at the kennels! Wink
Back to top
View user's profile Send private message 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: Mon 17 Oct 2011, 18:49    Post subject:  

Quote:
What I don't understand is why we have to compile at all?
It's the one thing I miss about windows, you download a program and you install it, easy peazy! none of this config and compile crap, it's so complicated when you are a newbie?! I know in the end I will learn loads and more than windows could ever have taught me, but honestly sometimes I just haven't got the time to sit at a computer trying to understand how to carry out something that ends up taking an entire evening to get my head round?


That's because those programs have already been compiled for you, the same as all the pet packages here on the forum have been compiled already so all you have to do is click and install.Plus most software which works on Windows is proprietary. There are programs that work for windows which still require compiling, noticably a lot of open source programs such as what you would find on Sourceforge which are made for multiple operating systems.

_________________
PupRescue 2.5
Puppy Crypt 528
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sun 30 Oct 2011, 03:32    Post subject:  

compiling is actually pretty easy - the problem is all the complicated layers that have placed between the compiler and the code

I often find it easier to ignore the configure scripts and do this

grep ifdef src/*.c
grep ifndef src/*.c
<take note of things I may want to define - look in source if unsure>

to define them we just use -D<whatever>

ex.
we have a gtk2 program that has ifndef NDEBUG that we want to optimize for size and strip and all the .c files are in the same dir

cd srcdir
gcc -Os -DNDEBUG *.c -Wl,-s -lgtk-x11-2.0

you can add extra CFLAGS to -Os (optimize for size) or extra LDFLAGS to -Wl,-s (stripping) for better optimizations

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
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.0851s ][ Queries: 12 (0.0049s) ][ GZIP on ]