[fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin
Adriaan van Os
fpc at microbizz.nl
Tue Jul 17 12:19:56 CEST 2007
Daniƫl Mantione wrote:
>
> Op Tue, 17 Jul 2007, schreef Adriaan van Os:
>
>> lazarus.pp(118,1) Error: resource compiler not found, switching to external
>> mode
>
> Can you try -vt to see if and in what directories the compiler tries to
> search windres?
>
> It could very well be that the compiler searches for windres.exe, this
> would be a bug.
Ah, yes, it was looking for "i386-win32-windres"
Searching file i386-win32-windres... not found
Searching file /usr/bin/i386-win32-windres... not found
Searching file /bin/i386-win32-windres... not found
Searching file /sbin/i386-win32-windres... not found
Searching file /usr/bin/i386-win32-windres... not found
Searching file /usr/sbin/i386-win32-windres... not found
Searching file /usr/local/bin/i386-win32-windres... not found
lazarus.pp(118,1) Error: resource compiler not found, switching to external mode
[p17:~/fpc/svn/lazarus] adriaan% ls -l /usr/bin/windres*
lrwxr-xr-x 1 root wheel 23 Jul 16 16:11 /usr/bin/windres -> i686-pc-mingw32-windres
On my mac, /usr/bin/windres is actually a symbolic link to i686-pc-mingw32-windres, but after
adding the i386-win32-windres symbolic link, lazarus cross-builds with success !
[[p17:~/fpc/svn/lazarus] adriaan% ls -l
total 189448
drwxr-xr-x 6 root adriaan 204 Jul 16 16:44 C:lazarus
-rw-r--r-- 1 adriaan adriaan 1447 Jun 17 2006 COPYING
-rw-r--r-- 1 adriaan adriaan 18088 Jun 17 2006 COPYING.GPL
-rw-r--r-- 1 adriaan adriaan 25275 Jun 17 2006 COPYING.LGPL
-rw-r--r-- 1 adriaan adriaan 1259 Jun 17 2006 COPYING.modifiedLGPL
-rw-r--r-- 1 adriaan adriaan 114993 Jun 7 11:24 Makefile
-rw-r--r-- 1 adriaan adriaan 3685 Jan 11 2007 Makefile.fpc
-rw-r--r-- 1 adriaan adriaan 2285 Jan 11 2007 README.txt
drwxr-xr-x 39 adriaan adriaan 1326 Jul 16 16:03 components
drwxr-xr-x 8 adriaan adriaan 272 Jun 7 11:23 converter
drwxr-xr-x 33 adriaan adriaan 1122 Jan 11 2007 debian
drwxr-xr-x 36 adriaan adriaan 1224 Jul 12 17:30 debugger
drwxr-xr-x 35 adriaan adriaan 1190 Jul 12 17:30 designer
drwxr-xr-x 52 adriaan adriaan 1768 Jul 12 17:31 doceditor
drwxr-xr-x 23 adriaan adriaan 782 Jul 16 16:03 docs
drwxr-xr-x 95 adriaan adriaan 3230 Jul 16 16:03 examples
drwxr-xr-x 261 adriaan adriaan 8874 Jul 17 12:09 ide
drwxr-xr-x 89 adriaan adriaan 3026 Jul 16 16:07 ideintf
drwxr-xr-x 115 adriaan adriaan 3910 Jul 17 11:17 images
drwxr-xr-x 4 adriaan adriaan 136 Jun 7 11:23 install
drwxr-xr-x 31 adriaan adriaan 1054 Jul 16 16:03 languages
-rw-r--r-- 1 adriaan adriaan 61941269 Jul 17 12:10 lazarus.exe
-rw-r--r-- 1 adriaan adriaan 24999860 Jul 17 12:10 lazbuild.exe
drwxr-xr-x 109 adriaan adriaan 3706 Jul 17 10:55 lcl
-rw-r--r-- 1 adriaan adriaan 2082 Jun 7 11:24 localize.bat
-rwxr-xr-x 1 adriaan adriaan 1732 Jan 11 2007 localize.sh
drwxr-xr-x 41 adriaan adriaan 1394 Jul 16 16:07 packager
-rw-r--r-- 1 adriaan adriaan 9850570 Jul 17 12:10 startlazarus.exe
drwxr-xr-x 14 adriaan adriaan 476 Jun 7 11:22 test
drwxr-xr-x 34 adriaan adriaan 1156 Jul 16 16:48 tools
drwxr-xr-x 4 adriaan adriaan 136 Jul 17 11:04 units
The "C:lazarus" directory is a cross-installation problem, of course, I will look at that next.
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list