Recent

Author Topic: Create new Package  (Read 9018 times)

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Create new Package
« on: October 24, 2012, 10:16:39 am »
1) Uninstall Lazarus on LInux
2) delete directory Lazarus
3) Install fpc and Lazarus 1.0.2
4) Run Lazarus and Install my Package
5) Restart Lazarus
6) does not start. Loaded to the window with the logo of Lazarus and closes (no errors).

how to know what is the problem?
There is a log file where I can analyze the problem?
What action does Lazarus at start (calling a class method, loads the resources)?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #2 on: October 24, 2012, 10:53:24 am »
See here:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#How_can_I_use_a_Log-file_for_debugging_the_IDE_itself.3F

Thank you. read, but not understood.
How can I run Lazarus in Linux (Lazarus wrote a log file)? where the string set lazarus_debuglog=c:\lazarus\debug.txt? where the log file is saved?
When starting Lazarus Log file is saved?

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #3 on: October 24, 2012, 12:30:09 pm »
I think that Lazarus in Linux install to a folder Root / Usr / Bin
I can run it from the folder, but can not start on the menu Application (closed when the window with the logo).
I not found the file in the folder debug.txt Root/Usr/Bin that launches Lazarus.

1) Where can I find out the cause of the problem (my components set the menu Install / Uniinstall but they are not in tabs in interface Lazarus).
2) What does a Lazarus at startup? What methods have packages it causes? Lazarus that initializes a packet?
3) In Lazarus in Linux, I can register multiple components in one file? For example, the module unitA component ComA, unitB module component ComB, unitC registers components ComA and ComB.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Create new Package
« Reply #4 on: October 24, 2012, 12:55:30 pm »
See here:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#How_can_I_use_a_Log-file_for_debugging_the_IDE_itself.3F

Thank you. read, but not understood.
How can I run Lazarus in Linux (Lazarus wrote a log file)? where the string set lazarus_debuglog=c:\lazarus\debug.txt? where the log file is saved?
When starting Lazarus Log file is saved?
Well, it would save it in a file called c:\lazarus\debug.txt, I suppose - probably in the current directory when you started lazarus. As that is a Windows file name, specifying an absolute path+filename something like /tmp/lazaruslog.txt may be a better idea.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #5 on: October 24, 2012, 01:11:28 pm »
I did not find the file. I did not find any file Debug.
can you give me any simple package that runs on Linux in Lazarus. I need to know, the problem with the installation of my components or a problem with Lazarus.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Create new Package
« Reply #6 on: October 24, 2012, 01:59:54 pm »
I did not find the file. I did not find any file Debug.
My crystal ball says it is because you're facing north, not south.

Sorry, I have no idea what you tried, so I give up. Please read
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://www.catb.org/~esr/faqs/smart-questions.html
I can't help if you I can't understand what is going on on your machine and what you are trying to do.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #7 on: October 24, 2012, 02:15:28 pm »
I was not interested in the problem of start Lazarus. I want to understand why, after the installation of my package has no tab with my components. The package compiles successfully, I see you installed and can not remove. question:
1) where Lazarus log file in Linux, loading packages and why not show my package in the tabs?
2) Where can I find a simple example package under Linux. I want to understand where the problem is (my components or Lazarus in Linux). My components work in Lazarus Windows (I adapted them under Lazarus Linux).
3) What makes a Lazarus with packages when you run yourself? Invoke a section of the modules at startup, loads resources components?
4) what information is needed to understand the problem?

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #8 on: October 24, 2012, 02:20:29 pm »
I use the image of Linux (for android - download here). I put the latest version Lazars 1.0.2. (with latest FPC). On the old Lazarus problem was the same.
I have no error messages.

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #9 on: October 25, 2012, 12:03:48 am »
Sorry, I have no idea what you tried, so I give up.

I made a simple test package with an empty component (from TCustomControl). After installing the package in Lazarus (1.0.2) Linux (Mandriva),no  tabs and no component in Lazarus.

Where is the mistake? Package bad?

Sorry, I'm used to Delphi. In Lazarus packages installed by another, other registration functions (in Linux). I could be wrong, create a package is not right or wrong to register. Windows Lazarus with the installation package is no problem (work function of registration package Delphi). I created the package, as it is written in the Wiki Lazarus.
« Last Edit: October 25, 2012, 12:05:50 am by proxy3d »

Stephano

  • New Member
  • *
  • Posts: 32
Re: Create new Package
« Reply #10 on: October 25, 2012, 09:07:12 am »
Try the following register procedure:

procedure Register;
begin
  RegisterUnit('mrvcamcontrol2',@RegisterTRVCamControl2);

  RegisterClasses([TRVCamControl2]);
end;

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #11 on: October 25, 2012, 10:46:34 am »
I think I understand the problem. My pack and the components are registered properly in Linux. I think the problem is with ZLib.
1) I made a new package
2) I add the module and install the package
3) when I add a module where in "uses" is used Zlib, the package is installed, but does not show in the tabs of my components.

I had this problem when porting package on Lazarus in Windows. When launching Lazarus wrote that no library Zlib1.dll. After installing the dll, run normally.
I think that Linux is the same problem.
I use a Linux module Zlib? It cross-platform? In Delphi package in a ZIP not require libraries.

Stephano

  • New Member
  • *
  • Posts: 32
Re: Create new Package
« Reply #12 on: October 25, 2012, 11:10:02 am »
You attached rvmedia.zip where you call RegisterUnit with 'RVMedia'. RVMedia unit does not exist. You should use 'mrvcamcontrol2'.

procedure Register;
begin
  //RegisterUnit('RVMedia',@RegisterTRVCamControl2); <- wrong
  RegisterUnit('mrvcamcontrol2',@RegisterTRVCamControl2);

  RegisterClasses([TRVCamControl2]);
end;

proxy3d

  • Jr. Member
  • **
  • Posts: 76
Re: Create new Package
« Reply #13 on: October 25, 2012, 04:11:18 pm »
problem solved. It was in the loading of resources in the module initialization.
Loading Resources in Delphi "LoadImage (hInstance. ..". HInstance in Lazarus does not work (in Linux). Uploading resources without hInstance.

 

TinyPortal © 2005-2018