Instalacija KNemo, nVidia TNT (bilo: pomoć pri kompajliranju...)

Pozdrav svima.
Prije 2 dana sam stavio SUSE 10.2 i hajd sve radi “ko doxa”. Jest da mi je jednom zezno boot sektor pa onda nije bilo SUSE-a u boot listi ali snasao sam se. Uglavnom evo nasao sam na ovom forumu kako se spajati na net preko ADSL-a i jos par dobrih uputa. Pa evo da i ja postavim pitanje. Cijelo jutro pokusavam instalirati Knemo. Prvo mu je falio qt3 i jos nesto ali sam to uspio skontati. A sad mi pokazuje:

checking for KDE… configure: error:
in the prefix, you’ve chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

i nemam blage sta da radim. Citao sam malo upustvo i pokusavao sa --with-x komandom ali nije pomoglo. Pa eto ako ko zna nek mi pomaze :slight_smile:

[quote=metalinspired]Pozdrav svima.
Prije 2 dana sam stavio SUSE 10.2 i hajd sve radi “ko doxa”. Jest da mi je jednom zezno boot sektor pa onda nije bilo SUSE-a u boot listi ali snasao sam se. Uglavnom evo nasao sam na ovom forumu kako se spajati na net preko ADSL-a i jos par dobrih uputa. Pa evo da i ja postavim pitanje. Cijelo jutro pokusavam instalirati Knemo. Prvo mu je falio qt3 i jos nesto ali sam to uspio skontati. A sad mi pokazuje:

checking for KDE… configure: error:
in the prefix, you’ve chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

i nemam blage sta da radim. Citao sam malo upustvo i pokusavao sa --with-x komandom ali nije pomoglo. Pa eto ako ko zna nek mi pomaze :)[/quote]
ma što se peglaš kad već imaš ADSL, samo dodaj repositorije i instaliraj
Alt + F2 -> yast2 -> installation source -> Add -> specify URL

dodaj ove za 10.2 sa http://en.opensuse.org/Package_Repositories

dosta ti je OSS (open source)

kad to završiš u search ukucaj knemo i instaliraj

ps:
ako hoćeš ipak da kompajliraš knemo, ubaci suse DVD, iz yasta instaliraj sve KDE development pakete

radije ne bi da instaliram sve KDE development pakete. ogranicen sam sa diskom. pokusao sam ubaciti url koji si naevo ali neradi. stalno izbavuje neki error:

http://en.opensuse.org/Package_Repositories/
Unknown Error: Downloading metadata failed (is YUM source?) or user did not accept remote source. Aborting refresh.

btw: zasto kad stisnem Alt+F2 i upisem yast2 kaze mi could not run specified command a mogu ga normala pokrenut iz menija

probaj ovo skinuti pa instaliraj double click

knemo paket

koji si ba link stavio, ne to, taj link je samo… nejse

stavi ovo (na onom ‘specify url’)

hmm, trebalo bi da ti radi to yast2, da nisi slučajno kucao samo ‘yast’, ne znam koliko imaš usera na kompu da nisi uzeo nekog sa “manje” permisija

ps:
hmm izgleda da je knemo u KDE reposu
dodaj i ovaj repos (specify url) http://software.opensuse.org/KDE:/Community/openSUSE_10.2

kako nije, pa haj skini paket eto sam ti dao direktan link na njega (ovo je ako hoćeš direktno - ali možeš očekivati neke dependencies)

knemo.rpm

jesi dodao i drugi repos (bolji način jer će se “yast” pobrinuti za ostale zavisosi među paketima - ako ih bude bilo)

edit: bio je post (metalinspiredov) ispod samo je ibrisan…

hehe mislio sam da neces vidjeti onaj post jer cim sam ga postao i tvoj se pojavio. upravo mi otvara pakete pa cemo vidjet :slight_smile:

nema problema, to je bilo samo “for a record”

Ufff jedva se izvuko. Usput instalirao NVIDIA drivere i upade mi X window ali izvukao sam se. Nisu mi nikakvu promjenu napravili imam i dalje ekran centimetar pomjeren u desno. Al nejs.

Hvala ti uspio sam instalirat Knemo. Jednog dana mozda i ja nekome budem mogao pomoci oko Linuxa :slight_smile:

za nvidiu na suseu ti je lako pravo, dodaš

instaliraš ovaj paket

x11-video-nvidiaG01 (ili x11-video-nvidia ako ti je starija kartica)

