364
edits
(Change gcc45 to gcc47) |
(→TODO List: change gcc 4.5 to gcc 4.7) |
||
Line 286: | Line 286: | ||
*** Same for octave_confgure-3.7.0+ | *** Same for octave_confgure-3.7.0+ | ||
*** Over-ride the built-in octave_configure_info and use an m-file version that replaces the original MacPorts prefix with the OCTAVE_HOME environment variable set by the bundle. | *** Over-ride the built-in octave_configure_info and use an m-file version that replaces the original MacPorts prefix with the OCTAVE_HOME environment variable set by the bundle. | ||
*** The bundled mkoctfile references the gcc4.4 libraries instead of the gcc4. | *** The bundled mkoctfile references the gcc4.4 libraries instead of the gcc4.7 libraries that are actually bundled. This needs to be corrected. | ||
** With the above changes [http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002dFiles.html {{Codeline|mkoctfile helloworld.cc}}] fails with the error below. This is likely due to the {{Codeline|Octave-3.7.0+.app/Contents/Resources/bin/octave}} script over-riding the build environment variables normally set by {{Codeline|mkoctfile}}. | ** With the above changes [http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002dFiles.html {{Codeline|mkoctfile helloworld.cc}}] fails with the error below. This is likely due to the {{Codeline|Octave-3.7.0+.app/Contents/Resources/bin/octave}} script over-riding the build environment variables normally set by {{Codeline|mkoctfile}}. | ||
*** Rely on {{Codeline|mkoctfile}} to setup the oct-file build environment (i.e. don't set any of it up in the {{Codeline|.../Octave-3.7.0+.app/Contents/Resources/bin/octave}} script. | *** Rely on {{Codeline|mkoctfile}} to setup the oct-file build environment (i.e. don't set any of it up in the {{Codeline|.../Octave-3.7.0+.app/Contents/Resources/bin/octave}} script. | ||
Line 295: | Line 295: | ||
collect2: ld returned 1 exit status | collect2: ld returned 1 exit status | ||
"/Applications/Octave-3.7.0+.app/Contents/Resources/bin/g++-mp-4. | "/Applications/Octave-3.7.0+.app/Contents/Resources/bin/g++-mp-4.7" \ | ||
-c -I"/Applications/Octave-3.7.0+.app/Contents/Resources/include/curl" \ | -c -I"/Applications/Octave-3.7.0+.app/Contents/Resources/include/curl" \ | ||
-I"/Applications/Octave-3.7.0+.app/Contents/Resources/include/readline" -fPIC \ | -I"/Applications/Octave-3.7.0+.app/Contents/Resources/include/readline" -fPIC \ | ||
Line 305: | Line 305: | ||
helloworld.cc -o helloworld.o | helloworld.cc -o helloworld.o | ||
"/Applications/Octave-3.7.0+.app/Contents/Resources/bin/g++-mp-4. | "/Applications/Octave-3.7.0+.app/Contents/Resources/bin/g++-mp-4.7" -bundle -bundle_loader \ | ||
"/Applications/Octave-3.7.0+.app/Contents/Resources/bin/octave-3.7.0+" -o helloworld.oct helloworld.o \ | "/Applications/Octave-3.7.0+.app/Contents/Resources/bin/octave-3.7.0+" -o helloworld.oct helloworld.o \ | ||
-L"/Applications/Octave-3.7.0+.app/Contents/Resources/lib/octave/3.7.0+" \ | -L"/Applications/Octave-3.7.0+.app/Contents/Resources/lib/octave/3.7.0+" \ |
edits