Skip to main content

problems of porting MR1 with QT

1 reply [Last post]
bertlin
Offline
Joined: 2009-09-11
Points: 0

Hi
I tried to porting the MR1 perosonal profile with QT to my ARM system.
Acually, I've been ported MR2 pbp, and it works well.
I got a problem while bulding MR1 project, the error messages as following:

/mnt/usb/me/mr1r # ./bin/cvm -cp democlasses.jar basis.DemoFrame
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
No Qt/Embedded server appears to be running.
If you want to run cvm as a server,
add the "-qws" command-line option.

it looks like the -qws argument is not received by QT native functions.
I checked this file : phoneme-advanced-mr1/src/share/basis/native/awt/qt/QtBackEnd.cpp

There is a little differrent between QtBackEnd.cpp of MR1 and QtBackEnd.cpp of MR2.

So I copy this file from MR2 and cover the file of QtBackEnd.cpp of MR1.
But it still doesn't work.
any ideas?
Bert Lin

222 char **
223 QtScreen::getArgs(int *argc) {
224 int count;
225 // Use the "-sync" flag to force Xlib calls to be synchronous, which
226 // would aid in debugging Xlib async errors.
227
228 static char *argv[] = {"cvm", "-qws", NULL};
229
230 count = 1;
231
232 #ifdef QWS
233 #ifndef QTOPIA
234 // If environment varible QWS_CLIENT is not defined,
235 // assume we are running as the server (in the qt-embedded sense).
236 if (getenv("QWS_CLIENT") == NULL) {
237 count++;
238 }
239 #endif /* QTOPIA */
240 #endif /* QWS */
241
242 *argc = count;
243
244 return (char **)&argv;

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bertlin
Offline
Joined: 2009-09-11
Points: 0

uhhh.
I solved this question by myself.
That's because there are two files associate to this problem.
And I have to modified "QtApplication.cc".

1466 vi src/share/personal/native/awt/qt/QtApplication.cc
1467 vi src/share/basis/native/awt/qt/QtApplication.cpp

after make, no errors.

Unfortunately, I got a error at runtime.
God!

I copy democlasses.jar btclasses.zip testclasses.zip lib/ bin/ to my PXA270 develop kit. OS is Linux. 2.6.15
The QT library for embedded system is also ready.

/mnt/usb/me/mr1 # ./bin/cvm -cp democlasses.jar basis.DemoFrame
CVM Configuration:
Java stack chunk size (stackChunkSize): 2048
Java stack minimum size (stackMinSize): 3072
Java stack maximum size (stackMaxSize): 131072
GC[SS]: Initialized semi-space gen for generational GC
Size of *each* semispace in bytes=1048576
Limits of generation = [0x401a5200,0x403a5200)
First semispace = [0x401a5200,0x402a5200)
Second semispace = [0x402a5200,0x403a5200)
GC[MC]: Initialized mark-compact gen for generational GC
Size of the space in bytes=4194304
Limits of generation = [0x403a5200,0x407a5200)
GC[generational]: Auxiliary data structures
heapBaseMemoryArea=[0x401a5008,0x407a5208)
cardTable=[0x483218,0x486218)
objectHeaderTable=[0x486220,0x489220)
summaryTable=[0x489228,0x495228)
JIT Configuration:
Interpreter transition cost (icost): 20
Mixed transition cost (mcost): 50
Backwards branch cost (bcost): 4
Compilation threshold (climit): 20000
When to compile (compile): policy
What to inline (inline): virtual+nonvirtual+vhints+ihints
Max Inlining Depth (maxInliningDepth): 12
Max Inlining Code Length (maxInliningCodeLength): 68
Min Inlining Code Length (minInliningCodeLength): 16
Policy Triggered Decompilations (policyTriggeredDecompilations): true
Max Working Memory Size (maxWorkingMemorySize): 563200
Max Compiled Method Size (maxCompiledMethodSize): 65535
Code Cache Size (codeCacheSize): 524288
Upper Code Cache Threshold (upperCodeCacheThreshold): 95%
Lower Code Cache Threshold (lowerCodeCacheThreshold): 90%
Pass Phi values in registers (XregisterPhis): true
Pass locals in registers between blocks (XregisterLocals): true
Compiling Causes Class Loading (XcompilingCausesClassLoading): false
Trace (trace): none
Couldnt load module pthres
Cannot configure touchscreen /dev/event0 (No such file or directory)
Aborted

---------------------------------------------------------------------
Any advice or ideas?
I don't wanna give up.
I spent at least three weeks on it.(inculding QT porting)
I jsut want to run a AWT helloworld program on my embedded device.
Pls help me.
Thank you.

Bert Lin
A student of National Taiwan University of Science and Technology.