|
This file is shared Translations |
CompileGuide— 09 June 2008, 04:51I am still new to Free Software, gNewSense, and compiling. Compiling is very hard for me. I have tried to look up a guide online, and it gave me four steps that almost never work for me without another two or more steps that work for one thing then something else needs a different two or more steps. Does anyone have a clear and comprehensive guide on how to compile from source code? It seems that almost every application needs to be compiled in its own way. There are the help/readme documents. However, I can't find much information in them. They are written more in technical speak and I unfortunantly don't understand them. I am sure they give much information to those who know how to read them. Where do I find a guide that tells me how to understand the information they are giving me? If I can find a guide, I wouldn't have to keep bothering the whole community just because I want to compile something. I feel like I am nagging, and there is a lot of questions that need to be answered and are less redundant than mine. I would love to not have to keep asking, and figure out myself. But it's all still so new to me, and I don't know who else to ask or where else to go. I have been trying to compile a SB Live sound driver for some time, and have bumped it up many times, and still have only gotten one reply that did not fully help me compile the driver. I do not want to sound rude. I would just prefer a guide that explains in non-technical terms how to understand what's in the readmes and how to compile from source code. So far I know: ./configure make make install Thank you for your time and help. brunomiguel — 09 June 2008, 09:53You need to have all the required dependencies installed. If you're trying to compile an application that you also have in the repositories, a simple <strong>sudo apt-get build-dep appname</strong> most of the times will do the trick for installing all the dependencies. But if you're trying to compile an app that is not in the repos, then you'll have to see - normally, in the software website - what are the required dependencies and install them. About the SB Live driver, I think you'll need the kernel sources located in gNS repositories. — 10 June 2008, 02:34saz@tree:~$ cd Desktop saz@tree:~/Desktop$ ls emu10k1-v0.20a emu10k1-v0.20a.tar.bz2 emu-tools-0.9.4.tar.gz saz@tree:~/Desktop$ <strong>sudo apt-get build-dep appname</strong> bash: syntax error near unexpected token `newline' saz@tree:~/Desktop$ <strong>sudo apt-get build-dep emu10k1</strong> bash: syntax error near unexpected token `newline' saz@tree:~/Desktop$ strong sudo apt-get build-dep emu10k1 /strong bash: strong: command not found saz@tree:~/Desktop$ sudo apt-get build-dep emu10k1 [sudo] password for saz: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to find a source package for emu10k1 saz@tree:~/Desktop$ sudo apt-get build-dep emu10k1-v0.20a Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to find a source package for emu10k1-v0.20a saz@tree:~/Desktop$ cd emu10k1-v0.20a saz@tree:~/Desktop/emu10k1-v0.20a$ ./configure bash: ./configure: No such file or directory saz@tree:~/Desktop/emu10k1-v0.20a$ make make -Cscripts make[1]: Entering directory `/home/saz/Desktop/emu10k1-v0.20a/scripts' /lib/modules/2.6.24-18-386/build directory does not exist. Please edit the file 'config' in this directory and set KERNEL_SOURCE to the correct location of your kernel source. You are currently running kernel version 2.6.24-18-386, the source code should be for this version. make[1]: *** [get_version] Error 1 make[1]: Leaving directory `/home/saz/Desktop/emu10k1-v0.20a/scripts' make: *** [opts] Error 2 saz@tree:~/Desktop/emu10k1-v0.20a$ sudo make install cc -M audio.c cardmi.c cardmo.c cardwi.c cardwo.c efxmgr.c emuadxmg.c hwaccess.c irqmgr.c main.c midi.c mixer.c recmgr.c timer.c voicemgr.c ecard.c passthrough.c > .depend audio.c:34:26: error: linux/module.h: No such file or directory audio.c:36:24: error: linux/slab.h: No such file or directory audio.c:38:26: error: linux/bitops.h: No such file or directory audio.c:39:20: error: asm/io.h: No such file or directory audio.c:41:28: error: linux/smp_lock.h: No such file or directory audio.c:42:27: error: linux/wrapper.h: No such file or directory In file included from audio.c:45: hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwo.h:38, from audio.c:46: timer.h:31:29: error: linux/interrupt.h: No such file or directory cardmi.c:33:24: error: linux/slab.h: No such file or directory In file included from cardmi.c:36: hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardmi.c:38: cardmi.h:37:29: error: linux/interrupt.h: No such file or directory cardmo.c:33:24: error: linux/slab.h: No such file or directory In file included from cardmo.c:35: hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardmo.c:37: cardmo.h:37:29: error: linux/interrupt.h: No such file or directory In file included from cardwi.c:33: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwi.c:34: timer.h:31:29: error: linux/interrupt.h: No such file or directory In file included from cardwo.c:33: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwo.h:38, from cardwo.c:36: timer.h:31:29: error: linux/interrupt.h: No such file or directory efxmgr.c:32:26: error: linux/bitops.h: No such file or directory In file included from efxmgr.c:33: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from emuadxmg.c:33: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory hwaccess.c:33:20: error: asm/io.h: No such file or directory In file included from hwaccess.c:35: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from irqmgr.c:32: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from irqmgr.c:34: cardmi.h:37:29: error: linux/interrupt.h: No such file or directory main.c:91:26: error: linux/module.h: No such file or directory main.c:92:24: error: linux/slab.h: No such file or directory main.c:93:24: error: linux/init.h: No such file or directory main.c:94:25: error: linux/delay.h: No such file or directory main.c:95:27: error: linux/proc_fs.h: No such file or directory In file included from main.c:97: hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwo.h:38, from main.c:100: timer.h:31:29: error: linux/interrupt.h: No such file or directory midi.c:33:26: error: linux/module.h: No such file or directory midi.c:35:24: error: linux/slab.h: No such file or directory midi.c:38:28: error: linux/smp_lock.h: No such file or directory midi.c:39:25: error: asm/uaccess.h: No such file or directory In file included from midi.c:41: hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from midi.c:42: cardmo.h:37:29: error: linux/interrupt.h: No such file or directory mixer.c:34:26: error: linux/module.h: No such file or directory mixer.c:36:25: error: asm/uaccess.h: No such file or directory In file included from mixer.c:39: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwi.h:36, from recmgr.h:36,
from mixer.c:41:
timer.h:31:29: error: linux/interrupt.h: No such file or directory recmgr.c:32:23: error: asm/delay.h: No such file or directory In file included from recmgr.h:35, from recmgr.c:34: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwi.h:36, from recmgr.h:36,
from recmgr.c:34:
timer.h:31:29: error: linux/interrupt.h: No such file or directory In file included from timer.c:31: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from timer.c:34: timer.h:31:29: error: linux/interrupt.h: No such file or directory In file included from voicemgr.h:35, from voicemgr.c:32: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from ecard.h:30, from ecard.c:32: hwaccess.h:40:24: error: linux/slab.h: No such file or directory hwaccess.h:42:20: error: asm/io.h: No such file or directory hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from ecard.c:32: ecard.h:31:24: error: linux/init.h: No such file or directory passthrough.c:33:26: error: linux/module.h: No such file or directory passthrough.c:35:24: error: linux/slab.h: No such file or directory passthrough.c:37:26: error: linux/bitops.h: No such file or directory passthrough.c:38:20: error: asm/io.h: No such file or directory passthrough.c:40:28: error: linux/smp_lock.h: No such file or directory passthrough.c:41:27: error: linux/wrapper.h: No such file or directory In file included from passthrough.c:43: hwaccess.h:43:25: error: emu_wrapper.h: No such file or directory In file included from cardwo.h:38, from passthrough.c:44: timer.h:31:29: error: linux/interrupt.h: No such file or directory make: *** [.depend] Error 1 saz@tree:~/Desktop/emu10k1-v0.20a$ Also, the Linux Source is Installed, but I do not know what to do with it. — 10 June 2008, 18:37bump — 11 June 2008, 02:42bump You must be logged in to post. |