How to configure minigui with qvfb? - qt

I just came across an issue with running minigui example.
I download qt-4.8.6 and install correctly on my Ubunut 14.04.
I can run qvfb without any problems, but when I want to run housekeeper (an example from minigui) something wrong happen:
start-qvfb :/opt/Qt-x11-4.8.6/bin/qvfb pcxvfb 3351 XVFB-for-MiniGUI-3.0-(Gtk-Version) 800x600-16bpp
Unknown parameter 3351
Usage: pcxvfb [-width width] [-height height] [-depth depth] [-zoom zoom][-mmap] [-nocursor] [-qwsdisplay :id] [-x11display :id] [-skin skindirectory]
Supported depths: 1, 4, 8, 12, 15, 16, 18, 24, 32
NEWGAL>PCXVFB: Wait too long for CLIENT.
NEWGAL: Does not find matched engine: pc_xvfb.
KERNEL>InitGUI: Can not get graphics engine information!
What should I do?

I just solved this annoying problem by using gvfb instead of qvfb,I download the gvfb v1.0 from http://www.minigui.org/en/download/.
Then:
tar -xzvf gvfb-1.0.0.tar.gz
cd gvfb-1.0.0
cmake .
In this step,you may come across :
Linking C executable gvfb
/usr/bin/ld: CMakeFiles/gvfb.dir/gvfb_linux.o: undefined reference to symbol 'XkbGetIndicatorState'
//usr/lib/i386-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/gvfb] 错误 1
make[1]: *** [src/CMakeFiles/gvfb.dir/all] 错误 2
make: *** [all] 错误 2
To solve this error:
you need to add -lX11 -L/usr/lib/i386-linux-gnu/libXtst.a -L/usr/lib/i386-linux-gnu/libX11.a to gvfb-1.0.0/src/CMakeFiles/gvfb.dir/link.txt (Assume your host are 32-bit.)
then you can run make and make install.
You can run an example offered by minigui to test whether you have installed successfully or not !!!

Related

how to use a brew formula from github?

I got the following error for https://github.com/sorin-ionescu/homebrew-personal/blob/master/sqlite.rb
Is this because this formula is too old and does not support my OS version?
$ brew install sorin-ionescu/homebrew-personal/sqlite
==> Tapping sorin-ionescu/personal
Cloning into '/usr/local/Homebrew/Library/Taps/sorin-ionescu/homebrew-personal'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 19 (delta 1), reused 6 (delta 0), pack-reused 0
Unpacking objects: 100% (19/19), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sorin-ionescu/homebrew-personal/dvtm.rb
dvtm: undefined method `sha1' for #<BottleSpecification:0x00007f8d5a983ef8>
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sorin-ionescu/homebrew-personal/osxfuse.rb
osxfuse: unknown version :snow_leopard
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sorin-ionescu/homebrew-personal/httpie.rb
httpie: Unsupported special dependency :python
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sorin-ionescu/homebrew-personal/minidlna.rb
minidlna: undefined method `sha1' for #<Resource::PatchResource:0x00007f8d5a0b4250>
Error: Cannot tap sorin-ionescu/personal: invalid syntax in tap!
This very custom tap is outdated. The command you used is totally right.

exception while running bitbake

taking my first steps in BitBake using this guide, setup works fine until the point when i run bitbake world, where i get this -
WARNING: python should use 4 spaces indentation, but found tabs in base.bbclass, line 41
....
WARNING: python should use 4 spaces indentation, but found tabs in base.bbclass, line 64
Parsing recipes: 100% |###########################################################################################################################################################################| Time: 0:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: An uncaught exception occurred in runqueue################################################### | ETA: 0:00:00
Traceback (most recent call last):
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1508, in RunQueue.execute_runqueue():
try:
> return self._execute_runqueue()
except bb.runqueue.TaskFailure:
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1428, in RunQueue._execute_runqueue():
[43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244])
> if self.rqdata.prepare() == 0:
self.state = runQueueComplete
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1164, in RunQueueData.prepare():
todeal.remove(tid)
> self.prepare_task_hash(tid)
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1177, in RunQueueData.prepare_task_hash(tid='/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb:do_build'):
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc])
> self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(taskfn + "." + taskname)
File "/home/ubuntu/bitbake/lib/bb/siggen.py", line 45, in SignatureGenerator.get_unihash(task='/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb.do_build'):
def get_unihash(self, task):
> return self.taskhash[task]
KeyError: '/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb.do_build'
Summary: There were 13 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
and yes - i pulled the latest BitBake from github:
bitbake --version
BitBake Build Tool Core version 1.40.0
what's wrong with my python code?
https://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#var-BB_SIGNATURE_HANDLER
It seems using BB_SIGNATURE_HANDLER noop(by default)
I fix this error by adding BB_SIGNATURE_HANDLER define in meta-tutorial/conf/bitbake.conf
BB_SIGNATURE_HANDLER ?= "basichash"
I am facing exactly the same issue, finally found it due to bitbake version.
If you git clone bitbake from https://github.com/openembedded/bitbake, you could checkout to a early version:
git checkout tags/1.26.0 -b 1.26.0
Then the issue is gone.
The tutorial code is broken. The bitbake.conf is stored in
ch04/meta-tutorial/conf/bitbake.conf
but it belongs to
ch04/build/conf/bitbake.conf
Move the file there and it works
I opened an issue: https://bitbucket.org/a4z/bitbakeguide/issues/17/bitbakeconf-stored-in-the-wrong-place

