InitGraph lazarus / 1-Linux ---------------------------------------------------------------------- nostromo · 2006-05-21 14:04 hello:) Im stil work how to compile code with this declaration: Code: [Select] Initgraph(S,T,'??????' ); In Windows I write Code: [Select] Initgraph(S,T,'C:/Tp7/Bgi/' ); Where i can find this in Linux ? Thans for help me:) and sorry abouy my english:p I am polish litle Pascal coder ;] ---------------------------------------------------------------------- Anonymous · 2006-05-21 14:08 Quote from: "nostromo"hello:) Im stil work how to compile code with this declaration: Code: [Select] Initgraph(S,T,'??????' ); In Windows I write Code: [Select] Program Graph; Uses Crt,Graph;                 Begin       S:=9;       T:=2;       Initgraph(S,T,'C:/Tp7/BGI' ); ......     Where i can find this  in Linux ? Thans for help me:) and sorry abouy my english:p I am polish litle Pascal coder ;] ---------------------------------------------------------------------- Marc · 2006-05-22 12:51 This doesn't look like a Lazarus question Are you coding a console based graphic program or a lazarus gui based program ? ---------------------------------------------------------------------- felipemdc · 2006-05-23 17:00 Maybe you can just copy that directory to Linux. Say, copy it to: /home/user/bgi Then you can use the function like this: {$ifdef windows}   Initgraph(S,T,'C:/Tp7/Bgi/' ); {$else}   Initgraph(S,T,'/home/user/bgi' ); {$endif} ---------------------------------------------------------------------- jma_sp · 2014-11-04 08:10 I know that this entry is old, but i have a question: I can use initgraph with not problem under DOS / WIN.... but when i need the same under linux i am unable to do work. The question is what more things i need to have graphics running with simple freepascal without xorg, gtk..... And additionaly if freepascal can use directly some libraries as svgalib or similar. Also if freepascal can init graphical modes using gtk directly without using xorg or windows manager. Thanks.