|
From: Mikhail K. <mko...@gm...> - 2012-12-26 18:13:59
|
Hi
i am trying add wxt terminal support for gnuplot 4.6 in Slackware 14, as
gnuplot 4.6.0 package included does not support wxt and wxWidgets libs
are not included either.
I compiled wxPython-2.8.12.1. Now i can successfully compile and run
gnuplot 4.4.4 with wxt terminal.
but for gnuplot 4.6 (i tried both 4.6.0 and 4.6.1) compilation of wxt
teminal is not enabled. probably a relevant part from "config.log" file
goes below, and there are many errors like this
configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp >&5
./configure: line XXXXX: -c++: command not found
Am i doing anything wrong? GCC is 4.7.1.
thank you
Mikhail
configure:12063: -c++ -c -g -O2 -I/usr/include conftest.cpp >&5
./configure: line 2167: -c++: command not found
configure:12063: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gnuplot"
| #define PACKAGE_TARNAME "gnuplot"
| #define PACKAGE_VERSION "4.6.1"
| #define PACKAGE_STRING "gnuplot 4.6.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "gnuplot"
| #define VERSION "4.6.1"
| #define PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_STRINGIZE 1
| #define X11 1
| #define HAVE_LIBM 1
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FLOAT_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MATH_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_POLL_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_VALUES_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE__BOOL 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_STRUCT_EXCEPTION_IN_MATH_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_TIME_T_IN_TIME_H 1
| #define RETSIGTYPE void
| #define HAVE_ATEXIT 1
| #define HAVE_MEMCPY 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MEMSET 1
| #define HAVE_ON_EXIT 1
| #define HAVE_BCOPY 1
| #define HAVE_BZERO 1
| #define HAVE_SETVBUF 1
| #define HAVE_STRERROR 1
| #define HAVE_STRCHR 1
| #define HAVE_STRRCHR 1
| #define HAVE_STRSTR 1
| #define HAVE_INDEX 1
| #define HAVE_RINDEX 1
| #define HAVE_ERF 1
| #define HAVE_ERFC 1
| #define HAVE_GAMMA 1
| #define HAVE_LGAMMA 1
| #define HAVE_GETCWD 1
| #define HAVE_POLL 1
| #define HAVE_PCLOSE 1
| #define HAVE_POPEN 1
| #define HAVE_SELECT 1
| #define HAVE_SLEEP 1
| #define HAVE_STPCPY 1
| #define HAVE_STRCSPN 1
| #define HAVE_STRDUP 1
| #define HAVE_STRNDUP 1
| #define HAVE_STRNLEN 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_SYSINFO 1
| #define HAVE_TCGETATTR 1
| #define HAVE_VFPRINTF 1
| #define HAVE_USLEEP 1
| #define HAVE_SNPRINTF 1
| #define HAVE_DECL_SIGNGAM 1
| #define HAVE_SIGSETJMP 1
| #define PIPES 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| #define HAVE_WCWIDTH 1
| #define HAVE_WCHAR_H 1
| #define READLINE 1
| #define GNUPLOT_HISTORY 1
| #define HAVE_LIBZ 1
| #define HAVE_LIBGD 1
| #define HAVE_GD_H 1
| #define HAVE_GD_GIF 1
| #define GIF_ANIMATION 1
| #define HAVE_GD_JPEG 1
| #define HAVE_GD_TTF 1
| #define HAVE_GD_PNG 1
| #define HAVE_ICONV 1
| #define USE_MOUSE 1
| #define PIPE_IPC 1
| #define USE_X11_MULTIBYTE 1
| #define EXTERNAL_X11_WINDOW 1
| #define VOLATILE_REFRESH 1
| #define EAM_OBJECTS 1
| #define GP_MACROS 1
| #define HIDDEN3D_QUADTREE 1
| #define HIDDEN3D_VAR_PTSIZE 1
| /* end confdefs.h. */
| #include <iostream>
| int
| main ()
| {
| const char hw[] = "Hello, World\n"; std::cout << hw;
| ;
| return 0;
| }
configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal
will not be compiled.
configure:12240: checking for wx-config
configure:12258: found /usr/bin/wx-config
configure:12271: result: /usr/bin/wx-config
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-12-26 19:00:23
|
On Wednesday, 26 December 2012, Mikhail Kononets wrote:
> Hi
>
> i am trying add wxt terminal support for gnuplot 4.6 in Slackware 14, as
> gnuplot 4.6.0 package included does not support wxt and wxWidgets libs
> are not included either.
>
> I compiled wxPython-2.8.12.1. Now i can successfully compile and run
> gnuplot 4.4.4 with wxt terminal.
>
> but for gnuplot 4.6 (i tried both 4.6.0 and 4.6.1) compilation of wxt
> teminal is not enabled. probably a relevant part from "config.log" file
> goes below, and there are many errors like this
>
> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp >&5
> ./configure: line XXXXX: -c++: command not found
[snip]
> configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal
> will not be compiled.
> Am i doing anything wrong? GCC is 4.7.1.
The error message is perfectly clear.
You do not have a C++ compiler installed (or if you do then it's not in
the default path for execution).
Ethan
> thank you
> Mikhail
>
> configure:12063: -c++ -c -g -O2 -I/usr/include conftest.cpp >&5
> ./configure: line 2167: -c++: command not found
> configure:12063: $? = 127
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "gnuplot"
> | #define PACKAGE_TARNAME "gnuplot"
> | #define PACKAGE_VERSION "4.6.1"
> | #define PACKAGE_STRING "gnuplot 4.6.1"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "gnuplot"
> | #define VERSION "4.6.1"
> | #define PROTOTYPES 1
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define __EXTENSIONS__ 1
> | #define _ALL_SOURCE 1
> | #define _GNU_SOURCE 1
> | #define _POSIX_PTHREAD_SEMANTICS 1
> | #define _TANDEM_SOURCE 1
> | #define HAVE_STRINGIZE 1
> | #define X11 1
> | #define HAVE_LIBM 1
> | #define STDC_HEADERS 1
> | #define HAVE_DIRENT_H 1
> | #define HAVE_ERRNO_H 1
> | #define HAVE_FLOAT_H 1
> | #define HAVE_LANGINFO_H 1
> | #define HAVE_LIMITS_H 1
> | #define HAVE_LOCALE_H 1
> | #define HAVE_MATH_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_TIME_H 1
> | #define HAVE_SYS_TIME_H 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_IOCTL_H 1
> | #define HAVE_SYS_PARAM_H 1
> | #define HAVE_SYS_SELECT_H 1
> | #define HAVE_SYS_SOCKET_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_SYS_TIMEB_H 1
> | #define HAVE_SYS_UTSNAME_H 1
> | #define HAVE_MALLOC_H 1
> | #define HAVE_POLL_H 1
> | #define HAVE_SGTTY_H 1
> | #define HAVE_TERMIOS_H 1
> | #define HAVE_VALUES_H 1
> | #define HAVE_DIRENT_H 1
> | #define HAVE__BOOL 1
> | #define HAVE_STDBOOL_H 1
> | #define HAVE_STRUCT_EXCEPTION_IN_MATH_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_TIME_T_IN_TIME_H 1
> | #define RETSIGTYPE void
> | #define HAVE_ATEXIT 1
> | #define HAVE_MEMCPY 1
> | #define HAVE_MEMMOVE 1
> | #define HAVE_MEMSET 1
> | #define HAVE_ON_EXIT 1
> | #define HAVE_BCOPY 1
> | #define HAVE_BZERO 1
> | #define HAVE_SETVBUF 1
> | #define HAVE_STRERROR 1
> | #define HAVE_STRCHR 1
> | #define HAVE_STRRCHR 1
> | #define HAVE_STRSTR 1
> | #define HAVE_INDEX 1
> | #define HAVE_RINDEX 1
> | #define HAVE_ERF 1
> | #define HAVE_ERFC 1
> | #define HAVE_GAMMA 1
> | #define HAVE_LGAMMA 1
> | #define HAVE_GETCWD 1
> | #define HAVE_POLL 1
> | #define HAVE_PCLOSE 1
> | #define HAVE_POPEN 1
> | #define HAVE_SELECT 1
> | #define HAVE_SLEEP 1
> | #define HAVE_STPCPY 1
> | #define HAVE_STRCSPN 1
> | #define HAVE_STRDUP 1
> | #define HAVE_STRNDUP 1
> | #define HAVE_STRNLEN 1
> | #define HAVE_STRCASECMP 1
> | #define HAVE_STRNCASECMP 1
> | #define HAVE_SYSINFO 1
> | #define HAVE_TCGETATTR 1
> | #define HAVE_VFPRINTF 1
> | #define HAVE_USLEEP 1
> | #define HAVE_SNPRINTF 1
> | #define HAVE_DECL_SIGNGAM 1
> | #define HAVE_SIGSETJMP 1
> | #define PIPES 1
> | #define HAVE_SYS_SELECT_H 1
> | #define HAVE_SYS_SOCKET_H 1
> | #define SELECT_TYPE_ARG1 int
> | #define SELECT_TYPE_ARG234 (fd_set *)
> | #define SELECT_TYPE_ARG5 (struct timeval *)
> | #define HAVE_WCWIDTH 1
> | #define HAVE_WCHAR_H 1
> | #define READLINE 1
> | #define GNUPLOT_HISTORY 1
> | #define HAVE_LIBZ 1
> | #define HAVE_LIBGD 1
> | #define HAVE_GD_H 1
> | #define HAVE_GD_GIF 1
> | #define GIF_ANIMATION 1
> | #define HAVE_GD_JPEG 1
> | #define HAVE_GD_TTF 1
> | #define HAVE_GD_PNG 1
> | #define HAVE_ICONV 1
> | #define USE_MOUSE 1
> | #define PIPE_IPC 1
> | #define USE_X11_MULTIBYTE 1
> | #define EXTERNAL_X11_WINDOW 1
> | #define VOLATILE_REFRESH 1
> | #define EAM_OBJECTS 1
> | #define GP_MACROS 1
> | #define HIDDEN3D_QUADTREE 1
> | #define HIDDEN3D_VAR_PTSIZE 1
> | /* end confdefs.h. */
> | #include <iostream>
> | int
> | main ()
> | {
> | const char hw[] = "Hello, World\n"; std::cout << hw;
> | ;
> | return 0;
> | }
> configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal
> will not be compiled.
> configure:12240: checking for wx-config
> configure:12258: found /usr/bin/wx-config
> configure:12271: result: /usr/bin/wx-config
>
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
|
|
From: Mikhail K. <mko...@gm...> - 2012-12-26 19:13:37
|
Ethan, thank you for spending time on me.
I think i do have C++ compiler properly installed and in the default
path for execution, because gnuplot 4.4.4 can detect C++ compiler and
can be successfully compiled with wxt support on my system (i am now
using gnuplot 4.4.4 with wxt terminal). Can anything else be wrong?
Mikhail
On 26/12/2012 20:00, sfeam (Ethan Merritt) wrote:
>> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp>&5
>> > ./configure: line XXXXX: -c++: command not found
> [snip]
>> > configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal
>> > will not be compiled.
>> > Am i doing anything wrong? GCC is 4.7.1.
> The error message is perfectly clear.
> You do not have a C++ compiler installed (or if you do then it's not in
> the default path for execution).
>
> Ethan
>
>
--
Mikhail Kononets
Ph.D. Student
Marine Chemistry
Department of Chemistry and Molecular Biology
University of Gothenburg
Kemivagen 10
SE-412 96
Gothenburg, Sweden
office num.: +46-31-786-9063
mobile num.: +46-70-216-0936
e-mail: m.k...@ch...
mko...@gm...
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-12-26 19:46:24
|
On Wednesday, 26 December 2012, Mikhail Kononets wrote: > Ethan, thank you for spending time on me. > > I think i do have C++ compiler properly installed and in the default > path for execution, because gnuplot 4.4.4 can detect C++ compiler and > can be successfully compiled with wxt support on my system (i am now > using gnuplot 4.4.4 with wxt terminal). Can anything else be wrong? So when you type "c++" at the command line you do get a compiler? Note that the usual name for the gcc C++ compiler is "g++" not "c++". I don't know why your system might be confused, but if "g++" works and "c++" does not, then you can probably proceed by doing (csh/tcsh) setenv CXX g++ ./configure or (bash/sh) export CXX=g++ ./configure > > Mikhail > > > On 26/12/2012 20:00, sfeam (Ethan Merritt) wrote: > >> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp>&5 > >> > ./configure: line XXXXX: -c++: command not found > > [snip] > >> > configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal > >> > will not be compiled. > >> > Am i doing anything wrong? GCC is 4.7.1. > > The error message is perfectly clear. > > You do not have a C++ compiler installed (or if you do then it's not in > > the default path for execution). > > > > Ethan > > > > > > |
|
From: Mikhail K. <mko...@gm...> - 2012-12-26 19:59:28
|
Thanks for suggestions, Ethan, i shall give it a try. yes i do get a compiler when executing "c++" or "g++", like: $ c++ --version c++ (GCC) 4.7.1 [snip] $ g++ --version g++ (GCC) 4.7.1 [snip] on my system "c++" is a symlink to "g++", and "g++" is a symlink to the actual compiler binary: $ ls -l `which c++` lrwxrwxrwx 1 root root 3 Dec 24 23:45 /usr/bin/c++ -> g++* $ ls -l `which g++` lrwxrwxrwx 1 root root 13 Dec 24 23:45 /usr/bin/g++ -> g++-gcc-4.7.1* $ ls -l `which g++-gcc-4.7.1` -rwxr-xr-x 1 root root 542132 Jun 20 2012 /usr/bin/g++-gcc-4.7.1* thanks again Mikhail On 26/12/2012 20:46, sfeam (Ethan Merritt) wrote: > On Wednesday, 26 December 2012, Mikhail Kononets wrote: >> Ethan, thank you for spending time on me. >> >> I think i do have C++ compiler properly installed and in the default >> path for execution, because gnuplot 4.4.4 can detect C++ compiler and >> can be successfully compiled with wxt support on my system (i am now >> using gnuplot 4.4.4 with wxt terminal). Can anything else be wrong? > > So when you type "c++" at the command line you do get a compiler? > Note that the usual name for the gcc C++ compiler is "g++" not "c++". > > I don't know why your system might be confused, but if "g++" works > and "c++" does not, then you can probably proceed by doing > (csh/tcsh) > setenv CXX g++ > ./configure > or (bash/sh) > export CXX=g++ > ./configure > >> >> Mikhail >> >> >> On 26/12/2012 20:00, sfeam (Ethan Merritt) wrote: >>>> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp>&5 >>>>> ./configure: line XXXXX: -c++: command not found >>> [snip] >>>>> configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal >>>>> will not be compiled. >>>>> Am i doing anything wrong? GCC is 4.7.1. >>> The error message is perfectly clear. >>> You do not have a C++ compiler installed (or if you do then it's not in >>> the default path for execution). >>> >>> Ethan >>> >>> >> >> > |
|
From: Daniel J S. <dan...@ie...> - 2012-12-26 20:08:14
|
There is something subtle wrong with the compilation expression. It is constructing a command '-c++', not 'c++', and the command is treated as an option. Take a closer look at the configuration code to see how that extra dash in front is coming about. Dan On 12/26/2012 01:59 PM, Mikhail Kononets wrote: > Thanks for suggestions, Ethan, i shall give it a try. > > yes i do get a compiler when executing "c++" or "g++", like: > > $ c++ --version > c++ (GCC) 4.7.1 > [snip] > $ g++ --version > g++ (GCC) 4.7.1 > [snip] > > on my system "c++" is a symlink to "g++", and "g++" is a symlink to the > actual compiler binary: > > $ ls -l `which c++` > lrwxrwxrwx 1 root root 3 Dec 24 23:45 /usr/bin/c++ -> g++* > $ ls -l `which g++` > lrwxrwxrwx 1 root root 13 Dec 24 23:45 /usr/bin/g++ -> g++-gcc-4.7.1* > $ ls -l `which g++-gcc-4.7.1` > -rwxr-xr-x 1 root root 542132 Jun 20 2012 /usr/bin/g++-gcc-4.7.1* > > thanks again > Mikhail > > > On 26/12/2012 20:46, sfeam (Ethan Merritt) wrote: >> On Wednesday, 26 December 2012, Mikhail Kononets wrote: >>> Ethan, thank you for spending time on me. >>> >>> I think i do have C++ compiler properly installed and in the default >>> path for execution, because gnuplot 4.4.4 can detect C++ compiler and >>> can be successfully compiled with wxt support on my system (i am now >>> using gnuplot 4.4.4 with wxt terminal). Can anything else be wrong? >> >> So when you type "c++" at the command line you do get a compiler? >> Note that the usual name for the gcc C++ compiler is "g++" not "c++". >> >> I don't know why your system might be confused, but if "g++" works >> and "c++" does not, then you can probably proceed by doing >> (csh/tcsh) >> setenv CXX g++ >> ./configure >> or (bash/sh) >> export CXX=g++ >> ./configure >> >>> >>> Mikhail >>> >>> >>> On 26/12/2012 20:00, sfeam (Ethan Merritt) wrote: >>>>> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp>&5 >>>>>> ./configure: line XXXXX: -c++: command not found >>>> [snip] >>>>>> configure:12223: WARNING: No C++ compiler found. The wxWidgets terminal >>>>>> will not be compiled. >>>>>> Am i doing anything wrong? GCC is 4.7.1. >>>> The error message is perfectly clear. >>>> You do not have a C++ compiler installed (or if you do then it's not in >>>> the default path for execution). >>>> >>>> Ethan >>>> >>>> >>> >>> >> > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Dan Sebald email: daniel(DOT)sebald(AT)ieee(DOT)org URL: http://www(DOT)dansebald(DOT)com |
|
From: Mikhail K. <mko...@gm...> - 2012-12-26 20:57:48
|
i can see the following line inside the ./configure script
CXX=${CXX-${host_alias}-c++}
which can result in "-c++" as a name for C++ compiler binary assuming
empty $CXX and $host_alias. Not surprising, when running configure as
suggested by Ethan, "CXX=g++ ./configure", C++ compiler is detected
properly and wxt terminal is enabled, and compiled.
Mikhail
On 26/12/2012 21:08, Daniel J Sebald wrote:
> There is something subtle wrong with the compilation expression. It is
> constructing a command '-c++', not 'c++', and the command is treated as
> an option. Take a closer look at the configuration code to see how that
> extra dash in front is coming about.
>
> Dan
>
>
> On 12/26/2012 01:59 PM, Mikhail Kononets wrote:
>> Thanks for suggestions, Ethan, i shall give it a try.
>>
>> yes i do get a compiler when executing "c++" or "g++", like:
>>
>> $ c++ --version
>> c++ (GCC) 4.7.1
>> [snip]
>> $ g++ --version
>> g++ (GCC) 4.7.1
>> [snip]
>>
>> on my system "c++" is a symlink to "g++", and "g++" is a symlink to the
>> actual compiler binary:
>>
>> $ ls -l `which c++`
>> lrwxrwxrwx 1 root root 3 Dec 24 23:45 /usr/bin/c++ -> g++*
>> $ ls -l `which g++`
>> lrwxrwxrwx 1 root root 13 Dec 24 23:45 /usr/bin/g++ -> g++-gcc-4.7.1*
>> $ ls -l `which g++-gcc-4.7.1`
>> -rwxr-xr-x 1 root root 542132 Jun 20 2012 /usr/bin/g++-gcc-4.7.1*
>>
>> thanks again
>> Mikhail
>>
>>
>> On 26/12/2012 20:46, sfeam (Ethan Merritt) wrote:
>>> On Wednesday, 26 December 2012, Mikhail Kononets wrote:
>>>> Ethan, thank you for spending time on me.
>>>>
>>>> I think i do have C++ compiler properly installed and in the default
>>>> path for execution, because gnuplot 4.4.4 can detect C++ compiler and
>>>> can be successfully compiled with wxt support on my system (i am now
>>>> using gnuplot 4.4.4 with wxt terminal). Can anything else be wrong?
>>>
>>> So when you type "c++" at the command line you do get a compiler?
>>> Note that the usual name for the gcc C++ compiler is "g++" not "c++".
>>>
>>> I don't know why your system might be confused, but if "g++" works
>>> and "c++" does not, then you can probably proceed by doing
>>> (csh/tcsh)
>>> setenv CXX g++
>>> ./configure
>>> or (bash/sh)
>>> export CXX=g++
>>> ./configure
>>>
>>>>
>>>> Mikhail
>>>>
>>>>
>>>> On 26/12/2012 20:00, sfeam (Ethan Merritt) wrote:
>>>>>> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp>&5
>>>>>>> ./configure: line XXXXX: -c++: command not found
>>>>> [snip]
>>>>>>> configure:12223: WARNING: No C++ compiler found. The wxWidgets
>>>>>>> terminal
>>>>>>> will not be compiled.
>>>>>>> Am i doing anything wrong? GCC is 4.7.1.
>>>>> The error message is perfectly clear.
>>>>> You do not have a C++ compiler installed (or if you do then it's
>>>>> not in
>>>>> the default path for execution).
>>>>>
>>>>> Ethan
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
>> and much more. Keep your Java skills current with LearnJavaNow -
>> 200+ hours of step-by-step video tutorials by Java experts.
>> SALE $49.99 this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122612
>> _______________________________________________
>> gnuplot-beta mailing list
>> gnu...@li...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>>
>
|
|
From: Daniel J S. <dan...@ie...> - 2012-12-26 23:09:49
|
On 12/26/2012 02:57 PM, Mikhail Kononets wrote:
> i can see the following line inside the ./configure script
>
> CXX=${CXX-${host_alias}-c++}
Strange construct. Given
AA=${BB-${CC}-c++}
it seems that if BB is defined AA ends up being BB. If BB is not
defined and CC is then AA is ${CC}-c++. If neither BB or CC is defined
then AA is -c++. Is the dash supposed to be similar to a conditional?
Dan
> which can result in "-c++" as a name for C++ compiler binary assuming
> empty $CXX and $host_alias. Not surprising, when running configure as
> suggested by Ethan, "CXX=g++ ./configure", C++ compiler is detected
> properly and wxt terminal is enabled, and compiled.
>
> Mikhail
>
> On 26/12/2012 21:08, Daniel J Sebald wrote:
>> There is something subtle wrong with the compilation expression. It is
>> constructing a command '-c++', not 'c++', and the command is treated as
>> an option. Take a closer look at the configuration code to see how that
>> extra dash in front is coming about.
>>
>> Dan
>>
>>
>> On 12/26/2012 01:59 PM, Mikhail Kononets wrote:
>>> Thanks for suggestions, Ethan, i shall give it a try.
>>>
>>> yes i do get a compiler when executing "c++" or "g++", like:
>>>
>>> $ c++ --version
>>> c++ (GCC) 4.7.1
>>> [snip]
>>> $ g++ --version
>>> g++ (GCC) 4.7.1
>>> [snip]
>>>
>>> on my system "c++" is a symlink to "g++", and "g++" is a symlink to the
>>> actual compiler binary:
>>>
>>> $ ls -l `which c++`
>>> lrwxrwxrwx 1 root root 3 Dec 24 23:45 /usr/bin/c++ -> g++*
>>> $ ls -l `which g++`
>>> lrwxrwxrwx 1 root root 13 Dec 24 23:45 /usr/bin/g++ -> g++-gcc-4.7.1*
>>> $ ls -l `which g++-gcc-4.7.1`
>>> -rwxr-xr-x 1 root root 542132 Jun 20 2012 /usr/bin/g++-gcc-4.7.1*
>>>
>>> thanks again
>>> Mikhail
>>>
>>>
>>> On 26/12/2012 20:46, sfeam (Ethan Merritt) wrote:
>>>> On Wednesday, 26 December 2012, Mikhail Kononets wrote:
>>>>> Ethan, thank you for spending time on me.
>>>>>
>>>>> I think i do have C++ compiler properly installed and in the default
>>>>> path for execution, because gnuplot 4.4.4 can detect C++ compiler and
>>>>> can be successfully compiled with wxt support on my system (i am now
>>>>> using gnuplot 4.4.4 with wxt terminal). Can anything else be wrong?
>>>>
>>>> So when you type "c++" at the command line you do get a compiler?
>>>> Note that the usual name for the gcc C++ compiler is "g++" not "c++".
>>>>
>>>> I don't know why your system might be confused, but if "g++" works
>>>> and "c++" does not, then you can probably proceed by doing
>>>> (csh/tcsh)
>>>> setenv CXX g++
>>>> ./configure
>>>> or (bash/sh)
>>>> export CXX=g++
>>>> ./configure
>>>>
>>>>>
>>>>> Mikhail
>>>>>
>>>>>
>>>>> On 26/12/2012 20:00, sfeam (Ethan Merritt) wrote:
>>>>>>> configure:YYYYY: -c++ -c -g -O2 -I/usr/include conftest.cpp>&5
>>>>>>>> ./configure: line XXXXX: -c++: command not found
>>>>>> [snip]
>>>>>>>> configure:12223: WARNING: No C++ compiler found. The wxWidgets
>>>>>>>> terminal
>>>>>>>> will not be compiled.
>>>>>>>> Am i doing anything wrong? GCC is 4.7.1.
>>>>>> The error message is perfectly clear.
>>>>>> You do not have a C++ compiler installed (or if you do then it's
>>>>>> not in
>>>>>> the default path for execution).
>>>>>>
>>>>>> Ethan
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>>
>>> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
>>> and much more. Keep your Java skills current with LearnJavaNow -
>>> 200+ hours of step-by-step video tutorials by Java experts.
>>> SALE $49.99 this month only -- learn more at:
>>> http://p.sf.net/sfu/learnmore_122612
>>> _______________________________________________
>>> gnuplot-beta mailing list
>>> gnu...@li...
>>> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>>>
>>
>
--
Dan Sebald
email: daniel(DOT)sebald(AT)ieee(DOT)org
URL: http://www(DOT)dansebald(DOT)com
|
|
From: Mikhail K. <mko...@gm...> - 2012-12-27 02:11:18
|
On 27/12/2012 00:09, Daniel J Sebald wrote:
> On 12/26/2012 02:57 PM, Mikhail Kononets wrote:
>> i can see the following line inside the ./configure script
>>
>> CXX=${CXX-${host_alias}-c++}
>
> Strange construct. Given
>
> AA=${BB-${CC}-c++}
>
> it seems that if BB is defined AA ends up being BB. If BB is not
> defined and CC is then AA is ${CC}-c++. If neither BB or CC is defined
> then AA is -c++. Is the dash supposed to be similar to a conditional?
first dash is conditional, but the second must be literal in this notation.
i made some more trials. Slackware build script for gnuplot invokes
./configure with --build=i486-slackware-linux. If i omit setting --build
option, then C++ compiler is detected properly and gnuplot is built with
wxt terminal.
there are few more strange issues building 4.6 and some syntax changes
between 4.4 and 4.6 which must be taken into account before i can switch
to 4.6. so i give up and keep version 4.4.4 running for now.
thanks everyone for help.
Mikhail
>
> Dan
|
|
From: Daniel J S. <dan...@ie...> - 2012-12-27 07:11:36
|
On 12/26/2012 08:11 PM, Mikhail Kononets wrote:
> On 27/12/2012 00:09, Daniel J Sebald wrote:
>> On 12/26/2012 02:57 PM, Mikhail Kononets wrote:
>>> i can see the following line inside the ./configure script
>>>
>>> CXX=${CXX-${host_alias}-c++}
>>
>> Strange construct. Given
>>
>> AA=${BB-${CC}-c++}
>>
>> it seems that if BB is defined AA ends up being BB. If BB is not
>> defined and CC is then AA is ${CC}-c++. If neither BB or CC is defined
>> then AA is -c++. Is the dash supposed to be similar to a conditional?
>
> first dash is conditional, but the second must be literal in this notation.
OK, it is conditional. I did some tests here and the correct
construct/syntax appears to be the following:
AA=${BB-${CC-c++}}
It is easy enough to test at a shell command line by having BB/CC
defined and not defined in various combinations.
Dan
|
|
From: Daniel J S. <dan...@ie...> - 2012-12-27 07:27:17
|
On 12/26/2012 08:11 PM, Mikhail Kononets wrote:
> On 27/12/2012 00:09, Daniel J Sebald wrote:
>> On 12/26/2012 02:57 PM, Mikhail Kononets wrote:
> i made some more trials. Slackware build script for gnuplot invokes
> ./configure with --build=i486-slackware-linux. If i omit setting --build
> option, then C++ compiler is detected properly and gnuplot is built with
> wxt terminal.
>
> there are few more strange issues building 4.6 and some syntax changes
> between 4.4 and 4.6 which must be taken into account before i can switch
> to 4.6. so i give up and keep version 4.4.4 running for now.
>
> thanks everyone for help.
> Mikhail
>
Don't give up. The change I suggested in the previous post should allow
you to build a little further. With "--build=i486-slackware-linux" then
'build' no longer is equal to 'host', and that is when the incorrect
conditional statement applies:
if test "${build}" != "${host}"
then
CC=${CC-${host_alias}-gcc}
CFLAGS=${CFLAGS-"-g -O2"}
CXX=${CXX-${host_alias}-c++}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
By removing the "--build=i486-slackware-linux" I suspect you are no
longer doing a cross compile which may lead to other problems in
configure on your system.
Please change the following two lines
CC=${CC-${host_alias}-gcc}
CXX=${CXX-${host_alias}-c++}
to this
CC=${CC-${host_alias-gcc}}
CXX=${CXX-${host_alias-c++}}
and try configuring once again. Report back if there are further
issues. There appear to be some FIXMEs in the configure code that
probably haven't been resolved because no one has run across the issue
yet. You might be able to help.
Dan
|
|
From: Mikhail K. <mko...@gm...> - 2012-12-27 11:24:26
|
Dan, i changed the CC= and CXX= lines in the ./configure script as you
suggested. now when invoking "./configure --build=i486-slackware-linux"
C++ compiled is detected successfully and wxt terminal is enabled.
i have a few minor issues, but these are 99.9% related to me running
slackware gnuplot build script as
su -c ./gnuplot.Slackbuild
because "su" command provides different PATH variable.
hope this is useful result.
Mikhail
On 27/12/2012 08:27, Daniel J Sebald wrote:
> Please change the following two lines
>
> CC=${CC-${host_alias}-gcc}
> CXX=${CXX-${host_alias}-c++}
>
> to this
>
> CC=${CC-${host_alias-gcc}}
> CXX=${CXX-${host_alias-c++}}
>
> and try configuring once again. Report back if there are further
> issues. There appear to be some FIXMEs in the configure code that
> probably haven't been resolved because no one has run across the issue
> yet. You might be able to help.
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-12-27 17:37:47
|
On Thursday, 27 December 2012, Mikhail Kononets wrote:
> Dan, i changed the CC= and CXX= lines in the ./configure script as you
> suggested. now when invoking "./configure --build=i486-slackware-linux"
> C++ compiled is detected successfully and wxt terminal is enabled.
>
> i have a few minor issues, but these are 99.9% related to me running
> slackware gnuplot build script as
> su -c ./gnuplot.Slackbuild
> because "su" command provides different PATH variable.
>
> hope this is useful result.
> Mikhail
>
> On 27/12/2012 08:27, Daniel J Sebald wrote:
> > Please change the following two lines
> >
> > CC=${CC-${host_alias}-gcc}
> > CXX=${CXX-${host_alias}-c++}
> >
> > to this
> >
> > CC=${CC-${host_alias-gcc}}
> > CXX=${CXX-${host_alias-c++}}
I've applied that change to configure.in
Thanks both of you, and best wishes for the New Year.
|