sqlcipher on windows using cygwin

I am using this site here. http://retroshare.sourceforge.net/wiki/index.php/Win32CompileLibrariesMingw#Compile_OpenSSL
and I have come across a problem. The error is
In file included from /usr/include/w32api/windows.h:95:0, from sqlite3.c:9607:
/cygdrive/c/sqlcipher-2.2.0/../openssl-1.0.1c/include/openssl/ossl_typ.h:153:29: error: expected ‘)’ before numeric constant typedef struct X509_name_st X509_NAME;
/cygdrive/c/sqlcipher-2.2.0/../openssl-1.0.1c/include/openssl/ossl_typ.h:199:33: error: expected ‘)’ before numeric constant typedef struct ocsp_response_st OCSP_RESPONSE;
Makefile:573: recipe for target 'sqlite3.lo' failed
make: *** [sqlite3.lo] Error 1
I opened the ossl_typ.h file to find only 1 line in it so i am not able to trace the error. Thank you for your help!
I came across the same problem trying to build sqlcipher. The problem is that recent versions of minGW define X509_NAME and OCSP_RESPONSE.
You need to add CFLAGS="-DNOCRYPT" to your ./configure, e.g. ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DNOCRYPT -lcrypto" in order to tell the compiler not to define these constants first.
Here is a link that explain the problem : http://cygwin.com/ml/cygwin/2012-12/msg00194.html

ld : 0711-224 warning : Duplicate symbol (Overriding a System Call in AIX)

I read this article (http://qasim.zaidi.me/2009/05/overriding-system-call-in-aix.html;) about overriding a systemcall in aix;
I wrote two kernel extensions just like the article said "The first kernel extension would merely re-export the original system call with a different name. The second, will actually override the syscall by redefining it, and then call the original one as exported by the first module."
But there is a error when I make the second extension:
1> gcc -O2 -maix64 -ffreestanding -o my_syscall.o -c my_syscall.c -D_KERNEL
1> ld -b64 -o my_syscall my_syscall.o -e my_syscall_init -bI:/home/rabbitte/output/test_system/my_syscall.exp -bI:/usr/lib/kernex.exp -lsys -lcsys
1>ld : 0711-224 warning : Duplicate symbol: .getpid
1> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
The file "/home/rabbitte/output/test_system/my_syscall.exp" is the export file of the first extension.
I don't understand the what the "Duplicate symbol: .getpid" means. Could you tell me how to solve this problem?
Thanks very much.
The reason is that the file “kernex.exp” also include the symbol “getpid”. I should comment the getpid in file kernex.exp.
I've never done any of this, so this might not be sufficient to solve your problem, but your linker line has two -bI options. It should be -bI for the AIX kernex.exp, and -bE for your exp file according to the docs you point to.

Qt Build Error

After configuring with
$./configure -embedded arm -xplatform qws/linux-arm-g++ -opensource
I get this output when Making and can't figure out why:
../../src/corelib/arch/qatomic_arm.h: In function char q_atomic_swp(volatile
char*, char)':
../../src/corelib/arch/qatomic_arm.h:125: warning: address requested forret',
which is declared register'
global/qlibraryinfo.cpp: In functionvoid qt_core_init_boilerplate()':
global/qlibraryinfo.cpp:581: __builtin_exit' undeclared (first use this
function)
global/qlibraryinfo.cpp:581: (Each undeclared identifier is reported only once
for each function it appears in.)
global/qlibraryinfo.cpp:573: warning: statement with no effect
global/qlibraryinfo.cpp:573: warning: statement with no effect
global/qlibraryinfo.cpp:574: warning: statement with no effect
global/qlibraryinfo.cpp:574: warning: statement with no effect
global/qlibraryinfo.cpp:575: warning: statement with no effect
global/qlibraryinfo.cpp:576: warning: statement with no effect
global/qlibraryinfo.cpp:576: warning: statement with no effect
global/qlibraryinfo.cpp:577: warning: statement with no effect
global/qlibraryinfo.cpp:578: warning: statement with no effect
global/qlibraryinfo.cpp:578: warning: statement with no effect
global/qlibraryinfo.cpp:579: warning: statement with no effect
global/qlibraryinfo.cpp:580: warning: statement with no effect
global/qlibraryinfo.cpp:580: warning: statement with no effect
make[1]: *** [.obj/release-shared-emb-arm/qlibraryinfo.o] Error 1
make[1]: Leaving directory/home/bsalmi/Desktop/qt-embedded-linux-opensource-src-4.5.1/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
Can anyone tell me what might be the problem or what to look into?
Thank You
Bryce
Check this post out from the QT mailing lists:
http://lists.trolltech.com/pipermail/qt-embedded-interest/2009-March/000224.html

Resources