Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Error building web-browsers project in linux host: (12 Items)
   
Error building web-browsers project in linux host  
Hi Everyone,

I recently checked out the web-browsers project to try and build the browser for QNX.
I am running Ubuntu 10.04 as a host and following the directions in the README.

I am stuck with this Error:

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)

and I am not sure what is the cause of this.

Anyone know what I can do?

Thanks
Jon
RE: Error building web-browsers project in linux host  
Did you unpack /opt/crank/ version 3.3 correctly? 

-----Original Message-----
From: Jonathan Wong [mailto:community-noreply@qnx.com] 
Sent: Wednesday, August 04, 2010 6:13 PM
To: general-web_browsers
Subject: Error building web-browsers project in linux host

Hi Everyone,

I recently checked out the web-browsers project to try and build the
browser for QNX.
I am running Ubuntu 10.04 as a host and following the directions in the
README.

I am stuck with this Error:

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)

and I am not sure what is the cause of this.

Anyone know what I can do?

Thanks
Jon



_______________________________________________

General
http://community.qnx.com/sf/go/post61653
Re: RE: Error building web-browsers project in linux host  
wow, Thanks, it is compiling as we speak.

I linked crank at /root/opt/crank.3.3 rather than at /

Thanks
Re: RE: Error building web-browsers project in linux host  
so it seems like i am having a stdio_ext.h does not exist error while running make owb.

I used locate stdio_ext.h to find it and it is under my /usr/include/ folder.

The error is as follows:


In file included from /home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/AllInOneFile.
cpp:47:
/home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/runtime/Collector.cpp:98:23: error: 
stdio_ext.h: No such file or directory
In file included from /home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/AllInOneFile.
cpp:47:
/home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/runtime/Collector.cpp: In function 
'void* pthread_getattr_np(pthread_t, pthread_attr_t*)':
/home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/runtime/Collector.cpp:128: error: 
'FSETLOCKING_BYCALLER' was not declared in this scope
/home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/runtime/Collector.cpp:128: error: 
'__fsetlocking' was not declared in this scope
/home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/runtime/Collector.cpp:138: error: 
'feof_unlocked' was not declared in this scope
/home/jonathanccwong/ide-4.7-workspace/QNX-Web-Browsers/webkit/trunk/JavaScriptCore/runtime/Collector.cpp:139: error: 
'getdelim' was not declared in this scope
cc: /usr/qnx650/host/linux/x86//usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/cc1plus error 1
make[3]: *** [JavaScriptCore/CMakeFiles/jsc.dir/AllInOneFile.cpp.o] Error 1
make[2]: *** [JavaScriptCore/CMakeFiles/jsc.dir/all] Error 2
make[1]: *** [WebKitTools/OWBLauncher/CMakeFiles/owb.dir/rule] Error 2
make: *** [owb] Error 2

Any help is greatly appreciated

jon
Re: Error building web-browsers project in linux host  
Hi All, I finally got the project to build properly
but I am not quite understanding the last part

Make sure io-display and an input driver are running:
	io-display -dvid=[vid],did=[did]
	devi-hid -P mouse kbd

So I see this when I type:
enum-devices -n

mount -Tio-display vid=0x8086,did=0x27ae,deviceindex=0

i put those two hex values like so

# io-display -dvid=0x8086,did=0x27ae

 and my display is scrambled.

Is this not the correct way to do this?
RE: Error building web-browsers project in linux host  
The io-display line looks ok. Check the /etc/system/config/graphics.conf
file to make sure that the section for your vid/did combination has
reasonable values for resolution, etc. 

If that is ok, then it may just be an uninitialized frame buffer you are
seeing and running a gf app will fix things. Does the browser sample app
work? (owb a.k.a. wklauncher)

Max

-----Original Message-----
From: Jonathan Wong [mailto:community-noreply@qnx.com] 
Sent: Friday, August 13, 2010 7:08 PM
To: general-web_browsers
Subject: Re: Error building web-browsers project in linux host

Hi All, I finally got the project to build properly
but I am not quite understanding the last part

Make sure io-display and an input driver are running:
	io-display -dvid=[vid],did=[did]
	devi-hid -P mouse kbd

So I see this when I type:
enum-devices -n

mount -Tio-display vid=0x8086,did=0x27ae,deviceindex=0

i put those two hex values like so

# io-display -dvid=0x8086,did=0x27ae

 and my display is scrambled.

Is this not the correct way to do this?




_______________________________________________

General
http://community.qnx.com/sf/go/post63012
Re: RE: Error building web-browsers project in linux host  
I don't see a graphics.conf but i do see a display.conf.

in it i see the list of my video card gma9xx (using intel chip with gma950 graphics)
and the correct display id:

drivername=gma9xx
modeopts=
vid=0x8086
did=0x27ae
device=0x0
display{
  xres=1680
  yres=1050
  refresh=60
  pixel_format=rgb565
  photon{
    enabled=1
    xoffset=0
    yoffset=0
    cursor=hardware
    input_group-1
   }
}

all these seem correct

Also I would like to use this when the system starts up so how can I work around the frame buffer issue if that is the 
case?

Thanks
Jon

> The io-display line looks ok. Check the /etc/system/config/graphics.conf
> file to make sure that the section for your vid/did combination has
> reasonable values for resolution, etc. 
> 
> If that is ok, then it may just be an uninitialized frame buffer you are
> seeing and running a gf app will fix things. Does the browser sample app
> work? (owb a.k.a. wklauncher)
> 
> Max
> 
> -----Original Message-----
> From: Jonathan Wong [mailto:community-noreply@qnx.com] 
> Sent: Friday, August 13, 2010 7:08 PM
> To: general-web_browsers
> Subject: Re: Error building web-browsers project in linux host
> 
> Hi All, I finally got the project to build properly
> but I am not quite understanding the last part
> 
> Make sure io-display and an input driver are running:
> 	io-display -dvid=[vid],did=[did]
> 	devi-hid -P mouse kbd
> 
> So I see this when I type:
> enum-devices -n
> 
> mount -Tio-display vid=0x8086,did=0x27ae,deviceindex=0
> 
> i put those two hex values like so
> 
> # io-display -dvid=0x8086,did=0x27ae
> 
>  and my display is scrambled.
> 
> Is this not the correct way to do this?
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post63012


Re: RE: Error building web-browsers project in linux host  
Please point to anything I might be doing wrong.
I built the binaries from a linux host (per instructions) and transfered them over to the machine running QNX Neutrino.

I have Momentics running and I see that io-display is already running.
How if I just do:

# ./owb http://www.google.com

I get a 

gf_layer_attach() failed: no such process
GF init failed: are you running io-display

so if I run

io-display -dvid=0x8086,did=0x27ae

and then run owb again, i get my scrambled display.

Am I doing something incorrectly?
RE: RE: Error building web-browsers project in linux host  
Can you run "vsync" and "egl-gears" using your io-display settings? Or
is the display scrambled for those as well?

I would also try other screen resolutions in display.conf just to see if
it's a timing issue. 

-----Original Message-----
From: Jonathan Wong [mailto:community-noreply@qnx.com] 
Sent: Wednesday, August 18, 2010 5:40 PM
To: general-web_browsers
Subject: Re: RE: Error building web-browsers project in linux host

Please point to anything I might be doing wrong.
I built the binaries from a linux host (per instructions) and transfered
them over to the machine running QNX Neutrino.

I have Momentics running and I see that io-display is already running.
How if I just do:

# ./owb http://www.google.com

I get a 

gf_layer_attach() failed: no such process
GF init failed: are you running io-display

so if I run

io-display -dvid=0x8086,did=0x27ae

and then run owb again, i get my scrambled display.

Am I doing something incorrectly?



_______________________________________________

General
http://community.qnx.com/sf/go/post63490
Re: RE: RE: Error building web-browsers project in linux host  
This is the output of vsync

#vsync
Number of displays: 1
Display 0: 1680x1050, refresh = 60hz
Number of Layers: 4
gf_layer_atach() failed
Returning from main() with 1

and the output from egl-gears

#egl-gears
gf_layer_attach() failed


> Can you run "vsync" and "egl-gears" using your io-display settings? Or
> is the display scrambled for those as well?
> 
> I would also try other screen resolutions in display.conf just to see if
> it's a timing issue. 
> 
> -----Original Message-----
> From: Jonathan Wong [mailto:community-noreply@qnx.com] 
> Sent: Wednesday, August 18, 2010 5:40 PM
> To: general-web_browsers
> Subject: Re: RE: Error building web-browsers project in linux host
> 
> Please point to anything I might be doing wrong.
> I built the binaries from a linux host (per instructions) and transfered
> them over to the machine running QNX Neutrino.
> 
> I have Momentics running and I see that io-display is already running.
> How if I just do:
> 
> # ./owb http://www.google.com
> 
> I get a 
> 
> gf_layer_attach() failed: no such process
> GF init failed: are you running io-display
> 
> so if I run
> 
> io-display -dvid=0x8086,did=0x27ae
> 
> and then run owb again, i get my scrambled display.
> 
> Am I doing something incorrectly?
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post63490


Re: RE: RE: Error building web-browsers project in linux host  
so I can run owb if I do not login with photon. After launch, I see a full screen browser.

One last thing is that I am unable to use my mouse and/or keyboard for navigating. Upon exiting owb, I see a message of 
">> No Input Available

how do I manually specify a keyboard and mouse?

Thanks
Jon

> This is the output of vsync
> 
> #vsync
> Number of displays: 1
> Display 0: 1680x1050, refresh = 60hz
> Number of Layers: 4
> gf_layer_atach() failed
> Returning from main() with 1
> 
> and the output from egl-gears
> 
> #egl-gears
> gf_layer_attach() failed
> 
> 
> > Can you run "vsync" and "egl-gears" using your io-display settings? Or
> > is the display scrambled for those as well?
> > 
> > I would also try other screen resolutions in display.conf just to see if
> > it's a timing issue. 
> > 
> > -----Original Message-----
> > From: Jonathan Wong [mailto:community-noreply@qnx.com] 
> > Sent: Wednesday, August 18, 2010 5:40 PM
> > To: general-web_browsers
> > Subject: Re: RE: Error building web-browsers project in linux host
> > 
> > Please point to anything I might be doing wrong.
> > I built the binaries from a linux host (per instructions) and transfered
> > them over to the machine running QNX Neutrino.
> > 
> > I have Momentics running and I see that io-display is already running.
> > How if I just do:
> > 
> > # ./owb http://www.google.com
> > 
> > I get a 
> > 
> > gf_layer_attach() failed: no such process
> > GF init failed: are you running io-display
> > 
> > so if I run
> > 
> > io-display -dvid=0x8086,did=0x27ae
> > 
> > and then run owb again, i get my scrambled display.
> > 
> > Am I doing something incorrectly?
> > 
> > 
> > 
> > _______________________________________________
> > 
> > General
> > http://community.qnx.com/sf/go/post63490
> 
> 


RE: RE: RE: Error building web-browsers project in linux host  
Make sure devi-hid is running:

devi-hid -P mouse kbd 

-----Original Message-----
From: Jonathan Wong [mailto:community-noreply@qnx.com] 
Sent: Thursday, August 19, 2010 4:27 PM
To: general-web_browsers
Subject: Re: RE: RE: Error building web-browsers project in linux host

so I can run owb if I do not login with photon. After launch, I see a
full screen browser.

One last thing is that I am unable to use my mouse and/or keyboard for
navigating. Upon exiting owb, I see a message of ">> No Input Available

how do I manually specify a keyboard and mouse?

Thanks
Jon

> This is the output of vsync
> 
> #vsync
> Number of displays: 1
> Display 0: 1680x1050, refresh = 60hz
> Number of Layers: 4
> gf_layer_atach() failed
> Returning from main() with 1
> 
> and the output from egl-gears
> 
> #egl-gears
> gf_layer_attach() failed
> 
> 
> > Can you run "vsync" and "egl-gears" using your io-display settings?
Or
> > is the display scrambled for those as well?
> > 
> > I would also try other screen resolutions in display.conf just to
see if
> > it's a timing issue. 
> > 
> > -----Original Message-----
> > From: Jonathan Wong [mailto:community-noreply@qnx.com] 
> > Sent: Wednesday, August 18, 2010 5:40 PM
> > To: general-web_browsers
> > Subject: Re: RE: Error building web-browsers project in linux host
> > 
> > Please point to anything I might be doing wrong.
> > I built the binaries from a linux host (per instructions) and
transfered
> > them over to the machine running QNX Neutrino.
> > 
> > I have Momentics running and I see that io-display is already
running.
> > How if I just do:
> > 
> > # ./owb http://www.google.com
> > 
> > I get a 
> > 
> > gf_layer_attach() failed: no such process
> > GF init failed: are you running io-display
> > 
> > so if I run
> > 
> > io-display -dvid=0x8086,did=0x27ae
> > 
> > and then run owb again, i get my scrambled display.
> > 
> > Am I doing something incorrectly?
> > 
> > 
> > 
> > _______________________________________________
> > 
> > General
> > http://community.qnx.com/sf/go/post63490
> 
> 






_______________________________________________

General
http://community.qnx.com/sf/go/post63637