Will it be difficult to fix?
I guess it needs to be interfaced to the regular Terminal program.
The xterm launch is not, as we all know, working here.
Checking for existence: /Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv
Executing: xterm -T 'dxfcnv' -e 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH "/Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv" ' (in /Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/.)
Process terminated with status 255 (0 minutes, 0 seconds)
Checking for existence: /Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv
Executing: xterm -T 'dxfcnv' -e 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH "/Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv" ' (in /Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/.)
Process terminated with status 1 (0 minutes, 0 seconds)
xterm -e 'read'
Checking for existence: /Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv
Executing: xterm -T 'dxfcnv' -e DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH ""e&"/Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv""e&" (in /Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/.)
Process terminated with status 1 (0 minutes, 0 seconds)
I guess what might be missing for me is that CB is not aware of any $DISPLAY.
Can I set this somewhere?
"Compiler..Settings -> Custom variables" is not doing the trick.
(And the patch did not do any difference, still xterm)
It's a preference, so if you have an old setting of xtermPlease explain?
you probably want to change it to the new "osascript..."
osascript -e 'tell app "Terminal" to do script "$SCRIPT"'
xterm -T $TITLE -e
Last login: Fri Dec 1 15:27:09 on ttyp6
Welcome to Darwin!
You have mail.
$SCRIPT
executing /etc/profile...
executing /etc/bashrc...
executing .bash_login...
mc2-p039:~ bnilsson$ $SCRIPT
mc2-p039:~ bnilsson$
osascript -e 'tell app "Terminal" to do script "$SCRIPT"'in the Environment settings and done "run" of my console app from within Code::Blocks.
[Tiger:~] bnilsson% DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH "/Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv"The only difference being that here I use /bin/tcsh and at work I use /bin/bash as shell in my user setup. After changing ny shell to /bin/bash it worked.
tcsh: DYLD_LIBRARY_PATH=.:/Users/bnilsson/lib: Command not found.
The only difference being that here I use /bin/tcsh and at work I use /bin/bash as shell in my user setup. After changing ny shell to /bin/bash it worked. Seems it is sensitive to the shell used.
setenv DYLD_LIBRARY_PATH ".:$DYLD_LIBRARY_PATH";
"/Users/bnilsson/Documents/Programming/Active/CB_projects/dxfcnv/dxfcnv"
I tried different shells in the "Environment" setting "Shell to run commands in", but there was no difference.
Is it not active?
#if defined(__APPLE__) && defined(__MACH__)
#define LIBRARY_ENVVAR "DYLD_LIBRARY_PATH"
#else
#define LIBRARY_ENVVAR "LD_LIBRARY_PATH"
#endif
wxString shell;
wxGetEnv(_T("SHELL"), &shell);
if (shell.Contains(_T("csh")))
command << _T("'") << _T("setenv " LIBRARY_ENVVAR " .:$" LIBRARY_ENVVAR " &&") << _T(" ");
else
command << _T("'") << _T("" LIBRARY_ENVVAR "=.:$" LIBRARY_ENVVAR) << _T(" ");
I will try it.
However, the arguments against /bin/tcsh are strong, so I changed to /bin/bash.
But I will try it with /bin/tcsh, it's easy to switch.
Any progress with the console Terminal debugger?
Would this (new) code work for you:Could you please tell me exactly where to put this in?