Ecere SDK/eC Forums http://ecere.org/community/ Print view |
|
The steps to compile latest sources from git on windows. http://ecere.org/community/viewtopic.php?f=2&t=188 |
Page 1 of 2 |
Author: | nowind_lee [ Sun Sep 11, 2011 12:19 am ] |
Post subject: | The steps to compile latest sources from git on windows. |
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
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: 6. Finally, compile the sources: Code: Select all
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. |
Author: | jerome [ Sun Sep 11, 2011 12:27 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
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 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). |
Author: | nowind_lee [ Sun Sep 11, 2011 12:37 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
1. gcc version 2. install This command never successful for me. I'm in windows, and current user is in administrator group. |
Author: | jerome [ Sun Sep 11, 2011 12:58 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
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 =) |
Author: | nowind_lee [ Sun Sep 11, 2011 1:36 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
1.GCC I don't find I can select GCC 4.4.0 in MinGW installer. There is no versions be to selected. 2. Install There is no "Run as Administrator" for windows XP. Is it only available in windows 7? |
Author: | jerome [ Sun Sep 11, 2011 2:02 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
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. |
Author: | nowind_lee [ Sun Sep 11, 2011 3:20 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
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
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
|
Author: | jerome [ Sun Sep 11, 2011 9:56 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
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 |
Author: | naji [ Fri Oct 07, 2011 3:30 am ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
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. |
Author: | jonaspm [ Mon Jun 03, 2013 7:30 pm ] |
Post subject: | Re: The steps to compile latest sources from git on windows. |
i successfully installed latest Ecere SDK version with commands: Code: Select all
|
All times are UTC-05:00 | Page 1 of 2 |
Powered by phpBB® Forum Software © phpBB Limited |