The steps to compile latest sources from git on windows.

General help: new users, installing the Ecere SDK, using the IDE to compile and run applications.
nowind_lee
Posts: 29
Joined: Tue Jul 06, 2010 4:11 am

The steps to compile latest sources from git on windows.

Post by nowind_lee »

Finally, I compile latest sources from git successful. This is my steps, hope useful for others.

1. Install MinGW

Download the latest file from http://sourceforge.net/projects/mingw, the file is "mingw-get-inst-20110802.exe", install it. It will ask which files to download, check them all(last "mingw develop toolkit" is optional). It will spend a while to download them and install them automatically.

My target dir is c:\MinGW

2. Clone sources from github:

Code: Select all

git clone git://github.com/ecere/sdk.git

My target dir is c:\ecere_sdk_from_git

Or you can download the prepackaged zip file from https://github.com/ecere/sdk. (there is a "Downloads" button on the top right.

3. Download new dependences

See this post: http://www.ecere.com/forums/viewtopic.php?f=2&t=176 , download the 3 files about "libintl", and extract them into "C:\MinGW"

4. Download upx

Download from http://upx.sourceforge.net/, make sure the "upx.exe" in path.

5. Configure the path. Mine is:
C:\MinGW\bin;C:\upx307w
6. Finally, compile the sources:

Code: Select all

cd C:\ecere_sdk_from_git
mingw32-make
It will prints some information in the console, like:
C:\ecere_sdk_from_git>mingw32-make
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building dependencies...
Building FreeType...
Building libjpeg...
Building libpng...
Building libungif...
Building zlib...
Building 2nd stage ecere...
Building eAR command line tool...
Building Vanilla Ecere...
Building ear...
Building self-extract tool...
Building eAR command line tool...
Building 2nd stage compiler
Building 2nd stage libec...
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:1402:28: warning: incompatible
expression yy_ec[((unsigned int)(unsigned char)*yy_cp)] (int); expected byte
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:1412:13: warning: incompatible
expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:2570:27: warning: incompatible
expression (*yy_cp ? yy_ec[((unsigned int)(unsigned char)*yy_cp)] : (unsigned c
har)1) (int); expected byte
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:2580:12: warning: incompatible
expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:2615:11: warning: incompatible
expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:427:26: warning: incompatible
expression c (int); expected char
C:\ecere_sdk_from_git\compiler\libec\src\lexer.ec:435:29: warning: incompatible
expression c (int); expected char
C:\ecere_sdk_from_git\compiler\libec\obj\release.win32\ec.main.ec:571:1: warning
: Redefinition of sourceFileStack (defining as char[10][MAX_LOCATION], already d
efined as char[MAX_INCLUDE_DEPTH][MAX_LOCATION])
Building 2nd stage ecp...
Building 2nd stage ecc...
Building 2nd stage ecs...
Building eC Core Runtime...
Enabling 2nd stage binaries...
Building IDE...
Building epj2make...
Building Documentor...
Building EDA...
Building Ecere Data Access layer...
Building EDASQLite driver...
The Ecere SDK is fully built.
There are warnings, but no problem. It will take you 10 minutes or more.

7. Run

Goto "C:\ecere_sdk_from_git\obj\win32\bin", run the "ide.exe", you will see an IDE application start

Here is a screenshot, you can see it has windows-xp-style borders.

Image
Last edited by nowind_lee on Sun Sep 11, 2011 12:30 am, edited 1 time in total.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: The steps to compile latest sources from git on windows.

Post by jerome »

nowind_lee,

I don't think you need the include or lib in your path. This should be fine:

C:\MinGW\bin;C:\upx307w

Could you try starting an elevated command prompt (Run as Administrator) and doing a 'mingw32-make install' to install Ecere into C:\Program Files ? Then this could be proper instructions :D

Ah you'll still need to setup the Global Settings's Compiler Paths in the IDE as well.

(We're hoping to save all this trouble by putting an up to date installer in a near future!)

Ah also, which version of GCC does the latest MinGW install?
There are problems, especially with the debugger, with the latest GCC 4.5.x versions, that's why I run GCC 4.4.0 (That's the version I plan to include in our new installer).
nowind_lee
Posts: 29
Joined: Tue Jul 06, 2010 4:11 am

