Can I compile/execute FBReader using Eclipse+CDT under Ubuntu?

26 views
Skip to first unread message

bercago

unread,
Oct 15, 2009, 5:00:42 AM10/15/09
to FBReader
Hi Everyone,
I would like to study FBReader, about it architecture (and maybe write
a doc to share my investigation result).
For doing this, I may need to run FBReader in debug mode so that I can
set breakpoint, trace call stack and so on.
I had used Eclipse+Android IDE to write some Android application, so I
want to use Eclipse+CDT to trace FBReader.
But I would like to know, is it possible to import FBReader source
code (downloaded from official web page) to Eclipse and compile/
execute it?

I had already compiled FBReader successfully on Ubuntu using command
line (i.e. just type "make").
But I am a newbie to ebook and Linux, so I may ask a stupid question,
but I do need your help.

Thanks for your help, and wish FBReader will become better and better.
bercago

geometer

unread,
Oct 15, 2009, 8:31:35 AM10/15/09
to FBReader
Hi,

Do you mean the original (C++) version of FBReader or the Java one?

Anyway, I use vim in both projects, however I heard it is possible to
import FBReaderJ into Eclipse. Btw., latest sources
(0.5.27) were repackaged and might be more suitable for Eclipse.

Best,

-- Nikolay

Kevin Guo

unread,
Oct 15, 2009, 9:43:24 AM10/15/09
to fbre...@googlegroups.com
Yes, you can import the FBReaderJ into the Eclipse.

bercago

unread,
Oct 15, 2009, 9:47:24 PM10/15/09
to FBReader
Hi Nikolay,
I mean the original C++ version.

As far as I know, VIM is a kind of editor,
how do you debug your FBReader? Do something like I mensioned, set
breakpoint, trace call stack.

What I thought is to build a project in eclipse, import all FBReader
source code,
so that I can compile/debug in eclipse and using the development tool
provided by Eclipse CDT to trace.

Could you suggest a way to me to do this?

Thanks
bercago

bout.vasiliy

unread,
Oct 17, 2009, 10:38:34 AM10/17/09
to FBReader
I didn't try to import FBReader sources into Eclipse, but I can
suggest you to use gdb (a command line GNU Debugger tool) to debug the
application.
If you want to debug FBReader with command line tool, you will need to
compile the application with debugging information (set value of the
variable TARGET_STATUS to "debug" in the makefiles/target.mk).
Reply all
Reply to author
Forward
0 new messages