build rt-gui demo in win32

19 views
Skip to first unread message

Jesse Stone

unread,
Aug 19, 2014, 2:50:12 PM8/19/14
to rt-threa...@googlegroups.com
1. install vs2008
2. install Python27
3. install scons-2.3.2-setup

version is important
4. download rt-thread version is -> update stm32f107 ethernet driver: add more debug cmd. 2014/5/16
5. download RTGUI version is -> animation: try to cope with dc buggs 2014/5/8
6. download http://msinttypes.googlecode.com/files/msinttypes-r26.zip

7. edit C:\RTGUI\SConstruct
#if os.getenv('RTT_ROOT'):
#    RTT_ROOT = os.getenv('RTT_ROOT')
#else:
#    print "error! Please set the environment var 'RTT_ROOT'"
#    sys.exit(255)
RTT_ROOT = r'c:\rt-thread'

8. edit C:\RTGUI\rtconfig.py
#CROSS_TOOL can be 'msvc', 'gcc', 'mingw' 'clang-analyze'
#if os.getenv('RTT_CC'):
#    CROSS_TOOL = os.getenv('RTT_CC')
#else:
#    CROSS_TOOL='clang-analyze'
CROSS_TOOL = 'msvc'

9. edit stdint.h of msinttypes-r26.zip
#ifdef __cplusplus
extern "C" {
#endif
//#  include <wchar.h>            //mark here
#ifdef __cplusplus
}
#endif

10. copy inttypes.h, stdint.h to C:\Program Files\Microsoft Visual Studio 9.0\VC\include

11. run cmd to go console mode

12. run -> C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat

13. run -> set path=%PATH%;C:\Python27;C:\Python27\Scripts

14. go to C:\RTGUI run scons

15. copy C:\rt-thread\bsp\simulator\SDL\lib\x86\SDL.dll to C:\RTGUI\executables

16. run C:\RTGUI\executables\demo.exe

finish~~~~




Grissiom

unread,
Aug 19, 2014, 9:28:14 PM8/19/14
to rt-threa...@googlegroups.com
Hi,

Great to see you here.

On Wed, Aug 20, 2014 at 2:50 AM, Jesse Stone <fata...@gmail.com> wrote:
7. edit C:\RTGUI\SConstruct
#if os.getenv('RTT_ROOT'):
#    RTT_ROOT = os.getenv('RTT_ROOT')
#else:
#    print "error! Please set the environment var 'RTT_ROOT'"
#    sys.exit(255)
RTT_ROOT = r'c:\rt-thread'

8. edit C:\RTGUI\rtconfig.py
#CROSS_TOOL can be 'msvc', 'gcc', 'mingw' 'clang-analyze'
#if os.getenv('RTT_CC'):
#    CROSS_TOOL = os.getenv('RTT_CC')
#else:
#    CROSS_TOOL='clang-analyze'
CROSS_TOOL = 'msvc'


Instead of editing the scripts, you may set the environment variable in your profile or the `set` command in console.

--
Cheers,
Grissiom
Reply all
Reply to author
Forward
0 new messages