Dear Markov
I explain what I have done
1) downloaded the compiled Lazarus1.8 from Opensuse with YAST
2) Installed it also with Yast
3) copied the Demo programs out to my Home directory, changed the Ownership and compiled it
When I try to compile Openglecontrol Lazarus refuses The error rises in the Moduleloader
unit moduleloader;
{
$Id: moduleloader.pas,v 1.4 2004/02/20 17:19:10 savage Exp $
}
{******************************************************************}
{ }
{ Project JEDI }
{ OS independent Dynamic Loading Helpers }
{ }
{ The initial developer of the this code is }
{ Robert Marquardt <robert_marquardt@gmx.de) }
{ }
{ Copyright (C) 2000, 2001 Robert Marquardt. }
{ }
{ Obtained through: }
{ Joint Endeavour of Delphi Innovators (Project JEDI) }
{ }
{ You may retrieve the latest version of this file at the Project }
{ JEDI home page, located at
http://delphi-jedi.org }
{ }
{ The contents of this file are used with permission, subject to }
{ the Mozilla Public License Version 1.1 (the "License"); you may }
{ not use this file except in compliance with the License. You may }
{ obtain a copy of the License at }
{
http://www.mozilla.org/NPL/NPL-1_1Final.html }
{ }
{ Software distributed under the License is distributed on an }
{ "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or }
{ implied. See the License for the specific language governing }
{ rights and limitations under the License. }
{ }
{******************************************************************}
{
$Log: moduleloader.pas,v $
Revision 1.4 2004/02/20 17:19:10 savage
Added Calling convention to Win32 functions just in case.
Revision 1.3 2004/02/14 22:36:29 savage
Fixed inconsistencies of using LoadLibrary and LoadModule.
Now all units make use of LoadModule rather than LoadLibrary and other dynamic proc procedures.
Revision 1.2 2004/02/14 00:23:39 savage
As UNIX is defined in jedi-sdl.inc this will be used to check linux compatability as well. Units have been changed to reflect this change.
Revision 1.1 2004/02/14 00:04:50 savage
dllfuncs conflicts with FreePascal so it has been renamed back to the moduleloader.pas
Revision 1.1 2004/02/05 00:08:19 savage
Module 1.0 release
}
interface
{$i jedi-sdl.inc}
{$WEAKPACKAGEUNIT ON}
Hier the error
moduleloader.pas(190,3) Fatal: no puedo encontrar Libcutilizado por moduleloader.
And hier the Beginning of LIBC
{$mode objfpc}
{$inline on}
{$h+}
{$if not defined(linux) or not defined(cpui386)}
{$error The KernelDefs unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). }
{$endif}
unit libc deprecated 'Unportable Kylix legacy unit that only exists on Linux/x86. see
http://wiki.freepascal.org/libc_unit ';
Interface
uses unixtype,kerneldefs;
Const
clib = 'c';
dllib
And here the offending part, where Lazarus strikes
{$ENDIF}
{$IFDEF Unix}
uses
{$ifdef Linux}
Types,
Libc;
{$else}
dl,
Types,
Baseunix,
Unix;
{$endif}
type
// Handle to a loaded .so
TModuleHandle = Pointer;
const
// Value designating an unassigned TModuleHandle od a failed loading
INVALID_MODULEHANDLE_VALUE = TModuleHandle(nil);