Jump to content

grimx

Members
  • Posts

    90
  • Joined

  • Last visited

Posts posted by grimx

  1. 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]

  2. ###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

  3. 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

  4. 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

  5. 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

  6. 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

  7. ok my umask is set to 0022 and i want to set it to 077

    i changed it in .bashrc in my home directory,

    but i want to change it premantly,

    how do i do that??

     

     

    [moved from Everything Linux by spinynorman]

×
×
  • Create New...