as[gert@localhost ParallelPortTest]$ pkg-config --libs glut
-lglut -lGLU -lGL
[gert@localhost ParallelPortTest]$
Seems I have caught up a bit.
Having some weird problem with my konsoles/terminal, they will not open from panel. I will have quick re-compile attempt and the n start looking at the terminal problem. Seems to have started after the re-boot, which did get me the history access back in Synaptic.

Seems my
Makefile was already prepared from your earlier suggestion, here is the content again:
SRC = ParallelPort.cpp main.cpp
TARGET = ParallelPortTest
CXX = g++
CXXFLAGS = -ansi -Wall
# LIBS = -lGL -lglut
#gert: trying to make it pclos compatible as per 'as'suggestion
LIBS = -lglut -lGLU -lGL
all: $(TARGET)
$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) $(SRC) $(LIBS) -o $(TARGET)
clean:
rm -rf $(TARGET)
The
main.h where there earlier was some editing has returned to the original too, just checking
..
..
#include <string.h>
#include <GL/glut.h>
#include "ParallelPort.h"
..
..
The acid test, let it
make:
[gert@localhost ParallelPortTest]$ make
g++ -ansi -Wall ParallelPort.cpp main.cpp -lglut -lGLU -lGL -o ParallelPortTest
[gert@localhost ParallelPortTest]$
The red name will be my exe file, run as ./P.... in terminal
[gert@localhost ParallelPortTest]$ ./ParallelPortTest
Using /dev/parport0 for session
Unable to open /dev/parport0. Error from operating system is:
Error #13
Permission denied
[gert@localhost ParallelPortTest]$
Heeeeh, I know what that is, should have run as root?:
[gert@localhost ParallelPortTest]$ su
Password:
[root@localhost ~]# < ----- now at position: /root
The above confused me a bit, the
su knocked me back quite a few branches
Is that normal, I thought that going
su errrrh, left you in position in the system tree??.
[root@localhost ParallelPortTest]# pwd
/home/gert/xC-programs/120123-c++prog_pralellport/yya0-GLUT/ParallelPortTest
[root@localhost ParallelPortTest]#
Ok, one more go at getting up and standing
[root@localhost ParallelPortTest]# ./ParallelPortTest
Using /dev/parport0 for session
Unable to open /dev/parport0. Error from operating system is:
Error #6
No such device or address
[root@localhost ParallelPortTest]#
Pheew, that is not so easy, thiiiinking?

[root@localhost ParallelPortTest]# dmesg |grep parp
[root@localhost ParallelPortTest]#
Ouch, that hurts no
parport0
[root@localhost ParallelPortTest]# lsmod |grep parp
parport_pc 28023 0
parport 25179 2 parport_pc,ppdev
What else is that is in the back of my head?
Last night I think it was I did not have a response to above
|grep I did manual module install with:
[root@localhost ~]# modprobe parport_pc && modprobe ppdev
[root@localhost ~]# lsmod |grep parp
parport_pc 28023 0
parport 25179 2 ppdev,parport_pc
[root@localhost ~]#
Hmmmmm, what is going on
[root@localhost Documents]# locate parport
/dev/parport0
/home/gert/.kde4/share/apps/RecentDocuments/120123-parport_yyao_glut.glk.desktop
/home/gert/xC-programs/120123-c++prog_pralellport/.120123-parport_yyao_glut.glk.kate-swp
/home/gert/xC-programs/120123-c++prog_pralellport/120123-parport_yyao_glut.glk
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/i2c/busses/i2c-parport-light.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/i2c/busses/i2c-parport.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport_cs.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport_pc.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport_serial.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/pps/clients/pps_parport.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/staging/comedi/drivers/comedi_parport.ko.gz
/lib/udev/devices/parport0
/usr/include/linux/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/arch/x86/include/asm/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/drivers/parport
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/drivers/parport/Kconfig
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/drivers/parport/Makefile
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/include/asm-generic/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/include/linux/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/include/linux/parport_pc.h
[root@localhost Documents]#
Well it seems that
parport modules not installed??
I have found a script checking for paralellport
http://umax1220p.sourceforge.net/ppdiagLooked interesting and I could understand a fair bit and I don't quite agree with it, so I have a problem too late in the day.
I have run the script and get very simple message.
[root@localhost Documents]# ./ppdiag
S01: no parport module or symbol were found
S01: it is most likely that your kernel does not have any parport support compiled
S01: can't handle this case, exiting ...
[root@localhost Documents]#
Further dissection will have to wait as my head is in turmoil, but by Joe it is fun.
