webOS Nation Forums >  webOS Discussion >  Open webOS General Discussion > Can't get OpenWebOS to build on Ubuntu
Can't get OpenWebOS to build on Ubuntu
  Reply
Like Tree1Likes
  • 1 Post By Herrie

 
Thread Tools Display Modes
Old 03/12/2013, 07:07 AM   #1 (permalink)
Homebrew Developer
 
Vistaus's Avatar
 
Posts: 1,493
So I've been trying to get OpenWebOS to build on Ubuntu and it doesn't seem to build. I've been using Ubuntu since 2008 so I'm quite familiar with Ubuntu, compiling et all.

It fails at:
Code:
/home/vistausss/luna-desktop-binaries/pbnjson/src/pbnjson_c/jgen_stream.c: In function ‘finish_stream’:
/home/vistausss/luna-desktop-binaries/pbnjson/src/pbnjson_c/jgen_stream.c:230:3: warning: passing argument 3 of ‘yajl_gen_get_buf’ from incompatible pointer type [enabled by default]
In file included from /home/vistausss/luna-desktop-binaries/pbnjson/src/pbnjson_c/jgen_stream.c:21:0:
/usr/include/yajl/yajl_gen.h:144:30: note: expected ‘size_t *’ but argument is of type ‘unsigned int *’
/home/vistausss/luna-desktop-binaries/pbnjson/src/pbnjson_c/jgen_stream.c: In function ‘jstreamInternal’:
/home/vistausss/luna-desktop-binaries/pbnjson/src/pbnjson_c/jgen_stream.c:292:2: error: too many arguments to function ‘yajl_gen_alloc’
In file included from /home/vistausss/luna-desktop-binaries/pbnjson/src/pbnjson_c/jgen_stream.c:21:0:
/usr/include/yajl/yajl_gen.h:118:23: note: declared here
make[2]: *** [src/pbnjson_c/CMakeFiles/pbnjson_c.dir/jgen_stream.c.o] Error 1
make[2]: *** Waiting for unfinished tasks...
make[1]: *** [src/pbnjson_c/CMakeFiles/pbnjson_c.dir/all] Error 2
make: *** [all] Error 2
[email protected]:~/fromsvngit/build-desktop$
I've tried to replace all unsigned int in that file with size_t but it doesn't seem to pass it to the compiler since it keeps getting stuck on this error (even after passing the clean argument). Yajl and it's dev-package is installed and the rest of the dependencies also.
FYI: this is build-desktop, cloned from Its Git branch.

How to fix this?
Vistaus is offline   Reply With Quote
Old 03/12/2013, 04:36 PM   #2 (permalink)
Homebrew Developer

 
Posts: 2,961
I managed to get mine to build finally today using 12.04.1 32 bits using "git clone -b master http://xxxx"

I haven't tried unstable yet, will do that overnight :-)

12.04.2 32 bits didn't run in my VirtualBox due to failing graphics. With 12.04.2 64 bits I got an error about dbus.

Testing 12.04.1 64 bits now since Eric Blade said it should work on 64 bits too.

-- Sent from my TouchPad using Communities
__________________
HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
Herrie is offline   Reply With Quote
Old 03/13/2013, 01:50 AM   #3 (permalink)
Member
 
chalx's Avatar
 
Posts: 1,151
I had 32 bit Oneiric Ubuntu 11.10 which I've upgraded to 12.4. After few unsuccessful attempts I finally managed to build desktop version of open webOS.
__________________
chalx is offline   Reply With Quote
Old 03/13/2013, 03:36 AM   #4 (permalink)
Homebrew Developer

 
Posts: 2,961
It seems 12.04.1 both 32 and 64 bits builds here. However I cannot run the 64 bits properly due to some errors (segmentation faults or something, will need to post later)
Herrie is offline   Reply With Quote
Liked by nc31002 likes this.
Thanked By: nc31002
Old 03/13/2013, 02:35 PM   #5 (permalink)
Homebrew Developer
 
Vistaus's Avatar
 
Posts: 1,493
Quote:
Originally Posted by Herrie View Post
I managed to get mine to build finally today using 12.04.1 32 bits using "git clone -b master http://xxxx"
-- Sent from my TouchPad using Communities
I've tried it again. Removed the build-desktop folder and cloned it with your -b master command. But it now fails at this error:

