Erro Library Windows on Linux ( Urgent ) lazarus / 1-Linux ---------------------------------------------------------------------- rafaelfm · 2011-11-30 16:30 Hello, I'm trying to run an aplicattion (done on windows) in Linux. But when I run I get this: ../../../BySat/Lib/XBS_LogExecucao.pas(18,23) Fatal: Can't find unit Windows used by XBS_LogExecuca Sure ,'m using library Windows to get TMemoryStatus , GlobalMemoryStatus. There's any library to get TMemoryStatus , GlobalMemoryStatus on Linux? If I comment out parts of code that use them generates many errors like : ______________________________________________________________________ ______________ /home/rafael/lazarus/projects/Sistemas/Lazarus/BySat/Lib/XBS_LogExecuc ao.pas(97,3) Note: Local variable "DescTexto" not used /home/rafael/lazarus/projects/Sistemas/Lazarus/BySat/Lib/XBS_LogExecuc ao.pas(98,3) Note: Local variable "DescMemoria" not used /home/rafael/lazarus/projects/Sistemas/Lazarus/BySat/Lib/XBS_LogExecuc ao.pas(35,27) Hint: Parameter "TipoMensagem" not used /home/rafael/lazarus/projects/Sistemas/Lazarus/BySat/Lib/XBS_LogExecuc ao.pas(35,40) Hint: Parameter "NomeEvento" not used /home/rafael/lazarus/projects/Sistemas/Lazarus/BySat/Lib/XBS_LogExecuc ao.pas(35,51) Hint: Parameter "DescMensagem" not used /home/rafael/lazarus/projects/Sistemas/Lazarus/BySat/Lib/XBS_LogExecuc ao.pas(18,28) Hint: Unit "Linux" not used in XBS_LogExecucao PMC_Clientes.pas(73,57) Hint: Parameter "MousePos" not used PMC_Clientes.pas(74,11) Hint: Parameter "Handled" not used /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /home/rafael/lazarus/fpc/binutils/ld: cannot find -lpthread /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lX11 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgdk_pixbuf-2.0.so when searching for -lgdk_pixbuf-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgdk_pixbuf-2.0.a when searching for -lgdk_pixbuf-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lgdk_pixbuf-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.a when searching for -lgtk-x11-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lgtk-x11-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgdk-x11-2.0.so when searching for -lgdk-x11-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgdk-x11-2.0.a when searching for -lgdk-x11-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lgdk-x11-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgobject-2.0.so when searching for -lgobject-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgobject-2.0.a when searching for -lgobject-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lgobject-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libglib-2.0.so when searching for -lglib-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libglib-2.0.a when searching for -lglib-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lglib-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgthread-2.0.so when searching for -lgthread-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgthread-2.0.a when searching for -lgthread-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lgthread-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgmodule-2.0.so when searching for -lgmodule-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libgmodule-2.0.a when searching for -lgmodule-2.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lgmodule-2.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libpango-1.0.so when searching for -lpango-1.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libpango-1.0.a when searching for -lpango-1.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -lpango-1.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libatk-1.0.so when searching for -latk-1.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libatk-1.0.a when searching for -latk-1.0 /home/rafael/lazarus/fpc/binutils/ld: cannot find -latk-1.0 /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libcairo.so when searching for -lcairo /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libcairo.a when searching for -lcairo /home/rafael/lazarus/fpc/binutils/ld: cannot find -lcairo /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl /home/rafael/lazarus/fpc/binutils/ld: cannot find -ldl /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /home/rafael/lazarus/fpc/binutils/ld: skipping incompatible /usr/lib/libc.a when searching for -lc /home/rafael/lazarus/fpc/binutils/ld: cannot find -lc ByMon_Cargo.lpr(28) Error: Error while linking ByMon_Cargo.lpr(28) Fatal: There were 1 errors compiling module, stopping ______________________________________________________________________ ______________ Could anyone help me?I do not know what to do.  Will be perfect if another library fix this problem. Thank You in advance! ---------------------------------------------------------------------- BigChimp · 2011-11-30 17:06 Try to see if the unix, baseunix etc libraries can solve the problem. Use IFDEFs to enable compilation on both platforms... See the Multiplatform/porting pages on the wiki... Good luck ---------------------------------------------------------------------- ludob · 2011-11-30 17:23 Looks like you are not using the system ld but the one from binutils. Have you specified the correct target? ---------------------------------------------------------------------- rafaelfm · 2011-12-01 12:40 I was forgetting to comment on another part of the code but now The proble is solved ,  but i have to give up TMemoryStatus , GlobalMemoryStatus My question is: I was doing before (TMemoryStatus, GlobalMemoryStatus) with the library windows, but with this library in the program do not run Linux. There's another any library that I can do (TMemoryStatus, GlobalMemoryStatus) ? Thank You