Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About grimx

  • Rank
  1. 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.
  2. 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]
  3. problem solved i forgot to convert the numbers back to ascii to display them
  4. ###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
  5. 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 ??
  6. 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
  7. 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
  8. 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?????
  9. do i need a copy of the kernel source in order to write device driver modules??
  10. 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??
  11. 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
  12. 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
  • Create New...