Code:
[ 68%] Building C object src/libluna-service2/CMakeFiles/luna-service2.dir/utils.c.o
Linking C shared library libluna-service2.so
CMakeFiles/luna-service2.dir/transport_shm.c.o: In function `_LSTransportShmInit':
transport_shm.c:(.text+0xfd): undefined reference to `shm_open'
transport_shm.c:(.text+0x2e7): undefined reference to `shm_open'
collect2: error: ld returned exit-status 1
make[2]: *** [src/libluna-service2/libluna-service2.so.3.3.0] Error 1
make[1]: *** [src/libluna-service2/CMakeFiles/luna-service2.dir/all] Error 2
make: *** [all] Error 2
[email protected]:~/fromsvngit/build-desktop$
What can I do now?
Vistaus is offline   Reply With Quote
Old 03/13/2013, 02:41 PM   #6 (permalink)
Homebrew Developer

 
Posts: 2,961
Which version of Ubuntu are you on?

-- Sent from my TouchPad using Communities
__________________
HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
Herrie is offline   Reply With Quote
Old 03/13/2013, 03:03 PM   #7 (permalink)
Homebrew Developer
 
Vistaus's Avatar
 
Posts: 1,493
I've tried it now on both 12.04 and 13.04 and both end up with the error about shm_open...
Vistaus is offline   Reply With Quote
Old 03/13/2013, 06:16 PM   #8 (permalink)
Homebrew Developer

 
Posts: 2,961
32 or 64 bits?

-- Sent from my TouchPad using Communities
__________________
HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
Herrie is offline   Reply With Quote
Old 03/13/2013, 06:59 PM   #9 (permalink)
Homebrew Developer
 
Vistaus's Avatar
 
Posts: 1,493
64-bits. Should be supported according to the OWOS wiki.
Vistaus is offline   Reply With Quote
Old 03/14/2013, 01:50 AM   #10 (permalink)
Homebrew Developer

 
Posts: 2,961
It should but it doesn't on my 12.04.1 64 bits. I get segmentation faults and it won't run properly. 32 bits works fine though!

See this pastebin for my errors.

Last edited by Herrie; 03/14/2013 at 02:00 AM.
Herrie is offline   Reply With Quote
Old 03/14/2013, 05:25 AM   #11 (permalink)
Member
 
chalx's Avatar
 
Posts: 1,151
Quote:
Originally Posted by Herrie View Post
It should but it doesn't on my 12.04.1 64 bits. I get segmentation faults and it won't run properly. 32 bits works fine though!

See this pastebin for my errors.
You was able to build desktop without errors but can't start services?
__________________
chalx is offline   Reply With Quote
Old 03/14/2013, 06:27 AM   #12 (permalink)
Homebrew Developer

 
Posts: 2,961
Quote:
Originally Posted by chalx View Post
You was able to build desktop without errors but can't start services?
Looks like it, will try a re-build tonight. Build seems to have finished without errors.

Any proper way of logging the output to a file? Can I just use "| tee log.txt" ?
Herrie is offline   Reply With Quote
Old 03/14/2013, 06:47 AM   #13 (permalink)
Homebrew Developer
 
Vistaus's Avatar
 
Posts: 1,493
But that doesn't help solving my error at all... As I'm getting stuck way before I can even try to start services.

I've tried it clean again and I'm getting stuck *again* at that yajl error...
Vistaus is offline   Reply With Quote
Old 03/14/2013, 01:46 PM   #14 (permalink)
Homebrew Developer

 
Posts: 2,961
Quote:
Originally Posted by Vistaus View Post
But that doesn't help solving my error at all... As I'm getting stuck way before I can even try to start services.

I've tried it clean again and I'm getting stuck *again* at that yajl error...
I'm doing a new build on my 12.04.1 64 bit.

Did a "git clone -b master https://github.com/openwebos/build-desktop.git"

Now building by means of:
./build-webos-desktop.sh clean|tee log.txt

Will post results when done.
Herrie is offline   Reply With Quote
Old 03/14/2013, 02:45 PM   #15 (permalink)
Homebrew Developer
 
Vistaus's Avatar
 
Posts: 1,493
Tried again, a clean build. Still stuck at the yajl error
Vistaus is offline   Reply With Quote
Old 03/14/2013, 03:18 PM   #16 (permalink)
Homebrew Developer

 
Posts: 2,961
Quote:
Originally Posted by Vistaus View Post
Tried again, a clean build. Still stuck at the yajl error
Mine is still running, but QT4 download is very slow
Herrie is offline   Reply With Quote
Old 03/15/2013, 01:50 AM   #17 (permalink)
Homebrew Developer

 
Posts: 2,961
Build OK here... Install OK here, Init NOT
[Bash] ./service-bus.sh init Starting service: filecache ... (ls-hubd:28827): - Pastebin.com
Herrie is offline   Reply With Quote
Old 03/15/2013, 04:44 AM   #18 (permalink)
Member
 
chalx's Avatar
 
Posts: 1,151
I'm sorry because I can't help. I'm complete Ubuntu noob, installed open webOS just by copy/pasting from instructions.
__________________
chalx is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0