From: John S. <ale...@cr...> - 2013-02-04 16:15:31
|
William - thanks for the note on your success with the OSX build of FreeWRL. On 2013-02-02, at 9:33 PM, William Anderst wrote: > Ah, I found out why I could not open the wrl file. I did not edit the > correct line "CString=..." to point to my wrl file. > > Is there any way I can make it so I do not have to change the name of the > file I want to open, then rebuild for every new file I want to open? This > is a minor issue I can live with, but it would be nice if it worked like > the real application in that way (I used to drag the wrl file to the > FreeWRL icon). All of the code should be there - probably not quite connected up properly. (I'm going to give you an excuse/apology - at my work, we are doing quite literally a once in 50 years move scheduled for this Friday, so getting ready for that is what my days are filled of, next week on vacation, so that's taking evenings to actually go clothes shopping. (don't ask. please. going south with people from my wife's work, so I have to look presentable) ) But, looking at the code, FWGLView.m - "fileToOpen" - it appears that it comes from the command line. You are running this in Xcode, right? You need to find the "app" that Xcode creates, and just try running that. http://meandmark.com/blog/2011/04/xcode-4-finding-the-application-you-built/ might help - on my desktop system, I have: /Users/john/Library/Developer/XCode/DerivedData/FreeWRL-fuggytrudwuzcxbkndivzdrzlhfq/Build/Products/Debug/FreeWRL.app note the funny name. These are temporary directories created by Xcode in there is a FreeWRL.app - try just copying that to the "Applications" folder - I think that will work. There is a script that is/was made - for running FreeWRL on the command line; "more /usr/bin/freewrl" gives: #!/bin/sh # run the windowed front end from here. This file is for Mac OSX only. /Applications/FreeWRL/FreeWRL.app/Contents/MacOS/FreeWRL $* Note the path - /Applications/FreeWRL, and the FreeWRL.app file. See if you have the /Applications/FreeWRL directory, if so, just move the current FreeWRL.app to one side, and copy the one shown in the above path to here. Make sense? Email back, and tell me how it's going. I'll be on/off of email as mentioned above. JohnS. |