[ rvrichie @ 06.10.2006. 06:02 ] @
Koristim Fedora Core 4, instalirao sam bez problema lucentov modem, ali svaki put kad resetujem racunar obrise mi se link /dev/modem. Moram rucno da ga dodajem komandom iz naslova (ln -s /dev/ttyLTM0 /dev/modem).
Znam da ima fajl koji se ucitava kod svakog podizanja sistema i u koji bih trebao ukucati ovu liniju da se sve odradi automatski, ali NE ZNAM KOJI JE TO FAJL. Na forumu sam nasao informacije, ali nijedna se ne tice FC4 vec drugih distribucija.
Kad smo vec kod "sitnih" podesavanja - instalirao sam xvid codec i sve biblioteke su na mestu (xvidcore.so,xvidcore.so.4,...), ali nijedan od programa (npr. transcode) ih ne vidi i ne dozvoljava mi kompajliranje sa ovih kodekom. Sta bih trebao da uradim da ih svi programi prepoznaju. Pretpostavljam da i za ovaj problem postaji fajl u koji se ukuca nekoliko redova koda, ALI NE ZNAM KOJI JE TO FAJL.
HELP!!!
[ unleaded @ 06.10.2006. 08:01 ] @
Za modem

/etc/rc.d/rc.local
[ Not now, John! @ 06.10.2006. 10:57 ] @
Za modem bi trebalo dodati jednu liniju u udev pravila koja se nalaze u fajlovima u folderu /etc/udev/rules.d. U neki fajl u tom folderu (možeš napraviti i svoj fajl, npr. 95-my.rules) napiši:
KERNEL=="ttyLTM0", SYMLINK="modem"
i nakon sljedećeg restarta, trebalo bi da se pojavljuje link /dev/modem.

