Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-11

Windows Seven and SVN source install

10 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

Hi there,

I just got a laptop that came with Windows Seven. I have complete automation scripts with my Ubuntu boxes but NONE of the commands to "make" FPC translate for me.

I poured over wikis and blogs for info and even found the official (link below).
http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources_for_Windows <<< Someone's TODO.

If anyone has a batch file with the propper commands send it here.. I really want to start developing on this laptop. Will go dual boot shortly if I have to but I'd rather just have the ability to develop on both platforms (using Lazarus/FPC).

Thanks to anyone who can /will help. -Andy

Vincent Snijders
to Andrew Brunner
Andrew Brunner wrote 16 lines
Hi there, I just got a laptop that came with Windows Seven. I have complete automation scripts with my Ubuntu boxes but NONE of the commands to "make" FPC translate for me. I poured over wikis and blogs for info and even found the official (link below). http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources_for_Windows <<< Someone's TODO. If anyone has a batch file with the propper commands send it here.. I really want to start developing on this laptop. Will go dual boot shortly if I have to but I'd rather just have the ability to develop on both platforms (using Lazarus/FPC).

Did you install fpc 2.2.4 and set the %PATH% to the directory that contains the fpc.exe executable?

Vincent

Andrew Brunner
to Vincent Snijders

Yes. From any folder in command prompt I get fpc access. I just don't know the make commands and parameters.

-Andy

Vincent Snijders wrote 28 lines
Andrew Brunner schreef: > > Hi there, > > I just got a laptop that came with Windows Seven.  I have complete > automation scripts with my Ubuntu boxes but NONE of the commands to > "make" FPC translate for me. > > I poured over wikis and blogs for info and even found the official > (link below). > > http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources_for_Windows >  <<< Someone's TODO. > > If anyone has a batch file with the propper commands send it here.. I > really want to start developing on this laptop.  Will go dual boot > shortly if I have to but I'd rather just have the ability to develop > on both platforms (using Lazarus/FPC). > Did you install fpc 2.2.4 and set the %PATH% to the directory that contains the fpc.exe executable? Vincent _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe
to Andrew Brunner

Andrew Brunner wrote on Sat, 07 Nov 2009:

Yes. From any folder in command prompt I get fpc access. I just don't know the make commands and parameters.

make all
make install INSTALL_PREFIX=c:\path\without\spaces

(and make sure the sources are also installed in a hierarchy without spaces in the directory names)

Jonas

---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

Andrew Brunner
to Vincent Snijders

Make Install PREFIX worked but it required Elevated User Status. And to do this under Seven you must right click the icon for command prompt and select run as administrator. Running command prompt as an administrator will enable the installation properly from the command prompt. Otherwise the make install command fails.

Next I wannt to do the make source install. I had a problem with the source install. The MyPrefix I used was c:\FPC. Where were the files supposed to be copied? I'm updating the Wiki site for Windows and I just want to make sure my instructions are verified... And I didn't get the source copied using make install sourceinstall PREFIX=MyPrefix

Vincent Snijders wrote 12 lines
Andrew Brunner schreef: > > Yes.  From any folder in command prompt I get fpc access.  I just > don't know the make commands and parameters. Did you try the same as on linux (that is what the wiki suggested). Vincent _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Andrew Brunner
to Andrew Brunner

C:\Developer\FPC>make install sourceinstall PREFIX=C:\FPC

