grimx
-
Posts
90 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by grimx
-
-
i'm on an AMD Athlon XP processor
i downloaded the:
Fedora KDE Live i686 CD iso
and burned it to cd using on windows PowerISO
when i try to boot it i get:
buffer I/O error on device sr0, logical block 178831
SQUASHFS error: sb_bread failed reading block 0xacb8d
SQAUSHFS error: unable to read cache block [2b2e3744:64]
SQUASHFS error: unable to read inode
mount: wrong fs type, bad option, bad superblock on /dev/loop2,
missing codepage or helperprogram, or other error
Bug in initramfs /init deleted
I Get the same when doing the media check option
[moved from Installing Mandriva by Greg2]
-
problem solved
i forgot to convert the numbers back to ascii to display them
-
###abbrev
.lcomm num1, 4
.lcomm num2, 4
.lcomm ans, 4
.section text
.globl _start
_start:
get input for num1 ###abbrev
## using system calls read to get inputs
get input for num2 ###abbrev
i tryed this on both num1 and num2, it didn't work
i also tried it on all three (num1, num2) added them togather and put them
in ans, and tried it, it still doesn't work.
What Am I Doing Wrong
##abbrev
movl $0, %ecx
conversion_loop:
subb $48, num1(, %ecx, 1)
inc %ecx
cmp $3, %ecx
jne conversion_loop
## abbev
movl num1, %eax
addl num2, %eax
### abbrev
-
ok i got it:
ok so you zero out ah and subtract 48 from al to get the decimal from ascii ??
so i need to do that for num1 and num2, before i add them
and the result should be in decimal ??
-
ok i have
###abbrev
.lcomm num1, 4
.lcomm num2, 4
.lcomm ans, 4
.section text
.globl _start
_start:
get input for num1 ###abbrev
## using system calls read to get inputs
get input for num2 ###abbrev
movl num1, %eax
addl num2, %eax
##how do i change the ascii char's into decimal
## so i can put the them into the ans buffer for output
## sorry thats about as clear as i can state my problem
## going to use system call write for output of ans buffer
-
alright, thanx Greg2
-
oh, and thanx Greg2 for the .rpm
-
yeah, i'm ok. i mean i havn't done qeues or binary trees or anything, but i get the giest of it.
up till now i've been using the linux system calls for file and dir manipultaion.
i've written a program to turn hex into binary and to turn a decimal to hex and binary
upto a double word. I can post it if you want to see it.
the reason i want to write modules is to get closer to my system.
too learn more about it.
i mean the kernel is the core right, if i want to get to know linux is'nt that where i want
to be.
I feel a little in the dark using c and the system calls, when i can be closer.
granted i'm still learn'n the commands for the terminal
-
i'm going to download it from linux.org
kernel version 2.6.24 right?
i'm on my friends window box because my
dsl connection is down, won't be repaired for
a couple of days.
ah never mind i got the version it is 2.6.17-15mdv
on linux.org i see 2.6.17, 18-Jan-2006
is that the correct one?????
-
do i need a copy of the kernel source in order to write device driver modules??
-
I'm using Mandriva Free 07
What all do i need to start writting my own modules for linux??
I'm downloading an e-book at the moment, just woundering what else i'll need??
-
Greg2:
After setting up my env vars to this
PATH=$PATH:/usr/local/Trolltech/Qt-4.3.3/bin
export QTDIR=/usr/local/Trolltech/Qt-4.3.3
and in checking them they show up, fine
when i try to compile this source code with
qmake -project
qmake
make
//////////////////////////
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello World");
hello.resize(100, 30);
hello.show();
return app.exec();
}
///////////////////////////
it get this error:
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/lib/qt3/mkspecs/default -I. -I. -I/usr/local/Trolltech/Qt-4.3.3/include -o FIRST.o FIRST.cpp
cc1plus: error: /usr/local/Trolltech/Qt-4.3.3/include: Permission denied
make: *** [FIRST.o] Error 1
so i tried changing owner and group on /usr/local/Trolltech/Qt-4.3.3/include
and /usr/local/Trolltech
and /usr/local/Trolltech/Qt-4.3.3
to "mylogin name"
because they all have (owner = root) (group = root) on those as well"
and try to recompile i get this
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/lib/qt3/mkspecs/default -I. -I. -I/usr/local/Trolltech/Qt-4.3.3/include -o FIRST.o FIRST.cpp
FIRST.cpp:1:24: error: QApplication: No such file or directory
FIRST.cpp:2:23: error: QPushButton: No such file or directory
FIRST.cpp: In function ‘int main(int, char**)’:
FIRST.cpp:6: error: ‘QApplication’ was not declared in this scope
FIRST.cpp:6: error: expected `;' before ‘app’
FIRST.cpp:8: error: ‘QPushButton’ was not declared in this scope
FIRST.cpp:8: error: expected `;' before ‘hello’
FIRST.cpp:9: error: ‘hello’ was not declared in this scope
FIRST.cpp:11: error: ‘app’ was not declared in this scope
FIRST.cpp: At global scope:
FIRST.cpp:4: warning: unused parameter ‘argc’
FIRST.cpp:4: warning: unused parameter ‘argv’
make: *** [FIRST.o] Error 1
-
Well when i put /usr/lib/qt4 as QTDIR; qt4 and qt3 do not compile
when i set QTDIR to /usr/lib/qt3 only qt3 compiles
and my PATH does include /usr/local/Trolltech/Qt-4.3.3/bin
/usr/lib/qt3 etc..... shows up three times in my PATH var,
and i don't know y
Help
-
ok thanx
-
so as long as my PATH and QTDIR are set to Qt4 values
it should work then??
well if does'nt
i'll be back tomarrow
-
the reason y i downloaded qt4 .tar.gz is because my DSL line is down
so i had to use my friends Window box to download it
-
my PATH includes the qt3 entries plus ( /usr/local/Trolltech/Qt-4.3.3/)
i do have that qt4.1 repo
-
do i leave the Qt3 entries that are in the PATH var
the qt3 entries come after the qt4 entries
-
meaning /usr/lib/qt4
-
my env var QTDIR = /usr/lib/qt3
my PATH includes the Qt4 path
-
On Mandriva 07
KDE 3.5
i have installed
Qt3.3.6 (devel, common, libqt3) -18mdv2007.0
I downloaded
qt-X11-opensource-src-4.3.3.tar.gz
using just for gui programming
i ran .cofigure and then make and then ( su -c "make install") and so on, to build and install it.
but qtdemo exe does not work
and it wont compile Qt4 apps but it will compile Qt3 apps.
and Qt4 does not show up in MCC installed programs section.
Help
-
Using Mandriva 07
I have Qt3 already installed, and i just downloaded Qt4.3 from Trolltech.com.
I alread unpacked the .gz file.
Now do i just install it even though Qt3 is already there
or do i uninstall Qt3 before hand????
[moved from Software by spinynorman]
-
-
I fixed it with
int size = 0; size = strlen(fName); fName[size - 1] = 'backslash 0';
problem solved..
Thanx again.
Problem booting live cd [solved]
in Other Linux and Unix Distributions
Posted · Edited by grimx
i decided not to do the live fedora.
instead i downloaded the Fedora 8 dvd and
have it dual installed with Mandriva 07 Free.
Problem Solved.