Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2007, 05:27 AM   #1
tribble
iLiad Maniac
tribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it is
 
tribble's Avatar
 
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
Need help getting started with gtk

Hi!

I am just starting to learn c++.
I used the developer vmware image to setup a dev environment.
I started scratchbox and i compiles fine.
i can get the busy led to flash and the screen to refresh and the pagebar to show the pagenumber i want.

What i want to do is paint anythin i want on the screen. But i have not really a clue on how to do that.

I was trying to include <gtk/gtk.h>, but it doesn't find the library. There are gtk 1.2 and 2.0 installed in the scratchbox environment. How do i get them to be included, when i compile the program?
tribble is offline   Reply With Quote
Old 06-04-2007, 06:18 AM   #2
tribble
iLiad Maniac
tribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it is
 
tribble's Avatar
 
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
ok, i hvae just simply made a symbolic link from "gtk" to "gtk-2.0/gtk". Now the program complies. But i get an error on the iliad:

./myprogram: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory

I thought the gtk libraries were installed on the iliad? What do i have to do to make my program load them correctly?
tribble is offline   Reply With Quote
Advert
Old 06-04-2007, 12:18 PM   #3
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Only some of GTK is installed on the iLiad.

You'll may also find GTK frustrating to work with since it generally runs its own event loop processor making it difficult to properly refresh the iLiad's screen at the right times.

You might find the learning curve for Java to be less steep.
scotty1024 is offline   Reply With Quote
Old 06-04-2007, 01:05 PM   #4
tribble
iLiad Maniac
tribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it is
 
tribble's Avatar
 
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
Quote:
Originally Posted by scotty1024 View Post
Only some of GTK is installed on the iLiad.

You'll may also find GTK frustrating to work with since it generally runs its own event loop processor making it difficult to properly refresh the iLiad's screen at the right times.

You might find the learning curve for Java to be less steep.
Hehe, you might be right. I have done some Java programming before and that was quite easy. But since the JVM seems to be quite castrated, i didnt even want to bother. On the other hand, i might give it a try, because so far, i havent gotten anywhere.
tribble is offline   Reply With Quote
Old 06-05-2007, 12:38 PM   #5
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Quote:
Originally Posted by tribble View Post
Hehe, you might be right. I have done some Java programming before and that was quite easy. But since the JVM seems to be quite castrated, i didnt even want to bother. On the other hand, i might give it a try, because so far, i havent gotten anywhere.
You pays your money and you takes your choice: castrated GTK or castrated Java. :behead:

At least you can run the Java on your PC before sending it to the iLiad.
scotty1024 is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gtk frontend for Calibre nbdarvin Calibre 6 05-06-2010 12:51 PM
iLiad GTK Application Needed Adam B. iRex Developer's Corner 8 04-04-2009 05:45 AM
Is a gtk version possible? frandavid100 Calibre 14 12-16-2008 03:09 PM
iLiad [ILIAD]GTK developpement Olivier78180 iRex Developer's Corner 7 07-14-2008 05:22 PM
GTK+ Plucker viewer rsperberg Reading and Management 0 11-21-2005 02:14 PM


All times are GMT -4. The time now is 12:43 PM.


MobileRead.com is a privately owned, operated and funded community.