pa onda kao root kucaš ovo:

cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sax2 -r -m 0=nvidia

odberi svoj monitor (ako ga nađeš)

pa onda Ctrl + Alt + Backspace

da vidiš radi li kucaš

glxinfo | grep direct

ps:
http://en.opensuse.org/Nvidia

e sad sam ga ubio ko zeca. nece X windows ni pod razno. sax2 u logu obicno pice no screens found ili screens found but no configuration ili tako nesto. najgore je sto nemogu da nadjem backup file a upisao sam fino kako si i rekao :frowning:

de mi reci šta ti tačno uradio, jesi li dodao nvidia repos, i instalirao driver, pokrenuo komandu itd… pa da skontamo

ps:
ls -lh /etc/X11/xorg.conf*

pps:
možda da probaš ovo (temporary)

sax2 -r -m 0=vesa

evo uspio sam se vratiti u X widnow. skinuo sam drivere pomocu yasta. e de mi sad reci s obzirom da mi je TNT2 graficka izabrao sam x11-video-nvidia i ovo se desilo medjutim prije toga sam stavio x11-video-nvidiaG01 pokrenuo sax2 i radilo mi je pa mi nije jasno. graficka nije da je starija nego je za muzeja :S

dodatak:

citam sad na http://en.opensuse.org/Nvidia i ispade da mi graficka nije na tom paketu za starije graficke nego na G01. nije onda ni cudo sto je radilo ali nigdje veze

ok, haj probaj glxinfo|grep direct

i onda ako bude radilo zavrti malo ‘glxgears’

ps:
usput kako si se vratio u X

pokrenuo yast, skinuo drivere, sax2 -r i X upali :slight_smile:

evo sad bez drivera glxinfo kaze:

glxinfo | grep direct
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect

sad cu staviti one sto su radili pa cu probat ponovo

ma kakvi. opet sam morao skidat drivere. sax2 nije ni test htio odraditi. dosta mi linuxa za danas. ima i sutra dan. hvala na pomoci u svakom slucaju

Ovaj thread više nije samo o kompajliranju :wink: pa ću promijeniti ime i prebaciti.

Nije frka :slight_smile:

Cackao sam od zadnjeg posta i ispostavilo se da ni jedan driver ne odgovoara mojoj grafickoj. Nasao sam neki NVIDIA-Linux-x86-1.0-7174-pkg1.run driver koji bi navodno trebao biti za moju grafu. No medjutim kad probam kompajlirat krene i naravno ne uspije. U logu mi pokazuje slijedece:

