<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I finally got the compilation to work. I'm not sure what was wrong
the first time I tried it.<br>
<br>
If anyone wants to try compiling on Windows 7 64-bit, here is the
procedure I used:<br>
- clone the git repository of ECL into any directory<br>
- run the "Visual Studio x64 Win64 Command Prompt (2010)" (you
need "Visual Studio 2010" with MSVC++ x64 compiler installed)<br>
- move to the directory where you cloned ECL and into the "msvc"
sebdirectory<br>
- edit the "Makefile" in line 21 and change it from "#ECL_WIN64
= " to "ECL_WIN64 = 1", then save the Makefile<br>
- run "nmake" from the same directory and wait for the
compilation to finish<br>
- run "nmake install", this will install ECL to the
"msvc\package" subdirectory<br>
- run "ECL" form "msvc\package" and install the compiler by
entering "(ext:install-c-compiler)" into the REPL<br>
- compile your lisp file(E.G.: hello.lisp) to an .obj file by
entering "(compile-file "path_to_file/hello.lisp" :system-p t)" into
the REPL<br>
- build your program by entering "(c:build-program
"your_program_name" :lisp-files '("path_to_file/hello.obj"))" into
the REPL<br>
- you will need ecl.dll and any other dependencies in the
directory where you run your compiled program or in the "PATH"<br>
<br>
I know that the procedure is explained in the ECL manual, but I was
so happy that I got it to work that I had to share it with you guys.<br>
<br>
Cheers,<br>
Matic<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 22.7.2013 0:32, Matic Kukovec wrote:<br>
</div>
<blockquote cite="mid:51EC6197.5090301@pametnidom.si" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Thanks for the information.<br>
<br>
About point 1.:<br>
Did you build ECL yourself?<br>
yes<br>
<br>
Which compiler did you use?<br>
MSVC 2010 x64, I ran "nmake" from the "Visual Studio x64
Win64 Command Prompt (2010)"<br>
<br>
Which flags did you use for building ECL? Did you use "nmake
ECL_WIN64=1"?<br>
Uncommented the "ECL_WIN64=1" flag in the MakeFile, then
ran "nmake"<br>
<br>
How did you install ECL?<br>
Did not install it, just ran the ecl2.exe after the
compilation finished.<br>
Also tried running "nmake install" then running the
ecl.exe from the package directory, still got the same error.<br>
<br>
Is the same compiler used for building ECL and for compiling this
code?<br>
I do not know how to select the compiler, I only ran
"(ext:install-c-compiler)" in the REPL and it automatically
installed the compiler<br>
and printed the message: ;;; Loading
#P"C:/Users/Matic/Desktop/LISP/ECL_64/ecl/msvc/package/cmp.fas"<br>
If I do not run the "(ext:install-c-compiler)", then it
only compiles to a .fas file.<br>
How do you select the appropriate c compiler? <br>
<br>
P.S.: I used the exact same procedure on a 32-bit Windows XP with
the MSVC 2010 x86 compiler and it worked like a charm.<br>
<br>
Any advice would be greatly appreciated.<br>
<br>
Matic<br>
<br>
<br>
<div class="moz-cite-prefix">On 21.7.2013 22:17, Juan Jose
Garcia-Ripoll wrote:<br>
</div>
<blockquote
cite="mid:CANejTzrn-CS6xEqpveGqdP2AhvNtsDk=PaPg7SWXJTyfZ9u1jQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">I am forwarding your email to the
mailing list. I do not answer private emails nor solve
individual problems. If you have some doubt about ECL, the
mailing list is the place for asking.</div>
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote">On Sun, Jul 21, 2013 at 12:14 PM,
Matic Kukovec <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:matic.kukovec@pametnidom.si"
target="_blank">matic.kukovec@pametnidom.si</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">1. How
do i compile a program on a Windows 7 64-bit system to
native code?<br>
I tried this procedure: - installed the c compiler
with "(ext:install-c-compiler)", i am using the MSVC++
2010 compiler<br>
- created
hello.lisp file same as in the "1.6 Compiler examples"
of the manual<br>
- ran
(compile-file "hello.lisp" :system-p t)<br>
I get this message:<br>
> (compile-file
"C:/Users/Matic/Desktop/LISP/ECL_Testiranje/hello.lisp")<br>
;;;<br>
;;; Compiling
C:/Users/Matic/Desktop/LISP/ECL_Testiranje/hello.lisp.;;;
OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0<br>
;;;<br>
;;; End of Pass
1.hello.c<br>
.\ecl/object.h(826)
: error C2632: 'long' followed by 'long' is illegal<br>
.\ecl/object.h(827)
: error C2632: 'long' followed by 'long' is illegal<br>
</blockquote>
<div><br>
</div>
<div>There is not enough information here:</div>
<div><br>
</div>
<div> - Did you build ECL yourself?</div>
<div>- Which compiler did you use?</div>
<div>- Which flags did you use for building ECL? Did you
use "nmake ECL_WIN64=1"?</div>
<div>- How did you install ECL?</div>
<div>- Is the same compiler used for building ECL and for
compiling this code?</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
2. How do you run a LTk application properly?</blockquote>
<div><br>
</div>
<div>This is not the right place to ask this question.</div>
<div><br>
</div>
<div>Juanjo</div>
</div>
<div><br>
</div>
-- <br>
Instituto de Física Fundamental, CSIC<br>
c/ Serrano, 113b, Madrid 28006 (Spain) <br>
<a moz-do-not-send="true"
href="http://juanjose.garciaripoll.googlepages.com"
target="_blank">http://juanjose.garciaripoll.googlepages.com</a>
</div>
</div>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>