Forum > Linux

ATSynEdit install from OPM

(1/2) > >>

polpero:
Hi

ATSynEdit won't install from OPM with Laz 4.0 RC1...

checking ATSynEdit calls for the dependencies to be added
and continuing starts the process of installing and building.
Rebuilding is successfull but checking for ATSynEdit in the OPM  shows it is not installed...

When adding the  define: WITH_GTK2_IM in the Configure/Build Laz...
but I get the error message: "Error: argument to "-d" is missing"

Am I missing something?

The OS is linux Mint

AlexTP:
Quote from ATSynEdit wiki page:

--- Quote ---==Compilation errors==
'''IME error on GTK2.'''

You may get this error:

 atsynedit_adapter_gtk2ime.pas(131,5) Error: Identifier not found "IM_Context_Set_Cursor_Pos"

To fix it, edit the file "atsynedit/atsynedit_package.lpk" and remove this block there:
<syntaxhighlight lang="xml">
      <Other>
        <CustomOptions Value="-dGTK2_IME_CODE"/>
        <OtherDefines Count="1">
          <Define0 Value="GTK2_IME_CODE"/>
        </OtherDefines>
      </Other>
</syntaxhighlight>

Alternative solution when symbol "IM_Context_Set_Cursor_Pos" cannot be found: you need to open IDE dialog "Tools / Configure 'Build Lazarus'", and there enable the define: WITH_GTK2_IM; then recompile the IDE.

--- End quote ---

polpero:
Hi Alex

Thanks for the answer

This time though the topic is different

I have applied the alternative method

--- Quote ---adding the  define: WITH_GTK2_IM in the Configure/Build Laz... dlg
--- End quote ---

and I got this error message:

--- Quote ---"Error: argument to "-d" is missing"
--- End quote ---


So the question is:
 what is the compiler looking as -d missing parameter?

AlexTP:
-d<x>  Defines the symbol <x>

So you have empty lines in the 'Defines' IDE list?

backprop:
Click on "Defines" button and add WITH_GTK2_IM, then check it. But then another problem arrives...

When rebuild IDE, this information popup:


--- Code: ---Unable to find file "datetimepicker.pas".
If it belongs to your project, check search path in
Project -> Compiler Options -> Search Paths -> Other Unit Files. If this file belongs to a package, check the appropriate package compiler options. If this file belongs to Lazarus, make sure compiling clean. If the file belongs to FPC then check fpc.cfg. If unsure, check Project -> CompilerOptions -> Test
--- End code ---

I do not use datetimepicker nor ATSynEdit - this is just after recompiling IDE with such parameter. And I have created similar thread few months ago, but there is no solution. And instead ATSynEdit which I used in the past without problem, now I need to use Lazarus' SynEdit which is full of bugs and memory leaks...

Lazarus is full of strange bugs...

For the author: is it this WITH_GTK2_IM parameter really important for functionality? In earlier versions that was not existed.

Navigation

[0] Message Index

[#] Next page

Go to full version