nvidia-installer log file '/var/log/nvidia-installer.log’
creation time: Tue Sep 4 18:18:39 2007

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Kernel source path: ‘/lib/modules/2.6.18.2-34-default/source’
-> Performing CC test with CC=“cc”.
-> Performing rivafb check.
-> Cleaning kernel module build directory.
executing: ‘cd ./usr/src/nv; make clean’…
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o .d ..{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: ‘cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.18.2-34-def
ault/source SYSOUT=/lib/modules/2.6.18.2-34-default/build’…

NVIDIA: calling KBUILD…
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.18.2-34-default/build KBUILD_VERBO
SE=1 -C /lib/modules/2.6.18.2-34-default/source SUBDIRS=/tmp/selfgz4910/NVID
IA-Linux-x86-1.0-7174-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.18.2-34-default/build
KBUILD_SRC=/usr/src/linux-2.6.18.2-34
KBUILD_EXTMOD="/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv" -
f /usr/src/linux-2.6.18.2-34/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
echo;
echo " ERROR: Kernel configuration is invalid.";
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing.";
echo " Run ‘make oldconfig && make prepare’ on kernel src to fix it
.";
echo;
/bin/false)
mkdir -p /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_version
s/*
make -f /usr/src/linux-2.6.18.2-34/scripts/Makefile.build obj=/tmp/selfgz491
0/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv
echo #define NV_COMPILER “cc -v 2>&1 | tail -n 1” > /tmp/selfgz4910/NVI
DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.1.2/include -D__KERNEL
__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.18.2-34/include -include includ
e/linux/autoconf.h -I/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
c/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-funct
ion-declaration -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpr
eferred-stack-boundary=2 -march=i586 -mtune=generic -mregparm=3 -ffreestandi
ng -I/usr/src/linux-2.6.18.2-34/include/asm-i386/mach-generic -Iinclude/asm-
i386/mach-generic -I/usr/src/linux-2.6.18.2-34/include/asm-i386/mach-default
-Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-t
ables -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign
-I/tmp/selfgz4910/NVIDIA
-Linux-x86-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch
-Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Wer
ror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KER
NEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -
D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEV
EL=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DND
EBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV
_PCI_DISABLE_DEVICE_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME
=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz491
0/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz4910/NVIDIA
-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c
In file included from /usr/src/linux-2.6.18.2-34/include/linux/list.h:8,
from /usr/src/linux-2.6.18.2-34/include/linux/lockdep.h:12,
from /usr/src/linux-2.6.18.2-34/include/linux/spinlock_type
s.h:12,
from /usr/src/linux-2.6.18.2-34/include/linux/spinlock.h:78
,
from /usr/src/linux-2.6.18.2-34/include/linux/capability.h:
45,
from /usr/src/linux-2.6.18.2-34/include/linux/sched.h:44,
from /usr/src/linux-2.6.18.2-34/include/linux/module.h:9,
from /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.18.2-34/include/linux/prefetch.h: In function ‘prefetch
_range’:
/usr/src/linux-2.6.18.2-34/include/linux/prefetch.h:62: warning: pointer of
type ‘void *’ used in arithmetic
In file included from /usr/src/linux-2.6.18.2-34/include/linux/dmapool.h:14,
from /usr/src/linux-2.6.18.2-34/include/linux/pci.h:564,
from /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:69,
from /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
include2/asm/io.h: In function ‘check_signature’:
include2/asm/io.h:245: warning: wrong type argument to increment
In file included from /tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:241:5:
warning: “NV_ENABLE_MEM_TRACKING” is not defined
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:269:5:
warning: “NV_ENABLE_MEM_TRACKING” is not defined
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:691:2:
warning: #warningconftest.sh failed, assuming remap_page_range(4)!”
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:201: warning:
initialization from incompatible pointer type
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:223:5: warnin
g: “NV_ENABLE_MEM_TRACKING” is not defined
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
‘nvos_get_agp_device_by_class’:
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:404: error: i
mplicit declaration of function ‘pci_find_class’
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:404: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:418: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
‘nvidia_init_module’:
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:970: error: i
mplicit declaration of function ‘pm_register’
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:970: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1036: error:
implicit declaration of function ‘pm_unregister’
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1167:5: warni
ng: “NV_ENABLE_MEM_TRACKING” is not defined
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
‘nv_kern_mmap’:
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1541: error:
implicit declaration of function ‘remap_page_range’
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
‘nvos_count_devices’:
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:3232: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:3237: warning
: assignment makes pointer from integer without a cast
make[4]: *** [/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [module/tmp/selfgz4910/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
’/var/log/nvidia-installer.log’ for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

opet nemam pojma odakle da krenem. instaliorao sam sve sto pise da trebam (kernel-source, make, gcc) ali i dalje ne sljaka. Molim pomagajte. Da mi je ovo vise sredit :frowning:

  1. hehe, haj daj ‘lspci’ izlaz

ovako, da se izvadiš iz tog problema

  1. sax2 -r -m 0=nv (OSS nvidia driver radi 2D) još pritisni Ctrl + Alt +Backspace
    1.1. ili sax2 -r -m 0=vesa (OSS univerzalni driver, radi na svemu, dobar za prvu pomoć) još pritisni Ctrl + Alt +Backspace

ps:
ako je sada problem samo do grafičke onda razmisli da otvoriš novi thread, btw ako je to tnt2 od 32MB ja se ne bih puno zamarao da postignem neki 3D koji je u biti neiskoristiv, ostaviš onaj standardni koji dođe (OSS), a ako ipak hoćeš da naguraš onda se javi, pa ćemo probavati

pps:
opensuse.org/Nvidia ja išo po tome i radi ko zuca, nemoj da ti dajem screenshot sa berylom hehe

Ma i ja nesto kontam. tolika patnja oko nicega. sad cu ga ja natjerat da radi na jednom od tvojih prijedloga.
Pokusao sam 2 razlicita drivera. Jedan krene ali ne uspije a drugi koji bi trebao biti ko “tacniji” nece ni da krene kompajlirat.
U svakom slucaju hvala

pazi ovaj VESA ti je malo “težak” za oči, probaj nv taj je ok, a ovaj vesa je baš kad ništa ne radi on radi