I'm running Apprentice 9.1.124 under Windows XP and am unable to get console output from embedded printf() statements in a VEX SOP. I've searched through the vcc command line options to no avail. The console is able to receive commands, for example -E causes a code dump.
I been unable to find a solution in the Help file or forum archives, so any help would be appreciated.
No printf() Output from VEX SOP
11487 7 1- davidwick
- Member
- 17 posts
- Joined: Feb. 2008
- Offline
- davidwick
- Member
- 17 posts
- Joined: Feb. 2008
- Offline
- jesta
- Member
- 311 posts
- Joined: July 2005
- Offline
- davidwick
- Member
- 17 posts
- Joined: Feb. 2008
- Offline
Thanks for the reply.
I'm not sure whether I'm going down the right track here. This is new territory to me and I'm assuming that you're referring to CShell.
Upon launching CShell from the Command Line Tools prompt, I'm being asked for environment variables. According to the Readme file in the Houdini root directory, these should have been set up automatically. I've tried unsuccessfully to source the setup script.
Another beginner in need of guidance…
I'm not sure whether I'm going down the right track here. This is new territory to me and I'm assuming that you're referring to CShell.
Upon launching CShell from the Command Line Tools prompt, I'm being asked for environment variables. According to the Readme file in the Houdini root directory, these should have been set up automatically. I've tried unsuccessfully to source the setup script.
Another beginner in need of guidance…
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
davidwick
Thanks for the reply.
I'm not sure whether I'm going down the right track here. This is new territory to me and I'm assuming that you're referring to CShell.
Upon launching CShell from the Command Line Tools prompt, I'm being asked for environment variables. According to the Readme file in the Houdini root directory, these should have been set up automatically. I've tried unsuccessfully to source the setup script.
Another beginner in need of guidance…
Assuming you have a default installation of Houdini on WinXP, if you open Command Line Tools from Houdini's Start Menu (Start -> Applications -> Side Effects -> Houdini9.1.xxx -> Command Line Tools), you are ready to work.
Type: houdini - to run the program, mplay, gplay, iconvert any thing you need.
All variables are already set for you. Now, as I understand you run csh previously which is not necessary. In fact csh apparently has a different set of environmental variables since it ignores my personal settings saved in $HOME for example.
The problem is that command line has nothing to do with printf() on Windows, since Windows cmd is not a terminal and Houdini doesn't use it for messaging. It uses Houdini Console which should pop up any time you use printf()
t
- davidwick
- Member
- 17 posts
- Joined: Feb. 2008
- Offline
SYmekThanks for helping to clarify this for me.
The problem is that command line has nothing to do with printf() on Windows, since Windows cmd is not a terminal and Houdini doesn't use it for messaging. It uses Houdini Console which should pop up any time you use printf()
Here's an example of what's happening:
I create a Point Map node and in the Type Properties > Code folder add a printf() statement so that I have
int trial = 0;
printf(“trial = %d”, trial);
When I hit Test Compile, a “Compile was successful” message appears but the console doesn't.
If I e.g. enter -h into the vcc command line, the console appears listing the command line usage options. printf() is still ignored if I now test compile with the console open.
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
- davidwick
- Member
- 17 posts
- Joined: Feb. 2008
- Offline
-
- Quick Links