Skip to main content

When basis.DemoFrame is executed, "QSocket::writeBlock: Socket is not open"

3 replies [Last post]
choichanwoo
Offline
Joined: 2007-08-07
Points: 0

In order to execute basis.DemoFrame(it is included in the PBP)
, I compiled QT/Embedded-2.3.10.

When I compiled QT/Embedded-2.3.10, I refered a method of following url.

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

To test QT/Embedded, I executed a hello-example.(qt-embedded/example/hello)

$qvfb -width 640 -height 480 -depth 32
$./hello -qws

Hello-example opereated accurately.

To test PBP(Personal Basis Profile), I executed a basis.DemoFrame.
$qvfb -width 640 -height 480 -depth 32
$./bin/cvm -cp democlasses.jar basis.DemoFrame

But I don't execute basis.DemoFrame with following error.
.....
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.

I executed again following modified command.
$qvfb -width 640 -height 480 -depth 32
$./bin/cvm -cp democlasses.jar basis.DemoFrame -qws

But, a executed result is same.

I want to set "-qws" command-line option basicly.

Please help me.

*Development Environment
- QT/X11 : qt-3.3.5
- QT/Embedded : qt-embedded-2.3.10
- GCC/G++ : ver 3.2.3

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

Hi,

phonemeadvanced@mobileandembedded.org wrote:
>
> [b]To test PBP(Personal Basis Profile), I executed a basis.DemoFrame.[/b]
> $qvfb -width 640 -height 480 -depth 32
> $./bin/cvm -cp democlasses.jar basis.DemoFrame
>
> [b]But I don't execute basis.DemoFrame with following error.[/b]
> .....
> 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.
>
>
> I executed again following modified command.
> $qvfb -width 640 -height 480 -depth 32
> $./bin/cvm -cp democlasses.jar basis.DemoFrame[b] -qws[/b]
>
> But, a executed result is same.
>
>
> I want to set "-qws" command-line option basicly.
>
> Please help me.

Try this:

Edit:
cdc/src/share/basis/native/awt/qt/QtApplication.cpp
---
Line 41-42

From this:
---
QtApplication::QtApplication(int &argc,
char **argv) :QAPPLICATION_CLASS(argc,argv) {

To this:
---
QtApplication::QtApplication(int &argc,
char **argv) :QAPPLICATION_CLASS(argc,argv, QApplication::GuiServer) {

Adding "Qpplication::GuiServer" as a parameter above essentially makes
the cvm run with "-qws".

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

choichanwoo
Offline
Joined: 2007-08-07
Points: 0

Thank you.

After I recompild CVM, I execute basis.DemoFrame successfully.

Good luck to you^^

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Thank you.
>
> After I recompild CVM, I execute basis.DemoFrame successfully.
>
> Good luck to you^^

Glad it worked! Let us know if you have any further questions and how
phoneME Advanced PBP works out for you.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net