Re: The steps to compile latest sources from git on windows.

Post by nowind_lee »

1. gcc version
C:\ecere_sdk_from_git>gcc --version
gcc (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2. install
C:\ecere_sdk_from_git>mingw32-make install
mingw32-make: *** [prepinstall] Error 1
This command never successful for me. I'm in windows, and current user is in administrator group.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: The steps to compile latest sources from git on windows.

Post by jerome »

nowind_lee,

1. GCC

You will suffer from those Debugger issues.
You might want to select GCC 4.4.0 in your MinGW installer.

2. Install

Being in the administrator group is not enough.

You need en elevated command prompt, e.g. by typing cmd into the Start menu box, then the right clicking cmd.exe, and selecting 'Run as Administrator'.

It's quite an annoyance to have to do this, but that's Windows =)
nowind_lee
Posts: 29
Joined: Tue Jul 06, 2010 4:11 am

Re: The steps to compile latest sources from git on windows.

Post by nowind_lee »

1.GCC

I don't find I can select GCC 4.4.0 in MinGW installer. There is no versions be to selected.

Image

2. Install

There is no "Run as Administrator" for windows XP. Is it only available in windows 7?
Image
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: The steps to compile latest sources from git on windows.

Post by jerome »

1. You could manually download and extract to your MinGW folder GCC 4.4.0 from here.
You can chose the full package or just the core package, or the core and the C++ package. You might need the dlls as well (core, C++).

2. Sorry, I forgot you're using Windows XP! The elevated command prompt is only for Windows Vista or 7.
Did you close all Ecere IDE / Applications before trying 'make install' ?
You might need to manually create a "Ecere SDK" folder under "C:\Program Files" (on a 32 bit system), or under "C:\Program Files (x86)" (on a 64 bit system) before make install is successful.
nowind_lee
Posts: 29
Joined: Tue Jul 06, 2010 4:11 am

Re: The steps to compile latest sources from git on windows.

Post by nowind_lee »

I just downloaded the full package of gcc 4.4.0, overrode the mingw original one, and remade, and now everything is OK.

And I run

Code: Select all

mingw32-make clean
mingw32-make
mingw32-make install
It will build them into "C:\program files\Ecere SDK" dir (No need to create one manually)

And you said we just need to run "mingw32-make install", but it seems we have to run "mingw32-make" first, or there may be some errors(I forget the content).

When ecere installed into "C:\program files\Ecere SDK", we can run "C:\Program Files\Ecere SDK\bin\ide.exe". If error happens when starting debug, please check the configuration of:

Code: Select all

File -> Global Settings -> Compilers -> Directories -> Library Files and Executable Files
We need to correct the paths to new ones.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: The steps to compile latest sources from git on windows.

Post by jerome »

nowind_lee, thanks for the update!

Yes, you need to run 'make' before 'make install' (it doesn't automatically call make all).

You're right, the 'Ecere SDK' directory seems to be created automatically.

Cheers
naji
Posts: 3
Joined: Tue Mar 30, 2010 8:31 pm

Re: The steps to compile latest sources from git on windows.

Post by naji »

Hi everyone.

You can get the latest MinGW Automated Installer from:

http://sourceforge.net/projects/mingw/f ... -get-inst/

I noticed that when installing MinGW with MinGW-Get Setup, that you need to select.

(o) Use pre-packaged repository catalogues

And not select:

( ) download latest respository catalogues

Otherwise it seems to install the latest possibly unstable version of MinGW which doesn't seem to build the Ecere SDK from the sources.

The MinGW-Get Setup seems to download from the internet everytime you install, so you might want to zip the C:\MinGW folder to a MInGW.zip to put on a disc so you can just unzip it if you want to install it on a computer without an internet connection.
Attachments
mingw-install-select-this.png
jonaspm
Posts: 49
Joined: Thu Apr 11, 2013 11:04 pm
Location: Mexico
Contact:

Re: The steps to compile latest sources from git on windows.

Post by jonaspm »

i successfully installed latest Ecere SDK version with commands:

Code: Select all

mingw32-make
mingw32-make install
I couldn't install before building
Post Reply