Qtopia Home - Classes - Hierachy - Annotated - Functions - Qt Embedded |

# Qtopia Troubleshooting

- Cross-Compiling
- Media Player
- Keyboard
- Passwords

## Cross-Compiling

Problem: Linking fails when cross-compling...

Cause: The libraries being used by the cross-compiler are not appropriate.

Fix: Check all libraries that are being used. For example:

        file -L $QTDIR/src/allmoc.o
        file -L $QTDIRlib/libqte*
        file -L $QTOPIA/lib/*.so
        file -L `find "*.so" $QTOPIA/plugins/*.so`

## Media Player

Problem: Media player is slow...

Cause: ARM architecture optimizations are disabled.

Fix: Ensure that your xplatform includes "arm", and ensure that the configuration files being used were based on arm.

Problem: Media player is slow...

Cause: A slow storage media is being used.

Fix: Use a faster storage media for temporary storage of music/videos eg: RAM.

## Keyboard

Problem: The keyboard does not work...

Cause: Incorrect keyboard driver.

Fix: Ensure that the following environment variable is correctly set:

     $QWS_KEYBOARD

Problem: Some keys do not work...

Cause: The keyboard driver does not recognize the scancodes the device generates.

Fix: Customize the scancodes in

     $QTDIR/src/kernel/qkeyboard_qws.cpp or $QPEDIR/src/libraries/custom.cpp.

## Passwords

Problem: I keep getting asked for a password when using Qtopia Phone (using phone simulator)...

Cause: Password checking is enabled in troll.xml.

Fix: Edit troll.xml, or whatever xml file is being passed when you run phonesim, and remove the PIN code from the configuration by:

- searching for the line:

       '<set name="PINNAME" value="SIM PIN"/>'

- and changing it into:

       '<set name="PINNAME" value=""/>'

- then restarting the phone simulator.

Problem: I keep getting asked for a password when using Qtopia Phone (using hardware modem)...

Cause: Password checking is enabled for the modem.

Fix: In the latest Qtopia Phone snapshot it is possible to use the security app in Qtopia to disable the pin request. However if you are not using the latest snapshot you will have to use the minicom program.

- Start minicom, and make sure it is talking to your modem with the correct settings. Then type:

       AT+CLCK="SC",2

- it should respond with either 1, 0r 0. You want 0. If it isn't 0, then type:

       AT+CLCK="SC",0,"1234"

- replacing "1234" with the four digit pin number for the sim card. From now on Qtopia will no longer prompt for a password.