Što se tiče kodeka, ako si ih instalirao pomoću RPM paketa, ne znam o čemu se radi. Ako si kompajlirao ručno, vjerovatno moraš rekompajlirati te druge programe (npr. transcode) da bi vidjeli te kodeke.
[ rvrichie @ 06.10.2006. 19:47 ] @
Pa problem i jeste sto nisam ni instalirao programe, nego u toku kompajliranja ne mogu da ih nateram da ucitaju kodeke.
A kodeci (libxvidcore.a, libxvidcore.so, libxvidcore.so.4, libxvidcore.so.4.1) su instalirani u /usr/local/lib, a kasnije sam ih linkovao (probao sam i da ih iskopiram) u /usr/lib i /lib direktorijume.
Sledi rezultat ./configure komande za avifile koji treba da prepozna xvid. (Slican problem imam i sa qt ako ne stavim –-with-qt=no)
Code:
[root@localhost avifile-0.7-0.7.38]# ./configure --enable-divx4 --enable-xvid --enable-ffmpeg-a52 --enable-vidix --enable-mad --enable-libmad --enable-vorbis --enable-lame --enable-win32 --with-xvid-prefix=/usr/local/lib/ --with-qt=no
loading cache ./config.cache
avifile configure options: --enable-divx4 --enable-xvid --enable-ffmpeg-a52 --enable-vidix --enable-mad --enable-libmad --enable-vorbis --enable-lame --enable-win32 --with-xvid-prefix=/usr/local/lib/ --with-qt=no
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... ranlib
checking for mawk... no
checking for gawk... gawk
checking C compiler version... gcc gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
checking if you need GNU extensions... yes
checking if gcc supports -finline-limit-200 flag(s)... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... no
checking if we can lock with hard links... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether byte ordering is bigendian... no
checking for dlopen in -ldl... yes
checking for nanosleep in -lposix4... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for kstat_open in -lkstat... no
checking for lseek64 in -lc... yes
checking for pthreads... yes
checking for ANSI C header files... yes
checking for linux/ioctl.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for malloc.h... yes
checking for unistd.h... yes
checking for stdint.h... yes
checking for assert.h... yes
checking for sys/types.h... yes
checking for sys/ioctl.h... yes
checking for sys/ioccom.h... no
checking for sys/time.h... yes
checking for sys/mman.h... yes
checking for valid sysinfo struct... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working alloca.h... yes
checking for alloca... yes
checking whether gcc needs -traditional... no
checking whether sys/types.h defines makedev... yes
checking for 8-bit clean memcmp... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for vprintf... yes
checking for ftime... yes
checking for gettimeofday... yes
checking for strdup... yes
checking for strstr... yes
checking for setenv... yes
checking for unsetenv... yes
checking for memalign... yes
checking for scandir... yes
checking for opendir... yes
checking for nanosleep... yes
checking for localtime_r... yes
checking for asctime_r... yes
checking for strptime... yes
checking for vsscanf... yes
checking for extra asctime_r argument... no
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType - version >= 2.0... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XGetExtensionVersion in -lXi... yes
checking for XF86DGAQueryExtension in -lXxf86dga... yes
checking for XF86VidModeSwitchMode in -lXxf86vm... yes
checking for pkg-config... /usr/bin/pkg-config
checking for xft... yes
checking XFT_CFLAGS... -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config
checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lX11 -lfreetype -lXrender -lfontconfig
checking for X11/Xft/Xft.h... yes
checking for XftDrawStringUtf8 in -lXft... yes
checking for X11/extensions/Xv.h... yes
checking for XvCreateImage in -lXv... yes
checking for X11/extensions/Xinerama.h... yes
checking for XineramaQueryExtension in -lXinerama... yes
checking for X11/extensions/dpms.h... yes
checking whether system has DPMS fce in X11/extensions/dpms.h... yes
checking for DPMSQueryExtension in -lXdpms... no
compilation of Qt utils disabled
checking for jpeglib.h... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for iconv_open in -lc... yes
checking for iconv declaration... not using const
checking for sdl-config... sdl-config
setting SDL_CONFIG to /usr/local/bin/sdl-config
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.0.0... yes
checking for linux/videodev.h... yes
checking for OSS audio support... yes
checking for _oss_ioctl in -lossaudio... no
checking for Sun audio support... no
checking for a52_frame in -la52... yes
checking for lame_decode_init in -lmp3lame... yes
configure: warning: Directory: /usr/lib/win32 does not exist - install binaries!
checking for libz... yes
checking for Ogg... yes
checking for Vorbis... yes
checking for decore.h... yes
checking for encore2.h... yes
checking for decore in -ldivxdecore... yes
checking for encore in -ldivxencore... no
checking for include/xvid.h... no
checking for xvid.h... yes
checking for xvid_init in -lxvidcore... no
configure: warning: Could not run XviD test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding XviD or finding the wrong
*** version of XviD. If it is not finding XviD, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
--- Sources to build XviD xvidcore library can be found at http://www.xvid.org
checking whether system declares lrintf function in math.h... yes
checking for faad.h... no
checking for vidix... yes
./configure: line 13191: test: too many arguments
updating cache ./config.cache
creating ./config.status
creating Makefile
creating admin/Makefile
creating ffmpeg/Makefile
creating ffmpeg/libavformat/Makefile
creating ffmpeg/libavcodec/Makefile
creating ffmpeg/libavcodec/alpha/Makefile
creating ffmpeg/libavcodec/armv4l/Makefile
creating ffmpeg/libavcodec/i386/Makefile
creating ffmpeg/libavcodec/liba52/Makefile
creating ffmpeg/libavcodec/libpostproc/Makefile
creating ffmpeg/libavcodec/mlib/Makefile
creating ffmpeg/libavcodec/ppc/Makefile
creating ffmpeg/libavcodec/ps2/Makefile
creating ffmpeg/libavcodec/sh4/Makefile
creating drivers/Makefile
creating drivers/libdha/Makefile
creating drivers/libdha/bin/Makefile
creating drivers/libdha/kernelhelper/Makefile
creating drivers/libdha/oth/Makefile
creating drivers/libdha/sysdep/Makefile
creating drivers/vidix/Makefile
creating drivers/vidix/drivers/Makefile
creating lib/Makefile
creating lib/aviplay/Makefile
creating lib/aviread/Makefile
creating lib/aviwrite/Makefile
creating lib/common/Makefile
creating lib/subtitle/Makefile
creating lib/video/Makefile
creating plugins/Makefile
creating plugins/libac3pass/Makefile
creating plugins/libaudiodec/Makefile
creating plugins/libdivx4/Makefile
creating plugins/libffmpeg/Makefile
creating plugins/libmad/Makefile
creating plugins/libmad/libmad/Makefile
creating plugins/libmp3lamebin_audioenc/Makefile
creating plugins/libmp3lame_audioenc/Makefile
creating plugins/libmp3lame_audioenc/lame3.70/Makefile
creating plugins/libmpeg_audiodec/Makefile
creating plugins/libvorbis/Makefile
creating plugins/libwin32/Makefile
creating plugins/libwin32/audiodec/Makefile
creating plugins/libwin32/loader/Makefile
creating plugins/libwin32/loader/dmo/Makefile
creating plugins/libwin32/loader/dshow/Makefile
creating plugins/libwin32/loader/wine/Makefile
creating plugins/libwin32/videocodec/Makefile
creating plugins/libxvid/Makefile
creating bin/Makefile
creating doc/Makefile
creating doc/avicap/Makefile
creating debian/Makefile
creating m4/Makefile
creating player/Makefile
creating include/Makefile
creating include/version.h
creating libavqt/Makefile
creating samples/Makefile
creating samples/misc/Makefile
creating samples/mjpeg_plugin/Makefile
creating samples/qtrecompress/Makefile
creating samples/qtvidcap/Makefile
creating samples/qtvidcap/scripts/Makefile
creating samples/artsplug/Makefile
creating avifile-config
creating avifile.spec
creating avifile.pc
creating include/config.h

