Opened 13 years ago
Closed 13 years ago
#31483 closed defect (fixed)
gnuplot: Unable to install with +wxwidgets variant
Reported by: | vidakris | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | mojca (Mojca Miklavec) | |
Port: | gnuplot |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
sudo port install gnuplot +wxwidgets
gives the following error:
Error: Cannot install gnuplot for the arch(s) 'x86_64' because Error: its dependency wxWidgets is only installed for the arch 'i386' Error: and does not have a universal variant. Error: Unable to execute port: architecture mismatch
Attachments (1)
Change History (11)
comment:1 Changed 13 years ago by vidakris
Cc: | vidakris@… added |
---|
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | vidakris@… removed |
---|---|
Keywords: | gnuplot wxwidgets removed |
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | gnuplot added |
Status: | new → assigned |
Summary: | Unable to install gnuplot with wxwidgets → gnuplot: Unable to install with +wxwidgets variant |
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Changed 13 years ago by vidakris
comment:4 Changed 13 years ago by vidakris
Resolution: | fixed |
---|---|
Status: | closed → reopened |
After the previous fix, port install will start, it gives however the following error:
Error: Target org.macports.build returned: shell command failed (see log for details)
main.log is attached.
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, that's a different problem. I'm able to reproduce it on Snow Leopard with Xcode 3.2.6 if I request the use of llvm-gcc-4.2 or clang. By default MacPorts compiles using gcc-4.2 on Xcode 3.2.x which works fine. But because you're on Xcode 4.1.x the default is llvm-gcc-4.2. Try using gcc-4.2 instead:
sudo port clean gnuplot sudo port install gnuplot +wxwidgets configure.compiler=gcc-4.2
comment:6 follow-up: 8 Changed 13 years ago by vidakris
OK, now it compiles all right. Wx terminal is still useless unfortunately. Plotting works fine, but the color wheel keeps spinning, and the window won't react on clicks, so no interactive functions work. But that's another topic.
comment:8 Changed 13 years ago by mojca (Mojca Miklavec)
Replying to vidakris@…:
OK, now it compiles all right.
The reason why installing gnuplot 4.4.4 with +wxwidgetss fails for me is a bug in autotools used for preparing gnuplot's configure script. (I asked gnuplot developers to upgrade and they will hopefully use a newer version for next release.) After using the patch from #33596 I have no problem compiling with XCode 3.2 on 10.6 both clang and llvm-gcc-4.2, as well as on 10.7 and XCode 4.2.1 (again, both with clang and llvm-gcc-4.2). The only combination that fails is compiling with wxwidgets-devel and clang compiler, which is why I have used
if {[variant_isset wxwidgets_devel]} { # http://trac.wxwidgets.org/ticket/13565 if {${configure.compiler} == "clang"} { configure.compiler llvm-gcc-4.2 } }
In principle I can backport the patch for 4.6.0 to 4.4.4, but I see no compelling reason to do so unless somebody tells me to do it (that is: if upgrading to 4.6.0 is not feasible for one reason or the other). If anyone else would want to backport the patch, simply take a look at lines around "bool e = &s;" in configure script in gnuplot4_6_0-v2-cocoa.diff
Wx terminal is still useless unfortunately. Plotting works fine, but the color wheel keeps spinning, and the window won't react on clicks, so no interactive functions work. But that's another topic.
Gnuplot 4.6.0 (#33596) solves that problem as well. So according to my knowledge, once patches from ticket #33596 are applied, this ticket could be closed as well.
comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from ryandesign@… to macports-tickets@… |
---|---|
Status: | reopened → new |
comment:10 Changed 13 years ago by pixilla (Bradley Giesbrecht)
Resolution: | → fixed |
---|---|
Status: | new → closed |
See r92569
Cc Me!