Здравствуйте.
При попытке установить Ваш компонент ATSynEdit (версия, скачанная 22.03.25) вышла ошибка
atsynedit_adapter_gtk2ime.pas(131,5) Error: Identifier not found "IM_Context_Set_Cursor_Pos"
После установки параметра WITH_GTK2_IM в конфигурацию сборки lazarus и сборки lazarus
вышла ошибка
datetimepicker.pas(85,12) Fatal: Can't find unit DateTimePicker used by DateTimeCtrls.
Если убрать этот параметр, то эта ошибка не появляется.
Что я делаю не так? Спасибо.
lazarus 3.6
fpc 3.2.2.
Ошибка сборки lazarus
-
- Posts: 2404
- Joined: 25.08.2021 18:15
Re: Ошибка сборки lazarus
это какой-то баг в Лазарус, я видел жалобу на
Can't find unit DateTimePicker used by DateTimeCtrls.
уже раза 3 на оф. форуме Лазаруса. не знаю как это править.
Can't find unit DateTimePicker used by DateTimeCtrls.
уже раза 3 на оф. форуме Лазаруса. не знаю как это править.
-
- Posts: 2404
- Joined: 25.08.2021 18:15
Re: Ошибка сборки lazarus
Лазарус можно попробовать 3.8 а не 3.6. а еще лучше - искать ошибки в 4.0 RC2.
https://forum.lazarus.freepascal.org/in ... 820.0.html
https://forum.lazarus.freepascal.org/in ... 820.0.html
-
- Posts: 2404
- Joined: 25.08.2021 18:15
Re: Ошибка сборки lazarus
спросил про этот трабл у ИИ.
его ответ запутанный. но может помочь.
===
The error you're encountering, "Can't find unit DateTimePicker used by DateTimeCtrls," typically indicates that the Lazarus IDE cannot locate the DateTimePicker unit. This can happen for several reasons, especially after adding custom define-words in the IDE properties dialog. Here are some steps to troubleshoot and resolve this issue:
1 Check Package Installation:
Ensure that the DateTimeCtrls package is installed correctly. Since Lazarus 1.8, the design-time code is separated into another package called DateTimeCtrlsDsgn. Make sure both packages are installed in the IDE 12.
2 Verify Unit Paths:
Make sure the paths to the DateTimeCtrls and DateTimeCtrlsDsgn packages are correctly set in the Lazarus IDE. You can check this under Environment -> Environment Options -> Files -> FPC source directory and ensure the paths include the directories where these packages are located 3.
3 Rebuild the IDE:
Sometimes, rebuilding the IDE can resolve path and unit issues. You can do this by selecting Tools -> Build Lazarus with Profile and then choosing the appropriate profile for your setup.
4 Check for Compiler Mismatch:
Ensure that you are using the same compiler and RTL for compiling your project as you used for compiling the Lazarus IDE. A mismatch can cause unit not found errors 4.
5 Clean Compilation:
Perform a clean compilation of your project. This can be done by selecting Project -> Clean Up and then rebuilding your project. This ensures that no old or incorrect files are being used.
6 Check Custom Define-Words:
If you added custom define-words, ensure they are not interfering with the compilation process. Double-check the settings in the Configure Build Lazarus dialog to make sure they are correct.
его ответ запутанный. но может помочь.
===
The error you're encountering, "Can't find unit DateTimePicker used by DateTimeCtrls," typically indicates that the Lazarus IDE cannot locate the DateTimePicker unit. This can happen for several reasons, especially after adding custom define-words in the IDE properties dialog. Here are some steps to troubleshoot and resolve this issue:
1 Check Package Installation:
Ensure that the DateTimeCtrls package is installed correctly. Since Lazarus 1.8, the design-time code is separated into another package called DateTimeCtrlsDsgn. Make sure both packages are installed in the IDE 12.
2 Verify Unit Paths:
Make sure the paths to the DateTimeCtrls and DateTimeCtrlsDsgn packages are correctly set in the Lazarus IDE. You can check this under Environment -> Environment Options -> Files -> FPC source directory and ensure the paths include the directories where these packages are located 3.
3 Rebuild the IDE:
Sometimes, rebuilding the IDE can resolve path and unit issues. You can do this by selecting Tools -> Build Lazarus with Profile and then choosing the appropriate profile for your setup.
4 Check for Compiler Mismatch:
Ensure that you are using the same compiler and RTL for compiling your project as you used for compiling the Lazarus IDE. A mismatch can cause unit not found errors 4.
5 Clean Compilation:
Perform a clean compilation of your project. This can be done by selecting Project -> Clean Up and then rebuilding your project. This ensures that no old or incorrect files are being used.
6 Check Custom Define-Words:
If you added custom define-words, ensure they are not interfering with the compilation process. Double-check the settings in the Configure Build Lazarus dialog to make sure they are correct.