Make?

Post here if you are a new Porteus member and you're looking for some help.
User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Make?

Post#1 by blue4meridian » 13 Jul 2015, 20:44

Salutations... :good:

I don't know how to use "make"... :wall: What is the command line syntax to create a binary "package"?
My current list of uncompiled downloaded apps is rapidly growing.

Best Regards... :beer:

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service
Last edited by blue4meridian on 14 Jul 2015, 09:42, edited 1 time in total.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3847
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Make?

Post#2 by ncmprhnsbl » 13 Jul 2015, 23:11

make creates(compiles) (from source files) the binary(s) and other files needed for a package.
in slackware, we use the *.SlackBuild script to, first , 'make', and then, 'install' to a fakeroot, which is then compressed into a 'package'.txz
as well, there is quite often a 'configure --someoption' step before make....
that is, if the software uses 'make' ... theres also cmake, scons etc ...

the 'readme' file in the source often will provide relevant instuctions...
also, checkout the 'src2pkg' progam in the dev module, it automates the process..

but have a look at a SlackBuild, they are deceptively simple and adaptable..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6431
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Make?

Post#3 by francois » 14 Jul 2015, 04:38

Prendre son temps, profiter de celui qui passe.

User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Re: Make?

Post#4 by blue4meridian » 14 Jul 2015, 09:31

Salutations... :good:

There is one small problem... :oops: the downloads are .zip (instead of '.tar.gz' or '.tar.bz') which contain the 'makefile' :wall:
When I extract the .zip and use the 'make' command (eg. make /.../tinyalsa) some output files are executables and others are .so libraries.

None are packages. :cry:

Best Regards... :beer:

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service
Last edited by blue4meridian on 14 Jul 2015, 09:51, edited 2 times in total.

beny
Full of knowledge
Full of knowledge
Posts: 1987
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Make?

Post#5 by beny » 14 Jul 2015, 09:49

hi you have to do two action before...../configure or autobuild.sh that prepare the environment of make without the ./configure nothing is possible. maybe the package is on slackbuild repos? if you have enough space on the driver install sbopkg,this software make a rsync of the whole slackbuild repository in /var/lib and you can build all the packages you want,,browser the directories and make packages

User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Re: Make?

Post#6 by blue4meridian » 14 Jul 2015, 10:01

Salutations... :good:

Let's use an example @... :wink:
http://rxproxy.com/index.php?rxproxyuri ... RpbnlhbHNh

Using the above example... what are exactly 'all' the (non-arcane... non-verbose... non-theoretical/hypothetical :wall: )
steps required to actually produce this .xzm package from start to finish.

I'm sorry... :oops: I'm just a humble newbian.

Best Regards... :beer:

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service

beny
Full of knowledge
Full of knowledge
Posts: 1987
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Make?

Post#7 by beny » 14 Jul 2015, 10:34

no way to compile it,but seem android related so user blaze can show us how to manage this build tinyalsa instead libsound,blaze is our android expert.

User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Re: Make?

Post#8 by blue4meridian » 14 Jul 2015, 10:54

Salutations...

Sorry... :oops: wrong example try this one :wink:
http://webwarper.net/ww/~av/sourceforge ... tcl/files/

What exact steps are needed to produce this .xzm package?

Best Regards...

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Make?

Post#9 by Bogomips » 14 Jul 2015, 11:29

It might pay to glance at this tutorial. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Re: Make?

Post#10 by blue4meridian » 14 Jul 2015, 12:47

Salutations...

Hmmm... so simple :oops: take the executable(s) created by 'make'
copy that to a 'new' /.../usr/bin folder ...then use the USM to make a module.

Ok,,, it worked. I tried it with mlibtool.

However... :wall: it doesn't work on many others like...
http://webwarper.net/ww/~av/tinytcl.sourceforge.net/

Best Regards...

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service

User avatar
francois
Contributor
Contributor
Posts: 6431
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Make?

Post#11 by francois » 15 Jul 2015, 10:22

Please document more objectively your results and difficulties so we can provide sound solutions.

How should I ask questions linux wise or on porteus forum:
viewtopic.php?f=35&t=44
http://www.catb.org/~esr/faqs/smart-question
Prendre son temps, profiter de celui qui passe.

User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Re: Make?

Post#12 by blue4meridian » 15 Jul 2015, 11:13

Salutations... :good:

In the previous post I found a partial adhoc solution. :wall:
However... I'm a long way from figuring this whole thing out on my own.

The community solution that I'm petitioning is a tutorial :Search:
A step by step (demystified... non-verbose... non-theoretical/hypothetical... non-referenced) tutorial using the real world links that I gave.

Basically... the links I gave are for dropin alternatives that can be changed to .xzms then noted (in layman's terms... remember I'm a newbian :oops: ).
I don't think that anything is broken so there is nothing to fix other than my ignorance.

Best Regards... :beer:

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service
Last edited by blue4meridian on 15 Jul 2015, 20:47, edited 3 times in total.

User avatar
francois
Contributor
Contributor
Posts: 6431
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Make?

Post#13 by francois » 15 Jul 2015, 17:53

@blue:
You cannot completely escape some kind of learning curve. The hyperlinks provided by the different forum members are very good. What we can do better is to provide packages that you could build from source with different difficulty levels, and from memory there should be in the hyperlinks provided.

Personally, I am no IT specialist, had had a unique course of programming at the university 30 years ago, which I did not used after. You have to try and do it step by step. As I stated above, you have to document your difficulties, so we could follow you. Did you read the links we provided? :twisted:
Prendre son temps, profiter de celui qui passe.

User avatar
blue4meridian
Shogun
Shogun
Posts: 279
Joined: 29 Sep 2014, 05:58
Distribution: 64bit LxQt (Plastique/Mikachu)
Location: Jersey City N.J. USA

Re: Make?

Post#14 by blue4meridian » 15 Jul 2015, 20:01

Salutations... :good:

I'm usually a quick study but this is outside my skill set. :cry:
I scored 95% on my CompTIA A+ on memory management.
Which is my area of expertise. System integration is not.

I have successfully compiled mlibtool . 8)
I have so far successfully depreciated libtool and libevent with mlibtool and libev.

I have failed decisively to depreciate gcc and glibc with tcc and musl. :wall:
I have failed to compile 'uselessd' and tinyxlib "dropins" (just to name a few).

I'm way over my head @ this point in my quest (embedded GPU load-balancing "Heterogeneous Porteus") to depreciate the Porteus base modules.

So if anyone is knowledgeable in doing this stuff... :unknown:
download the above noted "dropin" zip files convert them to .xzm then share your experiences.

Best regards... :beer:

Posted by 100.1.102.215 via http://webwarper.net
This is added while posting a message to avoid misusing the service
Last edited by blue4meridian on 19 Jul 2015, 10:27, edited 4 times in total.

donald
Full of knowledge
Full of knowledge
Posts: 2042
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Make?

Post#15 by donald » 15 Jul 2015, 20:42

@ blue...
Troll mode on/
it's not "if anyone is knowledgeable in doing this stuff"
but rather
"is anyone interested in doing this stuff ?"
Troll mode off\
cheers

Post Reply