make -C win32 exampleinstall
make[4]: Entering directory `C:/Developer/FPC/rtl/win32' make[4]: Nothing to be done for `exampleinstall'.
make[4]: Leaving directory `C:/Developer/FPC/rtl/win32' make[3]: Leaving directory `C:/Developer/FPC/rtl'
make[2]: Leaving directory `C:/Developer/FPC'
make[1]: Leaving directory `C:/Developer/FPC'
make installother FPC=C:/Developer/FPC/compiler/ppc386.exe ZIPDESTDIR=C:/Develop er/FPC FPCMAKE=C:/Developer/FPC/utils/fpcm/fpcmake.exe make[1]: Entering directory `C:/Developer/FPC'
make packages_distinstall FPC=C:/Developer/FPC/compiler/ppc386.exe ZIPDESTDIR=C: /Developer/FPC FPCMAKE=C:/Developer/FPC/utils/fpcm/fpcmake.exe make[2]: Entering directory `C:/Developer/FPC'
make -C packages distinstall
make[3]: Entering directory `C:/Developer/FPC/packages' make -C hash distinstall
make[4]: Entering directory `C:/Developer/FPC/packages/hash' C:/Developer/FPC/utils/fpcm/fpcmake.exe -p -Ti386-win32 Makefile.fpc Processing Makefile.fpc
Writing Package.fpc
C:/FPC/bin/i386-Win32/ginstall.exe -m 755 -d C:\FPC/units/i386-win32/hash C:/FPC/bin/i386-Win32/cp.exe -fp Package.fpc C:\FPC/units/i386-win32/hash C:/FPC/bin/i386-Win32/ginstall.exe -m 755 -d C:\FPC/units/i386-win32/hash C:/FPC/bin/i386-Win32/cp.exe -fp units/i386-win32/md5.ppu units/i386-win32/crc.p pu units/i386-win32/ntlm.ppu units/i386-win32/uuid.ppu units/i386-win32/sha1.ppu C:\FPC/units/i386-win32/hash
C:/FPC/bin/i386-Win32/cp.exe -fp units/i386-win32/md5.o units/i386-win32/crc.o u nits/i386-win32/ntlm.o units/i386-win32/uuid.o units/i386-win32/sha1.o C:\FPC/un its/i386-win32/hash
make -C examples distclean
make[5]: Entering directory `C:/Developer/FPC/packages/hash/examples' C:/FPC/bin/i386-Win32/rm.exe -f mdtest.exe crctest.exe sha1test.exe mdtest.o crc test.o sha1test.o libpmdtest.a libpcrctest.a libpsha1test.a libimpmdtest.a libim pcrctest.a libimpsha1test.a
C:/FPC/bin/i386-Win32/rm.exe -rf units
C:/FPC/bin/i386-Win32/rm.exe -f *.o *.ppu *.rst *.s *.a *.dll *.ppl C:/FPC/bin/i386-Win32/rm.exe -rf *.sl
C:/FPC/bin/i386-Win32/rm.exe -f fpcmade.* Package.fpc ppas.bat script.res link.r es
C:/FPC/bin/i386-Win32/rm.exe -f *_ppas.bat
make[5]: Leaving directory `C:/Developer/FPC/packages/hash/examples' C:/FPC/bin/i386-Win32/ginstall.exe -m 755 -d C:\FPC/examples/hash C:/FPC/bin/i386-Win32/cp.exe -Rfp examples/* C:\FPC/examples/hash cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/all-wcprops': Permi ssion denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/entries': Permissio n denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/prop-base/crctest.p as.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/prop-base/Makefile. fpc.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/prop-base/Makefile. svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/prop-base/md5.ref.s vn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/prop-base/mdtest.pa s.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/prop-base/sha1test. pp.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/text-base/crctest.p as.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/text-base/Makefile. fpc.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/text-base/Makefile. svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/text-base/md5.ref.s vn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/text-base/mdtest.pa s.svn-base': Permission denied
cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/text-base/sha1test. pp.svn-base': Permission denied
make[4]: *** [fpc_exampleinstall] Error 1
make[4]: Leaving directory `C:/Developer/FPC/packages/hash' make[3]: *** [hash_distinstall] Error 2
make[3]: Leaving directory `C:/Developer/FPC/packages' make[2]: *** [packages_distinstall] Error 2
make[2]: Leaving directory `C:/Developer/FPC'
make[1]: *** [installother] Error 2
make[1]: Leaving directory `C:/Developer/FPC'
make: *** [install] Error 2

Another problem I had from 2.2.4 is that the new binaries were mising a few items like make and some others... So I had to merge missing files to get 2.5.1 to work.

Jonas Maebe
to Andrew Brunner

Andrew Brunner wrote on Sat, 07 Nov 2009:

C:/FPC/bin/i386-Win32/cp.exe -Rfp examples/* C:\FPC/examples/hash cp.exe: cannot remove old link to `C:/FPC/examples/hash/.svn/all-wcprops': Permi ssion denied

You have to build/install an exported copy under Windows due to a bug in cp.exe there. First perform

C:\Developer\FPC> svn export . c:\Developer\FPCExport

Then build/install from c:\Developer\FPCExport

Another problem I had from 2.2.4 is that the new binaries were mising a few items like make and some others... So I had to merge missing files to get 2.5.1 to work.

make is not an FPC utility, it is not built when building FPC. It's an external program that's used with FPC. That's why you have to copy those over if you want to start from scratch.

Jonas

---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

Marco van de Voort
to Andrew Brunner: Make Install PREFIX worked but it required Elevated User Status. And to do this under…

In our previous episode, Andrew Brunner said:

Make Install PREFIX worked but it required Elevated User Status. And to do this under Seven you must right click the icon for command prompt and select run as administrator.

This will be fixed in 2.4.0 (as long as you install to a location that doesn't need privileges)

Many workarounds for these kinds of problems are in the buildfaq

http://www.stack.nl/~marcov/buildfaq.pdf

Andrew Brunner
to Jonas Maebe: Andrew Brunner wrote on Sat, 07 Nov 2009: You have to build/install an exported copy…
Jonas Maebe wrote 7 lines
You have to build/install an exported copy under Windows due to a bug in cp.exe there. First perform C:\Developer\FPC> svn export . c:\Developer\FPCExport Then build/install from c:\Developer\FPCExport

Well, if this is a bug I guess it would work itself out later.

make is not an FPC utility, it is not built when building FPC. It's an external program that's used with FPC. That's why you have to copy those over if you want to start from scratch.

Ok, under linux make must be readily available w/o FPC. Ummm. This really complicates things for ppl who don't know what they are doing under Windows. Linux is FAR EASIER to manage FPC/Lazarus via SVN/trunk.

I suppose a command line utilty could be made to list PREFIX FPC folder for missing files that are not present AFTER make install and that would cover the merging automatcially.