Artifacts Associated With Ticket 48a2a52296ba2add
Ticket change [9dfb745a3e] (rid 135661) by anonymous on 2013-11-20 13:44:12:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi, Since a couple of weeks, I've been working with Tcl/Tk source code. And I noticed that there are no solution files for Tcl/Tk. Ok, of course, it is possible to build it from source code in Linux using the GNU Toolchain. It it also possible to build Tcl/Tk from source using the nmake utility that comes with the Visual Studio. But it gets kind of cumbersome first setting the environment variables. Then, cd to the Tcl source directory and fill out the appropriate arguments for the nmake command. Do it once for build and once for install. Then repeat it again for Tk. Then run the wish or tclsh from command prompt and using visual studio attach to it to debug it further. By the end I would have 2 folders open, 2 command prompt terminals open and a visual studio instance running. ************************************************************ Now, with these proposed solution files, running only one instance of a visual studio, we can build, run and debug the Tcl/Tk project. A small note at the beginning: I am using Visual Studio 2010 on a 64bit Windows. And my version of Tcl/Tk is 8.5.15. Some drawbacks/shortcomings of these solution files are: 1. The paths are *hardcoded*. You have to create a directory structure of the form: c:\tcl\tcltk\build\ c:\tcl\tcltk\tcl8.5.15\ c:\tcl\tcltk\tk8.5.15\ Once the source files are extacted in their respective folders of c:\tcl\tcltk\tcl8.5.15 or c:\tcl\tcltk\tk8.5.15, then place the tcl project and solution files inside the win directory i.e. c:\tcl\tcltk\tcl8.5.15\win\ and then place the tk project file in c:\tcl\tcltk\tk8.5.15\win\ Of course, the paths can be changed later by editing the solution files, when one gets a hang of the things. A debug version of the tcl and tk files are built under c:\tcl\tcltk\build\Debug\ A release version of the tcl and tk files are built under c:\tcl\tcltk\build\Release\ 2. The solution files are dependent on their respective Tcl or Tk make files that comes with the source code. 3. Everytime one builds Tcl, one must first do a "New Build" and then do a "Build". The "New Build" command builds the tcl/tk projects in their respective directories. The "Build" command then puts them in c:\tcl\tcltk\build\ The same scheme works when you do a debug or a release. 4. Finally to run the projects, it works if you right click on the project file from within the visual studio IDE and scroll down the options to "Debugging" and there choose "Run a New Instance". For some reason, simply pressing f5 or clicking the green button doesnt work for the moment. Well, I know it is not perfect, but it works somewhat for us compared to the previous scheme. Happy to receive any feedback !
- foundin initialized to: "0.1"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "ff965ebd1c7e3ca323071ce18b71cf86532defa3"
- resolution initialized to: "None"
- severity initialized to: "Cosmetic"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "91. Tutorial"
- title initialized to: "Tcl / Tk Visual Studio Solution Files"
- type initialized to: "Patch"
Add attachment "visualstudiosolutionfiles.zip" [6aa5c80a53] (rid 135662) by anonymous on 2013-11-20 13:44:55.
Ticket change [67080075ac] (rid 135663) by anonymous on 2013-11-20 13:45:28:
- login: "anonymous"
- mimetype: "text/plain"
- priority changed to: "1 Zero"
Ticket change [4f2cb40ce4] (rid 135687) by anonymous on 2013-11-20 16:15:43:
- comment changed to:
Hi, Since a couple of weeks, I've been working with Tcl/Tk source code. And I noticed that there are no solution files for Tcl/Tk. Ok, of course, it is possible to build it from source code in Linux using the GNU Toolchain. It is also possible to build Tcl/Tk from source using the nmake utility that comes with the Visual Studio. But it gets kind of cumbersome first setting the environment variables. Then, cd to the Tcl source directory and fill out the appropriate arguments for the nmake command. Do it once for build and once for install. Then repeat it again for Tk. Then run the wish or tclsh from command prompt and using visual studio attach to it to debug it further. By the end I would have 2 folders open, 2 command prompt terminals open and a visual studio instance running. ************************************************************ Now, with these proposed solution files, running only one instance of a visual studio, we can build, run and debug the Tcl/Tk project. A small note at the beginning: I am using Visual Studio 2010 on a 64bit Windows. And my version of Tcl/Tk is 8.5.15. Some drawbacks/shortcomings of these solution files are: 1. The paths are *hardcoded*. You have to create a directory structure of the form: c:\tcl\tcltk\build\ c:\tcl\tcltk\tcl8.5.15\ c:\tcl\tcltk\tk8.5.15\ Once the source files have been extracted in their respective folders of c:\tcl\tcltk\tcl8.5.15 and c:\tcl\tcltk\tk8.5.15, ... 1. then place the tcl project and solution files in c:\tcl\tcltk\tcl8.5.15\win\ 2. and then place the tk project file in c:\tcl\tcltk\tk8.5.15\win\ Of course, the paths can be changed later by editing the solution files, when one gets a hang of the things. A debug version of the tcl and tk files are built under c:\tcl\tcltk\build\Debug\ A release version of the tcl and tk files are built under c:\tcl\tcltk\build\Release\ 2. The solution files are dependent on their respective Tcl or Tk make files that comes with the source code. 3. Everytime one builds Tcl, one must first do a "New Build" and then do a "Build". The "New Build" command builds the tcl/tk projects in their respective directories. The "Build" command then puts them in c:\tcl\tcltk\build\ The same scheme works when you do a debug or a release. 4. Finally to run the projects, it works if you right click on the project file from within the visual studio IDE and scroll down the options to "Debugging" and there choose "Run a New Instance". For some reason, simply pressing f5 or clicking the green button doesnt work for the moment. Well, I know it is not perfect, but it works somewhat for us compared to the previous scheme. Happy to receive any feedback ! A similar version of the above text is placed in a readme file zipped together with the solution files.
- login: "anonymous"
- mimetype: "text/plain"
- comment changed to:
Ticket change [c2569d36d6] (rid 135688) by anonymous on 2013-11-20 16:17:25:
- comment changed to:
Hi, Since a couple of weeks, I've been working with Tcl/Tk source code. And I noticed that there are no solution files for Tcl/Tk. Ok, of course, it is possible to build it from source code in Linux using the GNU Toolchain. It is also possible to build Tcl/Tk from source using the nmake utility that comes with the Visual Studio. But it gets kind of cumbersome first setting the environment variables. Then, cd to the Tcl source directory and fill out the appropriate arguments for the nmake command. Do it once for build and once for install. Then repeat it again for Tk. Then run the wish or tclsh from command prompt and using visual studio attach to it to debug it further. By the end I would have 2 folders open, 2 command prompt terminals open and a visual studio instance running. ************************************************************ Now, with these proposed solution files, running only one instance of a visual studio, we can build, run and debug the Tcl/Tk project. A small note at the beginning: I am using Visual Studio 2010 on a 64bit Windows. And my version of Tcl/Tk is 8.5.15. Some drawbacks/shortcomings of these solution files are: 1. The paths are *hardcoded*. You have to create a directory structure of the form: c:\tcl\tcltk\build\ c:\tcl\tcltk\tcl8.5.15\ c:\tcl\tcltk\tk8.5.15\ Once the source files (from activestate, etc) have been extracted in their respective folders of c:\tcl\tcltk\tcl8.5.15 and c:\tcl\tcltk\tk8.5.15, ... 1. then place the tcl project and solution files (from me) in c:\tcl\tcltk\tcl8.5.15\win\ 2. and then place the tk project file (from me) in c:\tcl\tcltk\tk8.5.15\win\ Of course, the paths can be changed later by editing the solution files, when one gets a hang of the things. A debug version of the tcl and tk files are built under c:\tcl\tcltk\build\Debug\ A release version of the tcl and tk files are built under c:\tcl\tcltk\build\Release\ 2. The solution files are dependent on their respective Tcl or Tk make files that comes with the source code. 3. Everytime one builds Tcl, one must first do a "New Build" and then do a "Build". The "New Build" command builds the tcl/tk projects in their respective directories. The "Build" command then puts them in c:\tcl\tcltk\build\ The same scheme works when you do a debug or a release. 4. Finally to run the projects, it works if you right click on the project file from within the visual studio IDE and scroll down the options to "Debugging" and there choose "Run a New Instance". For some reason, simply pressing f5 or clicking the green button doesnt work for the moment. Well, I know it is not perfect, but it works somewhat for us compared to the previous scheme. Happy to receive any feedback ! A similar version of the above text is placed in a readme file zipped together with the solution files.
- login: "anonymous"
- mimetype: "text/plain"
- comment changed to:
Add attachment "README.txt" [4056edc16b] (rid 135689) by anonymous on 2013-11-20 16:22:56.