Note: If you have installed/removed some package in your system
      do not forget to remove config.cache file before using configure
Configuration for avifile
Compiler C:       gcc  -O2 -mcpu=i686 -march=i686 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe
Compiler C++:     c++  -O2 -mcpu=i686 -march=i686 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe
Install path:     /usr/local
Qt:               no
Sdl:              yes
Xft:              yes
Oss audio:        yes
Sun audio:        no
Mga_vid:          no
Plugins:
  ac3passthrough  yes  (with SBLive only)
  divx4 (dec/enc) yes/no (DivxNetworks)
  xvid            no   (DivX4, XviD)
  ffmpeg          yes  (DivX ;-), OpenDivX, MJPEG, AC3)
  ffmpeg faad     no  (AAC) (runtime yes)
  os motion jpeg  yes  (MJPEG)
  win32           yes  (DivX, WMF1/2, DV, MJPEG, Ati, Asus,...)
  MAD             yes  (MPEG Layer I/II/III)
  vorbis          yes
  lame runtime    yes

Avifile je potreban za transcode i/ili za Mencoder (mislim da sam ovo pronasao negde na forumu), ali ako on ne bude kompajliran sa xvid kodekom, mislim da ni ova dva programa nece biti kompajlirani sa tim kodekom.
Sta ovde, u stvari, treba uraditi?!?
[ Not now, John! @ 06.10.2006. 21:02 ] @
Hm... čudno. Nađe xvid.h, ali pravi problem. Jesi li udradio "ldconfig" nakon instalacije xvid i ostalih kodeka, tj. prije pokretanja configure za transcode?
[ rvrichie @ 08.10.2006. 09:55 ] @
Jesam...
[ rvrichie @ 10.10.2006. 05:16 ] @
Izgleda da sam uspeo.
Ali ne pitajte sta sam uradio... Cini mi se da su pogresni fajlovi bili linkovani ili u /usr/lib ili u /usr/local/lib (u oba direktorijuma su bili linkovi, ali razlicitih velicina). Jednostavno sam ponovo linkovao iz jednog u drugi direktorijum (linkovao sam veci fajl po broju bajtova u drugi dir) i kompilacija je prepoznala xvid. Rekao bih da je to pravo resenje...
[ Not now, John! @ 10.10.2006. 10:20 ] @
Kako si linkovao? Nisam siguran da razumijem. /usr/lib u /usr/local/lib su potpuno odvojena dva foldera za biblioteke i ne treba ništa linkovati.
Samo u /etc/ld.so.conf treba navesti sve foldere u kojima se nalaze biblioteke i odraditi ldconfig.
Evo primjer mog /etc/ld.so.conf fajla:
Code:
/usr/local/lib
/opt/lib
/usr/X11R6/lib

/opt/qt/lib
/opt/kde/lib
/opt/gnome/lib
/usr/lib
/opt/gcc-4.1.0/lib
[ rvrichie @ 11.10.2006. 05:47 ] @
Najiskrenije da ti kazem - nemam pojma kako...
Pokusao sam najpre da iskopiram iz jednog foldera u drugi (mislim da je bilo iz /usr/local/lib u /usr/lib), medjutim po obavljenom kopiranju fajlovi u novom folderu su bili velicine 0 bit-a. E onda sam jednostavno uradio "ln -s" iz /usr/local/lib u /usr/lib (nemoj me drzati za rec da nije bilo mozda bas obrnuto, ali u principu linkovao sam veci fajl) pre cega sam naravno morao obrisati kopirane fajlove...
Na ovaj nacin sam uspeo aktivirati jos neke dodatne biblioteke.
Ali, nije mi i dalje jasno zasto nisu prepoznate neke biblioteke iz /usr/local/lib. Cini mi se da se taj folder po defaultu nalazi u spisku biblioteka. A ldconfig radim redovno, pa i odredjene komande ga izvrsavaju automatski...
[ rvrichie @ 20.10.2006. 05:23 ] @
Ah, da, jos jedno pitanje. Neki od DVD2DivX programa pokusavaju uporno da citaju sa DVD-a sa /dev/dvd, a moji DVD drajvovi su /dev/hdc i /dev/hdd.
Posto ne mogu da pronadjem konfiguracioni fajl za ove programe, gde bih trebao da linkujem npr. /dev/hdc u /dev/dvd, a da mi bude linkovano svaki put kad pokrecem sistem?!?
Hvala...
[ Not now, John! @ 20.10.2006. 11:37 ] @
Negdje u /etc/udev/rules.d/ stavi:
KERNEL=="hdc", SYMLINK="dvd"
KERNEL=="hdd", SYMLINK="dvd2"
Mnogi programi podrazumijevano koriste /dev/cdrom, pa možeš staviti i:
KERNEL=="hdc", SYMLINK="cdrom"