Recent

Author Topic: I can't get the example turbopower_ipro to run  (Read 16495 times)

Adnarim

  • New Member
  • *
  • Posts: 10
I can't get the example turbopower_ipro to run
« on: December 18, 2006, 11:10:42 pm »
Hi,
I need to show different formated text in my application and the only way I could think of handling this is using the IPhtmlpanel, which is used in this example.
I can compile this example without any errors. And the jpegs are shown correctly but no text and no links and stuff like that.
This is the screen with the example index.html:
 (http://img370.imageshack.us/img370/4563/lazscreentx9.jpg)

You can see the Link-text of the index.html is not shown. Here the code of the index.html:
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>Test Page for IPro HTML control for Lazarus</title>
</head>
<body>
Lazarus example for IPro HTML control.<br>
<br>
Image ../../docs/images/cheetah1.png
<br>
<img src="../../docs/images/cheetah1.png" title="" alt="cheetah.png image"
 style="width: 250px; height: 188px;"><br>
<br>
Image ../../docs/images/laztitle.jpg
<br>
<img src="../../docs/images/laztitle.jpg" title="" alt="laztitle.jpg image"
 style="width: 250px; height: 188px;"><br>
<br>
Image broken
<br>
<img src="../../docs/images/cheetah2.png" title="" alt="cheetah.png image"
 style="width: 250px; height: 188px;"><br>
<br>
<a href="simplepage2.html">Link</a><br>
</body>
</html>


This whole happens under linux. Does someone know what I can do now?

greets

Adnarim

  • New Member
  • *
  • Posts: 10
I can't get the example turbopower_ipro to run
« Reply #1 on: December 19, 2006, 10:00:47 pm »
Noone an idea? Or some suggestion which other componant I could use to show formated text?

jesusr

  • Sr. Member
  • ****
  • Posts: 484
I can't get the example turbopower_ipro to run
« Reply #2 on: December 21, 2006, 08:23:59 pm »
I will take a look at the ipro problem. There are other options, for example check out: http://wiki.lazarus.freepascal.org/RichView

jesusr

  • Sr. Member
  • ****
  • Posts: 484
I can't get the example turbopower_ipro to run
« Reply #3 on: December 23, 2006, 12:02:39 am »
I reproduced the problem in my system, I fixed a bug in lazarus and after that it works ok, please update to lazarus revision 10349 or later and try again, report if problem persist, preferable by filling a bug report about it.

Adnarim

  • New Member
  • *
  • Posts: 10
I can't get the example turbopower_ipro to run
« Reply #4 on: December 23, 2006, 06:02:23 pm »
Hi,
where can I find this revision 10349? I'm using Lazarus on linux and I have installed the newest lazarus_0.9.20-0_i386.deb packet from http://sourceforge.net/project/showfiles.php?group_id=89339.

greets

Lord_ZealoN

  • Full Member
  • ***
  • Posts: 141
    • http://lordzealon.com
I can't get the example turbopower_ipro to run
« Reply #5 on: December 23, 2006, 07:24:49 pm »
I think he speaks about getting the Lazarus source an compile it.

If you don't want to do this, download the nightybuild: http://www.hu.freepascal.org/lazarus/

Adnarim

  • New Member
  • *
  • Posts: 10
I can't get the example turbopower_ipro to run
« Reply #6 on: December 27, 2006, 04:27:49 pm »
hey,
I tried now a few days long but I can't install the nightly built on linux (ubuntu). I've downloaded de rpm-packet and converted it to a deb one. This I can install without any error but if I start lazarus I get errors, that the paths aren't right and I should go to the environment tab and fix the problem:(http://img153.imageshack.us/img153/4332/lazerrordp0.jpg)

But how? What is the right directory to choose? usr/share/lazarus won't work either...

greets

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
I can't get the example turbopower_ipro to run
« Reply #7 on: December 27, 2006, 07:11:30 pm »
the right laz directory is the one containing the sources.
It should contain directories like: components, debugger, designer, docs, ide, ideintf, languages, lcl etc.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Adnarim

  • New Member
  • *
  • Posts: 10
I can't get the example turbopower_ipro to run
« Reply #8 on: December 29, 2006, 10:10:21 pm »
K thanks I changed the path to /usr/lib/lazarus and everything starts fine now. But now an other problem appeared :( I can't compile the example anymore. If I open it as an project (the example folder has been copied to the desktop to get write permission) and press the green arrow I get:
 Couldn't write the file /usr/lib/lazarus/components/turbopower_ipro/Makefile.fpc
What is of course right because on linux no program can simply write into the /usr/lib folder unless he is root. And because under linux you don't work as root this can of course not work. This should really be changed in lazarus. No linuxuser wants Lazarus write into systemfolder or at least folders behind /usr/...

So I went on to the projects tab and wanted to do 'make file'  to compile the file into the examples folder on my desktop but he alwas says:
/home/adnarim/Desktop/turbopower_ipro/mainunit.pas(11,22) Fatal: Can't find unit LResources
.

What does this mean? Do I need to link this unit somewhere?

greets

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
I can't get the example turbopower_ipro to run
« Reply #9 on: January 02, 2007, 11:09:16 am »
I think this is some kind of bug. However since I run lazarus from my own sourcedir (and don't install it I can't confirm it)

However how things should work: When laz is installed in a ro dir, then when laz needs to be recompiled, it recompiles itself to ~/.lazarus/bin compiled packages go also somewhere in ~/.lazarus (lib?)
In your case I suspect that the last part isn't working.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018