PDA

Bekijk de volledige versie : linux-wildo compilen



wpte
21-05-2008, 18:47
Ik had het leuke idee om dit linux script te compilen naar een programma voor mijn router.
wat doet het? het lijkt een beetje op teamspeak, een voip programma om met een stuk of 50 mensen tegelijk te praten:)

Vol vertrouwen volgde ik de handleiding op de wl500w (ik heb het eerst op puppy linux geprobeert)

hier is wat ik heb gedaan:

[root@wpte root]$ cd /opt/testprog
[root@wpte testprog]$ ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.


in puppy linux deed ie t meteen, net zoals alle andere programma;s...
wat moet ik nou doen om dit programma te compilen zonder al te veel poespas?
weet iemand dit?
ik zou graag ook nog wat andere dingen om willen zetten, bijv een gefixte ushare, want hij werkt niet super op dit moment.:)

wpte
23-05-2008, 12:22
aha, ik had de toolchain moeten hebben:p
nu nog ff uitzoeken hoe die werkt...
als ik t weet post ik t hier, of als iemand anders zo vriendelijk is..:p

DrChair
25-05-2008, 20:50
ipkg install optware-devel

Dit installeert alles wat je nodig hebt om programma's te compilen

wpte
26-05-2008, 11:44
he bedankt DRchair:)

heb je ervaring met compilen voor oleg?
ik krijg nu namelijk nog steeds geen C++ compiler te zien. ik ben toen gaan zoeken op ipkgfind, maar daar stonden alleen compilers voor slugOS
moet ik nu nog iets hebben of moet ik gewoon het script aanpassen?:confused:


checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.



meer info:

## --------- ##
## Platform. ##
## --------- ##

hostname = *.*.*.*
uname -m = mips
uname -r = 2.4.20
uname -s = Linux
uname -v = #18 Sun Mar 30 13:13:29 MSD 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /opt/sbin
PATH: /opt/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


thnx:)

DrChair
27-05-2008, 20:41
blijkbaar moet je ook nog ff buildroot installeren. ik dacht dat die bij optware-devel in zat, maar blijkbaar niet.

ipkg install buildroot

(kan wel ff duren, want is 42 MB)

Dan kan je de meeste simpele dingen wel native compilen met de volgende commando's:

./configure --prefix=/opt
make
make install

Maar als je echt wat wilt bijdragen, installeer je de crosscompiler toolchain op een linux-bak (ik gebruik zelf fedora 6 in CoLinux).
Je kan dan de installatie in een .mk bestand maken, zodat het pakket aan de feed kan worden toegevoegd.

(dan nog is het wel handig om het pakket eerst native aan de praat te krijgen, want als dat niet werkt dan gaat het cross al helemaal niet)

wpte
28-05-2008, 13:04
wow fantastisch :D
echt bedankt man:D

[root@wpte wildo]$ ./configure --prefix=/opt
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /opt/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for sin in -lm... yes
checking for pthread_create in -lpthread... yes
checking for compress2 in -lz... yes
checking for snd_pcm_open in -lalsa... no
checking for gsm_create in -lgsm... no
checking for Pa_Initialize in -lport_audio... no
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... configure: error: no acceptable egrep could be found in /opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/xpg4/bin


ik denk dat ik voor dit pakket nog iets moet doen, ik kan nog niet make uitvoeren omdat de config nog steeds niet helemaal compleet is :(
gelukkig is dit een stap in de richting :)

DrChair
28-05-2008, 21:39
je mist nog egrep. Dit zit in het pakketje grep.

ipkg install grep

wpte
28-05-2008, 23:23
je mist nog egrep. Dit zit in het pakketje grep.

ipkg install grep

:o mijn fout
ik dacht dat ik die al had geinstalleerd... maar dat was wat anders:rolleyes::p
resultaat:
HIJ DOET HET:D