FBReader on QT4

22 views
Skip to first unread message

bryans

unread,
Oct 18, 2009, 8:49:56 PM10/18/09
to FBReader
Hi, everybody
There is anyone can tell me, FBReader can run directly on the QT4
or not? And, if so, how to config the build?

Deepak Sharma

unread,
Oct 19, 2009, 11:39:23 PM10/19/09
to fbre...@googlegroups.com
Hi bryans,
 
     You can do some changes in
makefiles/target.mk
makefiles/arch/desktop.mk
 
for enable qt4 and compile your FBReader it will work ..
 
in makefiles/target.mk
 
TARGET_ARCH = desktop
#UI_TYPE = gtk
#UI_TYPE = qt
UI_TYPE = qt4
#UI_TYPE = cairo
 
and makefiles/arch/desktop.mk
 
pass your Qt Moc compiler path and  include Qt Dir path..
 
 
 
regards
Deepak Sharma
 


 
--
DEEPAK SHARMA

geometer

unread,
Oct 20, 2009, 12:22:23 PM10/20/09
to FBReader
Yes, it can. If you use pre-builded FBReader ensure the pacakge with
name like 'zlui-qt4' is installed and run FBReader with '-zlui qt4'
option. FBReader for linux desktop is usually builded with 3
interfaces: gtk, qt3 and qt4. gtk interface is used by default.

Best,

-- Nikolay

Bryan Song

unread,
Oct 20, 2009, 12:49:18 PM10/20/09
to fbre...@googlegroups.com
Thanks for your help, now already build pass with desktop and qt4, and it also run success in my linux desktop.
and now have another question,  how to run fbreader via qvfb window?
 
but the opened fbreader window always at linux desktop, couldn't at Virtual Framebuffer window.
 


 
2009/10/20 Deepak Sharma <sarma....@gmail.com>



--
宋德锋
15658801809
深圳谛德科技有限公司江浙沪总代理
地址:杭州市秋涛北路128号杭州照相器材婚纱市场二楼2092室
电话:0571-86495912
传真:0571-86495912
http://shop57837211.taobao.com
Email:song....@gmail.com

geometer

unread,
Oct 20, 2009, 1:06:28 PM10/20/09
to FBReader
Mmm, I think you need to build a special version for your emulator and
install it into the filesystem used by your emulator. I did so some
taime ago for qtopia versions.

Could you tell in more details what platform you plan to use?

Best,

-- Nikolay

On 20 окт, 20:49, Bryan Song <song.bry...@gmail.com> wrote:
> Thanks for your help, now already build pass with desktop and qt4, and it
> also run success in my linux desktop.
> and now have another question,  how to run fbreader via qvfb window?
>
> root@bryan-ubuntu:/usr/local/src/fbreader-0.10.7/fbreader# qvfb &
> [2] 5844
> root@bryan-ubuntu:/usr/local/src/fbreader-0.10.7/fbreader# FBReader -qws
> loading /usr/lib/zlibrary/ui/zlui-qt.so...
> but the opened fbreader window always at linux desktop, couldn't at Virtual
> Framebuffer window.
>
> 2009/10/20 Deepak Sharma <sarma.dee...@gmail.com>
>
>
>
>
>
> > Hi bryans,
>
> >      You can do some changes in
> > makefiles/target.mk
> > makefiles/arch/desktop.mk
>
> > for enable qt4 and compile your FBReader it will work ..
>
> > in makefiles/target.mk
>
> > TARGET_ARCH = desktop
> > #UI_TYPE = gtk
> > #UI_TYPE = qt
> > UI_TYPE = qt4
> > #UI_TYPE = cairo
>
> > and makefiles/arch/desktop.mk
>
> > pass your Qt Moc compiler path and  include Qt Dir path..
>
> > regards
> > Deepak Sharma
>
> >  On Mon, Oct 19, 2009 at 6:19 AM, bryans <song.bry...@gmail.com> wrote:
>
> >> Hi, everybody
> >>   There is anyone can tell me, FBReader can run directly on the QT4
> >> or not? And, if so, how to config the build?
>
> >> --
> >> DEEPAK SHARMA
>
> --
> 宋德锋
> 15658801809
> 深圳谛德科技有限公司江浙沪总代理
> 地址:杭州市秋涛北路128号杭州照相器材婚纱市场二楼2092室
> 电话:0571-86495912
> 传真:0571-86495912http://shop57837211.taobao.com
> Email:song.bry...@gmail.com <Email%3Asong.bry...@gmail.com>

Bryan Song

unread,
Oct 21, 2009, 9:40:39 AM10/21/09
to fbre...@googlegroups.com
Nikolay,
    Thanks for your support, I want to let FBReader work on ARM 2416 platform with linux 2.6 and QT4.5.3. Is it possible? how to config the FBReader makefile?
 

Bryan
 
 

--
Bryan
 
 

geometer

unread,
Oct 21, 2009, 4:39:42 PM10/21/09
to FBReader
Bryan,

I never tried to compile for such platform. I think the best way is to
create a new file in makefiles/arch directory like 'makefiles/arch/
myarm.mk'. In this file you should specify compiler, includes path,
etc. (You can start from copying of desktop.mk.) Then create (or edit)
a file makefiles/target.mk to set TARGET_ARCH=myarm, UI_TYPE=qt4.

That will be almost correct configuration, may be some additional
changes in makefiles will be required but may be not.

I hope this will help.

Best,

-- Nikolay
Reply all
Reply to author
Forward
0 new messages