Cannot find ncurses unit lazarus / 61-Beginners ---------------------------------------------------------------------- Thanos · 2022-09-26 07:04 Hello everyone. I'm new to Lazarus and object pascal and I have a problem with a console app that cannot find a system unit. I installed Lazarus 2.2.2 for Win64 on Windows 10 64bit. I created a test console application: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program consol; uses Windows, ncurses; begin  SetConsoleOutputCP(CP_UTF8);  writeln('Hello, world.');  readln;end.     I get the error message consol.lpr(3,15) Fatal: Cannot find ncurses used by consol of the Project Inspector. I see that the unit does exist in the C:\lazarus\fpc\3.2.2\source\packages\ncurses directory though. How can I integrate it so that the compiler sees it? TIA ---------------------------------------------------------------------- KodeZwerg · 2022-09-26 07:16 I do not know about ncurses (on my system that is a package not a unit) but for windows console applications it is a must to add this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program AName;{$APPTYPE CONSOLE} ---------------------------------------------------------------------- marcov · 2022-09-26 07:20 ncurses compilation isn't enabled for Windows, as it is a typical Unix library. You'd also need ncurses static libraries. ---------------------------------------------------------------------- Thaddy · 2022-09-26 07:22 It does not compile under Windows, indeed. But it is a regression, so plz report on the bug tracker. ncurses needs a proper install of cygwin or similar, though. ---------------------------------------------------------------------- MarkMLl · 2022-09-26 07:25 Quote from: Thanos on September 26, 2022, 09:04:22 amHello everyone. I'm new to Lazarus and object pascal and I have a problem with a console app that cannot find a system unit. I installed Lazarus 2.2.2 for Win64 on Windows 10 64bit. I suspect that's unix-only, looking at the source it pulls in the ncurses binary library (.so in the case of e.g. Linux, .dll in the case of Windows /if/ such a thing exists). Why are you trying to use that specific library? MarkMLl ---------------------------------------------------------------------- Thaddy · 2022-09-26 07:28 It is a regression Mark. At least with Cygwin it used to compile, afaik. I agree with your further remarks. ---------------------------------------------------------------------- Thanos · 2022-09-26 07:30 THanks for the replies everyone. Quote from: MarkMLl on September 26, 2022, 09:25:32 am Why are you trying to use that specific library? MarkMLl I'm trying my hand on cross platform apps. I want it to compile on both Win 10 and Linux. And probably it will be run through an SSH connection to a server. Quote from: Thaddy on September 26, 2022, 09:22:30 amIt does not compile under Windows, indeed. But it is a regression, so plz report on the bug tracker. THank you. Will do. ---------------------------------------------------------------------- Thaddy · 2022-09-26 07:40 Note that under Windows I believe there is also a dependency on msvcrt.dll but that is almost always available. ---------------------------------------------------------------------- beria · 2022-09-26 09:46 Quote from: Thanos on September 26, 2022, 09:04:22 amHello everyone. I'm new to Lazarus and object pascal and I have a problem with a console app that cannot find a system unit. I installed Lazarus 2.2.2 for Win64 on Windows 10 64bit. I created a test console application: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program consol; uses Windows, ncurses; begin  SetConsoleOutputCP(CP_UTF8);  writeln('Hello, world.');  readln;end.     I get the error message consol.lpr(3,15) Fatal: Cannot find ncurses used by consol of the Project Inspector. I see that the unit does exist in the C:\lazarus\fpc\3.2.2\source\packages\ncurses directory though. How can I integrate it so that the compiler sees it? TIA Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program consol;begin  writeln('Hello, world.');  readln;end. ---------------------------------------------------------------------- PascalDragon · 2022-09-26 11:29 Quote from: Thaddy on September 26, 2022, 09:22:30 amIt does not compile under Windows, indeed. But it is a regression, so plz report on the bug tracker. ncurses needs a proper install of cygwin or similar, though. Cygwin is not a supported target. The ncurses library is not available as a non-Cygwin library, so no, it's not supposed to be enabled, thus it's no regression. ---------------------------------------------------------------------- Arioch · 2022-09-26 12:00 Quote from: PascalDragon on September 26, 2022, 01:29:47 pmThe ncurses library is not available as a non-Cygwin library This is a bit too generic. MSYS2 has it (c:\Git\usr\bin\msys- ncursesw6.dll ), and probably every other UNIX-like environment for Windows too. But it is not part of native Windows native support for sure. Just like Lazarus for Linux would hardly include immediate suport for Windows-specific libraries from WinE ---------------------------------------------------------------------- PascalDragon · 2022-09-27 07:56 Quote from: Arioch on September 26, 2022, 02:00:34 pmBut it is not part of native Windows native support for sure. Yes, should have said as a “native Windows library” without Cygwin, MSYS or whatever.