Hi all. I have been a lurker on this list a while, and I now have the chance to make an…
Show quoted text 26 lines
Thx.
I have applied it. Although not tested (no windows at the moment).
Mattias

Mailing lists / lazarus / 2002-07
3 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi all. I have been a lurker on this list a while, and I now have the chance to make an…
Thx.
I have applied it. Although not tested (no windows at the moment).
Mattias
Hi all. I have been a lurker on this list a while, and I now have the chance to make an…
Okay, I solved it myself, GetEnv is in unit DOS - when I added that, The FindFirst Reference in DirectoryExists refused it's parameters.
So I changed the reference of it and the FindClose to Sysutils.FindFirst and Sysutils.FindClose.
here's a patch (attached).
I am guessing it might be that GetEnv should be in SysUtils as well as Dos, but I'll leave that to someone more qualified.
Anyway, I couldn't build without the patch.
Martyn Ranyard
Free Software Advocate
jabber -
icq - 122500800
irc - Joran on oftc
msn -
y! - ranyardm
e -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00015.bin
Type: application/octet-stream
Size: 684 bytes
Desc: "makeonw32.patch"
Url : http://localhost/pipermail/lazarus/attachments/20020708/4059d856/bin00015.bin
Hi all.
I have been a lurker on this list a while, and I now have the chance to make an app in freepascal (unfortunately it's a closed source app, but I can also work on a opensource project as well (-: ).
Right, so my main target is Win32 - all my development currently is under win32, apart from daemon-level stuff on linux, which I use jstar/ppc386 for.
I used cvs on the linux server to pull latest lazarus and copied it to my win32 machine which has fpc-1.0.6 installed in c:\pp. I put it in c:\lazarus.
I issued the command fpcmake, but this didn't do anything useful, so I wiped out the dir, got make.exe from mingw (I have too little space for cygwin), and ran it.
The error I got was "windres: images/mainicon.ico: read of 7336 returned 1198". I looked at it, and yes, that file didn't seem to be a windows compatible icon. The xpm source is 64x64 and I couldn't find an icon editor on my machine that actually creates the new-format 64x64 icons. So I went to webcvs and pulled the 1.0 version!
That got me past that one, but then I reran make and the following happened :
Compiling ideprocs.pp
ideprocs.pp(165,5) Note: Local variable ATEXT not used
ideprocs.pp(245,31) Hint: Parameter AFILENAME not used
ideprocs.pp(624,11) Error: Identifier not found GETENV
ideprocs.pp(629,13) Error: Identifier not found GETENV
ideprocs.pp(632,15) Error: Identifier not found GETENV
ideprocs.pp(746) Fatal: There were 3 errors compiling module, stopping
make[1]: *** [lazarus.exe] Error 1
make[1]: Leaving directory `C:/lazarus'
make: *** [ide] Error 2Now I'd rather not wind back ideprocs.pp to get the unit working, and I'll start grepping for GETENV, but in the meantime, anyone know why this might be?
Martyn Ranyard
Free Software Advocate
jabber -
icq - 122500800
irc - Joran on oftc
msn -
y! - ranyardm
e -