Salve a tutti.
Ieri per la prima volta ho collegato una stampante (una Epson) alla mia Fedora. L'ho accesa e il sistema l'ha riconosciuta subito e, se non ricordo male, dopo qualche decina di secondi mi ha notificato che la stampante era pronta all'uso. Quindi ho provato a stampare la pagina di prova e una pagina di un mio pdf: è filato tutto liscio, per fortuna.
Al termine ho voluto verificare i livelli di inchiostro ma non li ho trovati, né attraverso l'icona presente nel Vassoio di Sistema né in Impostazioni di Sistema » Hardware » Stampanti.
Come si possono visualizzare?
Ho anche cercato nei repo qualcosa, tipo "epson printer cups", e tra i risultati quelli che mi sembravano i più adatti sono stati epson-inkjet-printer-escpr e stylus-toolbox, che ho installato, ma non è cambiato niente. Ho cercato anche "qink kink ink" che fanno riferimento ad altre distribuzioni linux ma non li ho trovati.
Ditemi voi.
Grazie mille per l'aiuto.
p.s: sistema F25 - Kde.
Fedora 25.
KDE per tutta la vita!
Libinklevel potrebbe fare per te, se la tua stampante è tra quelle elencate. Vari programmi sfruttano questa libreria per mostrare i livelli di inchiostro, ma purtroppo nessuno di questi programmi pare essere stato pacchettizzato per Fedora. Si potrebbe installare il tar.gz alla vecchia maniera o, ancor meglio, approfittarne per fare un pacchettino RPM.
Aggiornamento: link corretto.
http://libinklevel.sourceforge.net potrebbe fare per te, se la tua stampante è tra quelle elencate. Vari programmi sfruttano questa libreria per mostrare i livelli di inchiostro, ma purtroppo nessuno di questi programmi pare essere stato pacchettizzato per Fedora. Si potrebbe installare il tar.gz alla vecchia maniera o, ancor meglio, approfittarne per fare un pacchettino RPM.
Il collegamento ipertestuale che hai postato è sbagliato, mentre il testo linkabile è giusto.
Questo quello corretto: http://libinklevel.sourceforge.net/.
In quel sito la mia stampante C66 non è presente, tuttavia vorrei tentarci visto che sono presenti la precedente e la seguente (C65 e C67).
Ho iniziato la compilazione pubblicata lì
tar xzf libinklevel-0.9.2.tar.gz
cd libinklevel-0.9.2
./configure
il risultato termina con
:::
:::
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for ieee1284.h... (cached) no
configure: error: ( required header file ieee1284.h missing)
Come proseguire? Dove lo trovo questo ieee1284.h considerato che nei repo non c'è?
Ultima modifica di Raznum (02-10-2017 17:12:30)
Fedora 25.
KDE per tutta la vita!
Perché dici che non c'è nei repo? Guarda meglio
$ dnf provides */ieee1284.h
Last metadata expiration check: 16 days, 2:46:56 ago on Sat 16 Sep 2017 03:45:37 PM CEST.
libieee1284-devel-0.2.11-21.fc26.i686 : Files for developing applications that
: use libieee1284
Repo : fedora
libieee1284-devel-0.2.11-21.fc26.x86_64 : Files for developing applications that
: use libieee1284
Repo : fedora
Segnati le dipendenze che stai installando manualmente, tornano utili per creare il pacchetto.
Ah, ecco perché!
L'ieee1284 l'ho cercato (dnf search ieee1284) senza trovarlo così come pacchetto. Ho, sì, ipotizzato che centrasse con libieee1284, visto anche che in quel sito si afferma che viene richiesto "libieee1284 ≥ 0.2.11 and libusb-1.0 ≥ 1.0.17". Questi due pacchetti di librerie, quelli senza il -devel, ho provato a installarli ma risultavano già installate.
Scusami , questa è la mia prima compilazione in tutta la mia vita e non sapevo necessitasse di quelli col -devel.
Comunque...li ho installati e ho impartito nuovamente i comandi
./configure
make
make install
È filato tutto liscio.
Da quel che ho capito io bisogna installare un programma tra quelli elencati in quel sito. Io ho scelto KInk. L'ho scaricato, decompresso e dopo ho impartito
cd kink-0.2.1
./configure
e il risultato è questo
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
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 whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Cosa manca?
Grazie.
p.s: ma quel .h significa che è presente dentro un altro pacchetto?
Fedora 25.
KDE per tutta la vita!
Di nulla, figurati, sono cose che si imparano
Siccome vede che c'è gcc, ma non riesce a compilare sorgenti C++, direi che manca gcc-c++.
".h" indica un header file. Se il tuo programma dipende da una libreria C/C++, per produrre l'eseguibile ti serve, tra le altre cose, conoscere come le funzioni della libreria stessa sono definite ad esempio (nomi, tipo di parametri, ecc.).
In Fedora i pacchetti che sono funzionali alla compilazione di programmi che utilizzano una particolare libreria finiscono per -devel. Esiste pure kernel-devel per una ragione analoga, ovvero per compilare moduli.
Se riesci a far funzionare tutto e hai voglia di imparare un po' di più, ti consiglio di provare a fare un pacchetto: https://fedoraproject.org/wiki/How_to_c … package/it. Potresti poi creare un tuo repository personale, condividerlo su COPR e magari un giorno farlo entrare nei repo ufficiali di Fedora Nel caso avessi problemi con la creazione del paccheto, puoi sempre chiedere aiuto qui (o in chat); vari utenti di FOL sono maintainer di pacchetti.
Devo stampare tutti i pacchetti presenti nelle righe che finiscono con "... no"?
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
not using lib directory suffix
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...
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... 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
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... 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 for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for strlcat... no
checking if strlcat needs custom prototype... yes - in libkdefakes
checking for strlcpy... no
checking if strlcpy needs custom prototype... yes - in libkdefakes
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking if res_init needs -lresolv... yes
checking if res_init is available... yes
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking for char *... yes
checking size of char *... 8
checking for dlopen in -ldl... yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 8
checking for unsigned long... yes
checking size of unsigned long... 8
checking sizeof size_t == sizeof unsigned long... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
Fedora 25.
KDE per tutta la vita!
Ora mi dà questo:
::
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... libraries /usr/lib, headers .
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Fedora 25.
KDE per tutta la vita!
Ok.
Ho installato qt4-devel e scaricato Qink, poi quando ho impartito
./configure
mi ha dato questo
Configuring qink ...
Verifying Qt 4 build environment ... ok
Checking for Qt >= 4.2 ... yes
Checking for libinklevel >= 0.7.0 ...libinklevel version too low!
no
Error: need libinklevel >= 0.7.0!
Perché mi dice così se ho installato libinklevel-0.9.2?
Ultima modifica di Raznum (04-10-2017 19:57:09)
Fedora 25.
KDE per tutta la vita!
Cercando sul sito di QInk si vede che quello è un bug che è stato risolto. Il problema è che l'ultima versione stabile non contiene la patch.
Se apri il link relativo alla patch, puoi scaricare il tarball specifico di quella revisione. Usa quello.
Allora, ho scaricato il tarball. Inizialmente non mi permetteva di farlo perché, diceva, non ne avevo il permesso. Ad intuito, ho eliminato la tilde dal nome e sono riuscito a scaricarlo.
Leggendo il bug, ho capito che devo modificare (sostituire una stringa) il file qconf/libinklevel070.qcm che è presente nel tarball.
Come lo devo modificare? Ho provato con KWrite e me lo ha permesso, da utente base non da root. È sufficiente così o lo devo fare in altro modo?
E una volta fatto questo cosa devo fare, devo compilare questo tarball?
Fedora 25.
KDE per tutta la vita!