TOPIC: Building Suneido
#624
Building Suneido 3 Years, 6 Months ago
Hi all,

This my first post and I hope the answer to my question isn't completely obvious. I have been trying to build the Suneido IDE. Not being a C++ programmer, I expected a challenge, but now am stuck. Here is what I have done.

1. Downloaded and installed MS Visual Studio 2005 C++ Express Edition.
2. Downloaded and installed GNU Make.
3. Opened a command line in the \Suneido\source folder.
4. Run vc7vars.bat. (I note there is no vc8var.bat so I guess this is the one to use.)
5. Run vc8_release.bat.
6. On the command line, entered:

make -f makefile.vc8

This starts the build process, but this message appears many times:

c:\suneido\source\win.h(31) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory.

After doing a search on my system the only windows.h I can find is in one of my Borland Delphi folders. I assume that is not the right one but try putting it in the Suneido source folder anyway to see if that helps.

(A message about "objbase.h" missing also appears.)

I am sure I have missed something, or my lack of C++ knowledge is the problem, but is there any suggestion on how to move forward?

~~~~~

By the way even though I have only been evaluating it for one week and really only scratched the surface, it looks most impressive. Congratulations.

(Edited to try and get the backslashes to appear on any paths in the message, but you can guess whey they should be.)

Post edited by: smpcs, at: 2007/02/03 01:29
 
 
Scotty
 
#627
Re:Building Suneido 3 Years, 6 Months ago
Hi, I think you have to install "Windows® Server 2003 R2 Platform SDK" that is a bunch of include file and libs for windows programming from MS... Despite its name it works for Windows XP SP2, Windows XP x64 Pro Edition, and Windows 2000 too. ;)

Post edited by: Mauro, at: 2007/02/03 13:02
 
 
Mauro
 
#631
Re:Building Suneido 3 Years, 6 Months ago
Welcome to Suneido!

Mauro is right, you need the SDK also. I will add this to building.txt

The build process has been cleaned up in the new release candidate so you may want to work from that copy. vc7vars.bat is no longer needed - vc8_release.bat handles it. The building.txt has been updated.
 
 
andrew
 
#642
Re:Building Suneido 3 Years, 6 Months ago
Hi,

I will get the SDK and try again.

~~~

As a relatively long time Pascal developer, (started with Turbo Pascal 5.0 around 1989, now Object Pascal in Delphi) I came across Suneido almost by chance - a one line description in a UK based magazine that had it on their cover CD.

Anyway I am intrigued and so have decided to do a small(ish) project on it to see how it shapes up. The integration of HTML, TCP/IP client server and an object based language in a small code based shows that less really can be more.

Thanks for the welcome and a big thank you to Andrew and all the other contributors for such an exciting project.
 
 
Scotty
 
#643
Re:Building Suneido 3 Years, 6 Months ago
It would be nice to know what a Delphi programmer thinks of the Suneido syntax.
Personally, I think it's very nice and comfortable, but I'm a C/C++ programmer from a long time, and I have programmed in Java too (besides many scripting languages), so maybe I'm a little partial.
 
 
Mauro
 
#644
Re:Building Suneido 3 Years, 6 Months ago
I will let you know more in a few weeks. But first impressions are:

a. The syntax looks clean and will require less typing than Pascal/Delphi.

b. My mind is still getting used to not declaring and typing all variables.

c. Most of my code uses classes and the new class/object model looks initially confusing, but I haven't really done enough work to judge this.

d. I expect any code I produce is going to look "Object Pascal like" in structure and I am probably not going to take advantage of the different ways of solving problems that can be done in a dynamic scripting language. (At least not until I get used to the different way of thinking.)

Lastly, not a syntax issue, but the way libraries are organised and stored in a table is requiring a few mental leaps.

Post edited by: smpcs, at: 2007/02/05 02:29
 
 
Scotty
 
#647
Re:Building Suneido 3 Years, 6 Months ago
I have often thought that it would be good to have something in the Users Manual introduction that summarized the main differences between Suneido and other languages / IDE / databases. The problem is that I know Suneido so well that it is hard for me to know what to put in it! Maybe we could start something on the Wiki.
 
 
andrew
 
#665
Re:Building Suneido 3 Years, 6 Months ago
If Suneido works out for the type of applications I write, I would be interested in helping put together some form of "Suneido for Delphi Developers" comparison. But that is somewhere down the track.

At the moment, I have started keeping a list of tips and gotcha's that surprised, weren't obvious, or required a different way of thinking while working with Suneido.
 
 
Scotty
 
#667
Re:Building Suneido 3 Years, 6 Months ago
Sounds good. Would you consider keeping that list on the Suneido Wiki? It doesn't have to be fancy - rough notes are fine. That way even if you decide Suneido is not right for you and move on, others can benefit from your experience.
 
 
andrew
 
#668
Re:Building Suneido 3 Years, 6 Months ago
I will think about that and let you know.
 
 
Scotty
 
#788
Re:Building Suneido 3 Years, 5 Months ago
Back to the original topic of this thread, I have finally got round to successfully building the release version of the Suneido executable.

Once I got the SDK the only little problem was that I had to rename the Garbage Collector library file to "gc_vc8_release.lib" for the Link phase to work.

I did get a few warnings though during the compile in the callback source, for example the following:

callback.cpp(57) : warning C4309: 'initializing' : truncation of constant value


I assume it doesn't matter, but just wondered if it could be a potential problem with the set up of my copy of the Windows SDK and/or Visual C++.

Post edited by: smpcs, at: 2007/03/09 07:43
 
 
Scotty
 
#789
Re:Building Suneido 3 Years, 5 Months ago
I get those warnings too (only on VC8). I should "fix" them.

As far as I know, the warnings do not indicate a real problem.

Glad to hear you got it building ok.
 
 
andrew
 
#794
Re:Building Suneido 3 Years, 5 Months ago
OK, that is good to know.

Getting it to build was very satisfying. Even though I don't yet know much C++ just knowing that I can build it if I have to is very reassuring to know.
 
 
Scotty