rIDL command line replacement [message #76245] |
Mon, 23 May 2011 12:59  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
For those interested in my command line replacement for IDL that offers
tab completion and other similar features, I added a real build system
to it this weekend. If you were interested in rIDL before, but couldn't
build it on your system, this should be a huge improvement. I'm betting
there are still kinks in the system, but it builds on my Mac OS X and
Linux system easily. The new system should even work on Windows, but I
don't have experience there (though I would help a Windows developer get
it going if they were interested).
For details on how to get the code and build it, see the article on my site:
http://michaelgalloy.com/2011/05/23/ridl-cmake-ified.html
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|
Re: rIDL command line replacement [message #76304 is a reply to message #76245] |
Thu, 26 May 2011 09:49  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 5/26/11 10:14 AM, Gianguido Cianci wrote:
> #0 Thanks for your help and for leading me too #1 below :-)
>
> #1 Homebrew is awesome:
>
> Have installed readline 6.2.1 and pointed cmake to it. All seems fine there now.
>
> #2 Next issue: gnumake quits because it doesn't like my IDL installation?
>
> Linking C executable ridl
> ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libXm.dyli b, file is not of required architecture
> ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libMesaGL6 _2.dylib, file is not of required architecture
> ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libMesaGLU 6_2.dylib, file is not of required architecture
> ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libOSMesa6 _2.dylib, file is not of required architecture
> ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libidl.dyl ib, file is not of required architecture
> Undefined symbols:
> "_IDL_ToutPush", referenced from:
> _ridl_initnotebook in ridl_logging.c.o
> _ridl_initlog in ridl_logging.c.o
> "_IDL_Initialize", referenced from:
> _main in ridl.c.o
> "_IDL_Cleanup", referenced from:
> _ridl_exit in ridl.c.o
> _ridl_executeline in ridl.c.o
> _main in ridl.c.o
> _main in ridl.c.o
> "_IDL_UicbRegExitDone", referenced from:
> _main in ridl.c.o
> "_IDL_RuntimeExec", referenced from:
> _main in ridl.c.o
> "_IDL_UicbRegShowCompileErr", referenced from:
> _main in ridl.c.o
> "_IDL_DebugGetStackDepth", referenced from:
> _ridl_printsource in ridl.c.o
> "_IDL_UicbRegWorkingDirChange", referenced from:
> _main in ridl.c.o
> "_IDL_UicbRegPromptChange", referenced from:
> _main in ridl.c.o
> "_IDL_MessageDefineBlock", referenced from:
> _main in ridl.c.o
> "_IDL_UicbRegRlineFromKbrd", referenced from:
> _main in ridl.c.o
> "_IDL_FindNamedVariable", referenced from:
> _ridl_get_structurefields_list in ridl_completion.c.o
> _ridl_get_localvariables_list in ridl_completion.c.o
> "_IDL_UicbRegInitTextDone", referenced from:
> _main in ridl.c.o
> "_IDL_UicbRegDeathHint", referenced from:
> _main in ridl.c.o
> "_IDL_GetUserInfo", referenced from:
> _main in ridl.c.o
> _ridl_initialize_history in ridl_history.c.o
> "_IDL_SysvVersion", referenced from:
> _IDL_SysvVersion$non_lazy_ptr in ridl.c.o
> _IDL_SysvVersion$non_lazy_ptr in ridl_logging.c.o
> "_IDL_ToutPop", referenced from:
> _ridl_executeline in ridl.c.o
> _ridl_executeline in ridl.c.o
> _ridl_executeline in ridl.c.o
> "_IDL_ExitRegister", referenced from:
> _main in ridl.c.o
> "_IDL_ExecuteStr", referenced from:
> _ridl_printsource in ridl.c.o
> _ridl_executestr in ridl.c.o
> _ridl_launcheditor in ridl.c.o
> _ridl_getevents in ridl.c.o
> _ridl_executeline in ridl.c.o
> _main in ridl.c.o
> _main in ridl.c.o
> _main in ridl.c.o
> _ridl_get_structurefields_list in ridl_completion.c.o
> _ridl_remove_structurefields_list in ridl_completion.c.o
> _ridl_get_localvariables_list in ridl_completion.c.o
> _ridl_remove_localvariables_list in ridl_completion.c.o
> _ridl_notebookgraphic in ridl_logging.c.o
> _ridl_magic_help in ridl_magic.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> _ridl_setpreference in ridl_preferences.c.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> gnumake[2]: *** [src/ridl] Error 1
> gnumake[1]: *** [src/CMakeFiles/ridl.dir/all] Error 2
> gnumake: *** [all] Error 2
>
I will follow up on this one via email.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|
Re: rIDL command line replacement [message #76307 is a reply to message #76245] |
Thu, 26 May 2011 09:14  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
#0 Thanks for your help and for leading me too #1 below :-)
#1 Homebrew is awesome:
Have installed readline 6.2.1 and pointed cmake to it. All seems fine there now.
#2 Next issue: gnumake quits because it doesn't like my IDL installation?
Linking C executable ridl
ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libXm.dyli b, file is not of required architecture
ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libMesaGL6 _2.dylib, file is not of required architecture
ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libMesaGLU 6_2.dylib, file is not of required architecture
ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libOSMesa6 _2.dylib, file is not of required architecture
ld: warning in /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libidl.dyl ib, file is not of required architecture
Undefined symbols:
"_IDL_ToutPush", referenced from:
_ridl_initnotebook in ridl_logging.c.o
_ridl_initlog in ridl_logging.c.o
"_IDL_Initialize", referenced from:
_main in ridl.c.o
"_IDL_Cleanup", referenced from:
_ridl_exit in ridl.c.o
_ridl_executeline in ridl.c.o
_main in ridl.c.o
_main in ridl.c.o
"_IDL_UicbRegExitDone", referenced from:
_main in ridl.c.o
"_IDL_RuntimeExec", referenced from:
_main in ridl.c.o
"_IDL_UicbRegShowCompileErr", referenced from:
_main in ridl.c.o
"_IDL_DebugGetStackDepth", referenced from:
_ridl_printsource in ridl.c.o
"_IDL_UicbRegWorkingDirChange", referenced from:
_main in ridl.c.o
"_IDL_UicbRegPromptChange", referenced from:
_main in ridl.c.o
"_IDL_MessageDefineBlock", referenced from:
_main in ridl.c.o
"_IDL_UicbRegRlineFromKbrd", referenced from:
_main in ridl.c.o
"_IDL_FindNamedVariable", referenced from:
_ridl_get_structurefields_list in ridl_completion.c.o
_ridl_get_localvariables_list in ridl_completion.c.o
"_IDL_UicbRegInitTextDone", referenced from:
_main in ridl.c.o
"_IDL_UicbRegDeathHint", referenced from:
_main in ridl.c.o
"_IDL_GetUserInfo", referenced from:
_main in ridl.c.o
_ridl_initialize_history in ridl_history.c.o
"_IDL_SysvVersion", referenced from:
_IDL_SysvVersion$non_lazy_ptr in ridl.c.o
_IDL_SysvVersion$non_lazy_ptr in ridl_logging.c.o
"_IDL_ToutPop", referenced from:
_ridl_executeline in ridl.c.o
_ridl_executeline in ridl.c.o
_ridl_executeline in ridl.c.o
"_IDL_ExitRegister", referenced from:
_main in ridl.c.o
"_IDL_ExecuteStr", referenced from:
_ridl_printsource in ridl.c.o
_ridl_executestr in ridl.c.o
_ridl_launcheditor in ridl.c.o
_ridl_getevents in ridl.c.o
_ridl_executeline in ridl.c.o
_main in ridl.c.o
_main in ridl.c.o
_main in ridl.c.o
_ridl_get_structurefields_list in ridl_completion.c.o
_ridl_remove_structurefields_list in ridl_completion.c.o
_ridl_get_localvariables_list in ridl_completion.c.o
_ridl_remove_localvariables_list in ridl_completion.c.o
_ridl_notebookgraphic in ridl_logging.c.o
_ridl_magic_help in ridl_magic.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
_ridl_setpreference in ridl_preferences.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gnumake[2]: *** [src/ridl] Error 1
gnumake[1]: *** [src/CMakeFiles/ridl.dir/all] Error 2
gnumake: *** [all] Error 2
|
|
|
Re: rIDL command line replacement [message #76321 is a reply to message #76245] |
Wed, 25 May 2011 13:47  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 5/25/11 12:42 PM, Gianguido Cianci wrote:
> That's like asking if I can ask a question.... how overcomplicated of me :-(
>
> Here we go. I am on Mac OS X 10.5.8 and run :
>
> sudo cmake -DReadline_INCLUDE_DIR=/sw/include/readline \
> -DReadline_LIBRARY=/sw/lib/libreadline.5.0.dylib
>
> and get:
>
> -- IDL library: /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libidl.dyl ib
> -- IDL include: /Applications/itt/idl/idl80/external/include
> -- Found GNU Readline: /sw/lib/libreadline.5.0.dylib
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/cgguido/ridl
>
>
> So far so good. Then I run:
>
> sudo gnumake
>
> and get:
>
> Scanning dependencies of target ridl
> [ 14%] Building C object src/CMakeFiles/ridl.dir/ridl.c.o
> /Users/cgguido/trunk/src/ridl.c: In function 'ridl_printfunmap':
> /Users/cgguido/trunk/src/ridl.c:393: warning: initialization makes pointer from integer without a cast
> /Users/cgguido/trunk/src/ridl.c: In function 'main':
> /Users/cgguido/trunk/src/ridl.c:835: error: 'rl_event_hook' undeclared (first use in this function)
> /Users/cgguido/trunk/src/ridl.c:835: error: (Each undeclared identifier is reported only once
> /Users/cgguido/trunk/src/ridl.c:835: error: for each function it appears in.)
> gnumake[2]: *** [src/CMakeFiles/ridl.dir/ridl.c.o] Error 1
> gnumake[1]: *** [src/CMakeFiles/ridl.dir/all] Error 2
> gnumake: *** [all] Error 2
Yes, your Readline version is too old. I'm still researching which
version you really need; 6.1 will work, probably 6.0 also.
I'm trying to figure out a way to test the Readline version when
configuring so that you will get a more reasonable error message.
By the way, do "svn up" regularly because I've been making a lot of
updates as people give feedback on their particular systems.
Also, you shouldn't have to do a "sudo" until you do your "make install".
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|
Re: rIDL command line replacement [message #76325 is a reply to message #76245] |
Wed, 25 May 2011 11:42  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
That's like asking if I can ask a question.... how overcomplicated of me :-(
Here we go. I am on Mac OS X 10.5.8 and run :
sudo cmake -DReadline_INCLUDE_DIR=/sw/include/readline \
-DReadline_LIBRARY=/sw/lib/libreadline.5.0.dylib
and get:
-- IDL library: /Applications/itt/idl/idl80/bin/bin.darwin.x86_64/libidl.dyl ib
-- IDL include: /Applications/itt/idl/idl80/external/include
-- Found GNU Readline: /sw/lib/libreadline.5.0.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/cgguido/ridl
So far so good. Then I run:
sudo gnumake
and get:
Scanning dependencies of target ridl
[ 14%] Building C object src/CMakeFiles/ridl.dir/ridl.c.o
/Users/cgguido/trunk/src/ridl.c: In function 'ridl_printfunmap':
/Users/cgguido/trunk/src/ridl.c:393: warning: initialization makes pointer from integer without a cast
/Users/cgguido/trunk/src/ridl.c: In function 'main':
/Users/cgguido/trunk/src/ridl.c:835: error: 'rl_event_hook' undeclared (first use in this function)
/Users/cgguido/trunk/src/ridl.c:835: error: (Each undeclared identifier is reported only once
/Users/cgguido/trunk/src/ridl.c:835: error: for each function it appears in.)
gnumake[2]: *** [src/CMakeFiles/ridl.dir/ridl.c.o] Error 1
gnumake[1]: *** [src/CMakeFiles/ridl.dir/all] Error 2
gnumake: *** [all] Error 2
Any ideas?
Many thanks,
Gianguido
|
|
|
|