LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 10-17-2017, 04:39 AM   #1
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Rep: Reputation: 220Reputation: 220Reputation: 220
Compiling a program under 4MLinux


You'll need the 4MLinux installation CD (or USB, or just ISO image) to install the 4MLinux development packages.

1) Mount the installation CD:
Code:
mount /dev/cdrom
2) Copy development packages to your HDD:
Code:
mkdir /opt 2>/dev/null
cp -r /media/cdrom/devel /opt/devel
3) Install these packages: Menu > Devel (this will start the /opt/devel/install.sh script).
4) Now you have everything needed to reproduce the 4MLinux you're running.

PS.
I've started to write build scripts for the 4MLinux packages (addons). It's work in progress, but many of them are ready. Each script can:
1) download a source tarball,
2) repack the tarball using xz,
3) unpack the tarball,
4) compile a program,
5) build an addon,
6) build a development addon.

For example:
https://sourceforge.net/projects/lin...ddons/mpv/src/
Download files, chmod 755 build.sh and run this script in your terminal. This will produce addon_mpv-0.24.0.tar.xz and addon_mpv-devel-0.24.0.tar.xz for you.

.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Final 4MLinux and 4MLinux Allinone Edition 12.0 Released with PAE Support LXer Syndicated Linux News 0 05-10-2015 12:56 AM
C program: i am getting errors when compiling this simple program batman4 Programming 8 12-11-2012 08:23 AM
Compiling C program Udhayakrishnan Programming 8 02-10-2010 08:21 AM
Compiling Program Star3132 Linux - General 8 06-29-2004 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration