pthreads for wince

218 views
Skip to first unread message

patrick.east

unread,
Mar 14, 2012, 8:48:00 PM3/14/12
to Windows CE WebKit
Good news.

I've gotten the go-ahead to push our pthreads to a webkit-thirdparty
clone. We have gotten it to work with the latest webkit source code,
and it seems to work just fine for us on CE6 and CE7.

The pthreads library depends on another library we put into our webkit-
thirdparty repo called wceshunt. We were unable to get pthreads to
compile without it so make sure you use both.

I've gotten cmake files for the libraries added in, they work for our
webkit builds...We have deviated a bit from the mainline wince code,
so I make no guarantees that they will just build on the latest tree
without a little help.

Let me know if you guys have any questions or problems with them.

Patrick East
patr...@bsquare.com

patrick.east

unread,
Mar 14, 2012, 8:49:07 PM3/14/12
to Windows CE WebKit
I guess the location of the repo would help ; )

https://gitorious.org/~patricke/bsquare-webkit-thirdparty/

Patrick East
patr...@bsquare.com
> patri...@bsquare.com

Phil

unread,
Mar 20, 2012, 11:36:22 AM3/20/12
to wince...@googlegroups.com

On Thursday, 15 March 2012 00:49:07 UTC, patrick.east wrote:

I guess the location of the repo would help ; )

https://gitorious.org/~patricke/bsquare-webkit-thirdparty/

Patrick East

 

On Mar 14, 5:48 pm, "patrick.east" <east.patr...@gmail.com> wrote:

> Good news.
>
> I've gotten the go-ahead to push our pthreads to a webkit-thirdparty
> clone. We have gotten it to work with the latest webkit source code,
> and it seems to work just fine for us on CE6 and CE7.
>
> The pthreads library depends on another library we put into our webkit-
> thirdparty repo called wceshunt. We were unable to get pthreads to
> compile without it so make sure you use both.
>
> I've gotten cmake files for the libraries added in, they work for our
> webkit builds...We have deviated a bit from the mainline wince code,
> so I make no guarantees that they will just build on the latest tree
> without a little help.
>
> Let me know if you guys have any questions or problems with them.
>
> Patrick East

 
Hi Patrick
 
Firstly thanks for doing this - I'd been looking at this myself :)
 
Can I build this outside of the WebKit build?  We need to use the SVN trunk rather than the CE specific git repository but I get CMake errors when I try to generate the makefiles.  I'm using the CMake I built using the instructions on the Wiki (http://trac.webkit.org/wiki/WinCE) and the following command line:
 
cmake -G "Visual Studio 8 2005" -DCMAKE_WINCE_SDK="STANDARDSDK_500 (ARMV4I)" -DPORT=WinCE \path\to\git\clone\of\bsquare-webkit-thirdparty
 
Which gives me the following error:
 
CMake Error at icu/CMakeLists.txt:539 (ADD_TARGET_PROPERTIES):
Unknown CMake command "ADD_TARGET_PROPERTIES".
 
Thanks,
 
Phil

patrick.east

unread,
Mar 20, 2012, 12:45:40 PM3/20/12
to wince...@googlegroups.com
It is possible to build it outside of the webkit build, but you would have to modify the project files.

I'm not sure why you get that error, that macro should be defined in Source/cmake/WebKitHelpers.cmake

This error is also in the icu library we added, I don't think you would need it for the svn wince build, you could just comment out the "ADD_SUBDIRECTORY(icu)" line in the CMakeLists.txt for the thirdparty directory.

Patrick East

Thomas Fletcher

unread,
Mar 20, 2012, 1:00:12 PM3/20/12
to wince...@googlegroups.com
I don't want to sound negative about a code contribution/donation, but I was wondering why it is 
that we want to have a pthread dependency in the first place for WinCE?

Thanks,
  Thomas

-------------------------------------------------------------

Crank Software Inc.

Office: 613-595-1999 x511

Mobile: 613-878-4659

Onlinewww.cranksoftware.com

Check outCrank Software’s Blog

 

There is a better way to build user interfaces for embedded devices.

Download a 30 day evaluation of Crank Storyboard Suite today


--
You received this message because you are subscribed to the Google Groups "Windows CE WebKit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wincewebkit/-/mNlL78ZvIhcJ.
To post to this group, send email to wince...@googlegroups.com.
To unsubscribe from this group, send email to wincewebkit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wincewebkit?hl=en.

patrick.east

unread,
Mar 20, 2012, 1:14:47 PM3/20/12
to wince...@googlegroups.com
We don't want to have the dependency.

Patrick Gansterer has pushed to remove the dependency (and I'm sure can explain more about what happened with it), but I havn't seen any change on his patch to remove it... It appears the rest of the webkit community wants to keep the threading as it is. 

This is only meant to unblock the wince port from moving forward and staying up to date with the rest of webkit, not as a permanent solution.

Patrick East

To unsubscribe from this group, send email to wincewebkit+unsubscribe@googlegroups.com.

Patrick Gansterer

unread,
Mar 21, 2012, 2:39:13 AM3/21/12
to wince...@googlegroups.com
If you're interessted in this issue: Please follow https://bugs.webkit.org/show_bug.cgi?id=68429
Current state: I still want to get rid of the dependency, but need some WebKit folks to find a solution, which needs the WebKit coding requirements. In the meantime the Qt folks checked that their Windows port depends on pthread too, which IMHO a blocker for a next release. I had a longer discussion with Simon on IRC about this topic. but have not found a clean solution yet.

So: If you want to compile without pthread: Use the patch at the bug. It should apply and work.
And: If you have plenty of time: Create a patch, which meets all WebKit requirements, and post it at the bug.

-- Patrick

To view this discussion on the web visit https://groups.google.com/d/msg/wincewebkit/-/A5WTPBeWXVAJ.

To post to this group, send email to wince...@googlegroups.com.
To unsubscribe from this group, send email to wincewebkit...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages