[Aldor-l] aldor/NMakefile

Bill Page bill.page at newsynthesis.org
Sat Sep 8 01:35:03 EDT 2007


Laurentiu,

Thank you for updating the MSVC build for Aldor.

I had a little trouble configuring Microsoft's current free "Visual
C++ 2005 Express" and the "Microsoft Platform SDK for Windows Server
2003 R2". I kept getting the message the "windows.h" was not found. I
finally realized that when I run from the dos box created by
"Start/Visual Studio 2005 Command Prompt", I have to add the SDK paths
to the batch file that sets up the INCLUDE, LIB and BIN variables.

Next I got an error that "dos2unix" could not be found. I guess it is
not part of the standard MSVC packages. I found the sources on the
web,

http://www.bastet.com

compiled it and added the exe to my 'C:\Program Files\GnuWin32\bin'
where I had previously also added Gnu flex and Gnu byacc from

http://sourceforge.net/project/showfiles.php?group_id=23617

Maybe in your test build you are picking these up from another path?

Then everything worked fine up to building libax0 when I told me it
could not find 'uniar' and 'doaldor.bat'. The following patch solved
that problem:

D:\aldor\aldor>svn diff
Index: NMakefile
===================================================================
--- NMakefile   (revision 14)
+++ NMakefile   (working copy)
@@ -160,11 +160,11 @@
        @cd $(MAKEDIR)\lib\libaxldem
        @$(MAKE) $(ENV) -f$(MAKEFILE)
        @echo "done building axldem lib..."
-
+
 libax0:
        @echo "building ax0 lib..."
        @cd $(MAKEDIR)\lib\libax0
-       @$(MAKE) $(ENV) -f$(MAKEFILE)
+       @$(MAKE) $(ENV)
PATH="$(PATH);$(ALDORROOT)\bin;$(ALDORROOT)\toolbin" -f$ (MAKEFILE)
        @echo "done building ax0 lib..."

 # ----------------------------------------------------
@@ -204,7 +204,7 @@
                $(GENERIC_DIR)\NMakefile

 $(ALDOR_INSTALL)\$(MACHINE):
-       @mkdir -p $(ALDOR_INSTALL)\$(MACHINE)
+       @mkdir $(ALDOR_INSTALL)\$(MACHINE)

 $(ALDOR_INSTALL)\$(MACHINE)\$(ALDOR_VERSION): $(ALDOR_INSTALL)\$(MACHINE)
        @mkdir $(ALDOR_INSTALL)\$(MACHINE)\$(ALDOR_VERSION)

D:\aldor\aldor>

------

Perhaps this has something to do with different treatment of $(ENV) in nmake?

Any with this patch I was able to complete my first build of Aldor 1.1
on Windows.

BTW, how do I run testaxl or other tests on Windows?

I will take a look a cmake in the next few days.

Thanks again.

Regards,
Bill Page.

On 9/6/07, Laurentiu Dragan <ldragan at uwo.ca> wrote:
> Hi Bill,
>
> Bill Page wrote:
> > Thanks. Please drop me a note to let me know when you find aldor/src/NMakefile.
>
> I fixed the build system for windows. Some of the NMakefiles were
> missing and some didn't work due to some file renaming.
>
> Everything should work now.
>
> I also made a cmake recipe last night which is now uploaded into the
> repository. If you install cmake you could generate makefiles for msys
> from the cmake recipe or projects for visual studio. The current
> CMakeLists.txt only builds up to libfoam. For the other libraries I did
> not implemented it yet.
>
> --
> Laurentiu
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aldor-msvc.patch
Type: text/x-patch
Size: 859 bytes
Desc: not available
URL: <http://mail.aldor.org/pipermail/aldor-l_aldor.org/attachments/20070908/30a68ff3/attachment-0002.bin>


More information about the Aldor-l mailing list