Opened 15 years ago
Closed 14 years ago
#24787 closed defect (fixed)
wxMaxima 0.8.4 build failure
Reported by: | nhepburn@… | Owned by: | usami-k@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | vincent.liegeois@… | |
Port: | wxMaxima |
Description
I have tried to install wxMaxima but not been successful. I have used the command
sudo port update --enforce-variants <pkg_name> +universal
for each of the components like jpeg, tiff, libpng, etc. After doing all that I ran the command to install wxMaxima and was able to get it past installing wxWidgets but then it fails on wxMaxima. I have attached the debug output from the -d switch.
Attachments (1)
Change History (11)
Changed 15 years ago by nhepburn@…
Attachment: | debug.txt.zip added |
---|
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Port: | 0.8.4 removed |
---|
comment:2 Changed 15 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to usami-k@… |
---|
comment:3 follow-ups: 7 9 Changed 15 years ago by vincent.liegeois@…
I had the same error but was able to compile it by changing TEMPORALLY macports.conf file (/opt/local/etc/macports). For that, you need first to change the write permission on the file: sudo chmod +w macports.conf and then uncomment the line 59: build_arch i386.
Then you can install: sudo port install wxmaxima by forcing i386 instead of x86_64.
I don't using +universal variant.
You should comment back the line 59 in macports.conf afterwards
comment:7 Changed 14 years ago by nhepburn@…
Replying to vincent.liegeois@…:
I had the same error but was able to compile it by changing TEMPORALLY macports.conf file (/opt/local/etc/macports). For that, you need first to change the write permission on the file: sudo chmod +w macports.conf and then uncomment the line 59: build_arch i386.
Then you can install: sudo port install wxmaxima by forcing i386 instead of x86_64.
I don't using +universal variant.
You should comment back the line 59 in macports.conf afterwards
I tried that and it worked on my iMac. However, when I tried it on my MBP, it did not. I tried a number of things including completely uninstalling MacPorts and reinstalling. In doing so I made sure that I had the most up-to-date version of xcode installed. When I tried to install wxMaxima again, I had no luck. To force the i386 option, I used sudo port install wxMaxima +i386 It then complained that implicit variants should not be entered and it would be ignored.
Hmmmm.
-Neil
comment:8 Changed 14 years ago by anddam (Andrea D'Amore)
At the moment wxWidgets is only available for i386 and ppc target while the default target on SnowLeopard is x86_64, thus wxMaxima build fails because macports tries to link with different archs, here's the line from the file you attached:
ld: warning: in /opt/local/lib/libwx_macu-2.8.dylib, file was built for i386 which is not the architecture being linked (x86_64)
You can override this appending build_arch=i386 when building wxMaxima, there's no need to edit macports.conf.
The maintainer could add lines to set configure.build_arch for Intel and PPC machines to avoid having to set it explicitly from command line.
I'm closing this ticket as I'm submitting a version bump to 0.8.6 too.
comment:9 Changed 14 years ago by anddam (Andrea D'Amore)
Replying to vincent.liegeois@…:
You should comment back the line 59 in macports.conf afterwards
There's no really need to edit macports.conf, anyway while suggesting changes to it you have to consider that a person could have edited it and thus it's better to quote the actual line you want to change rather than its number.
comment:10 Changed 14 years ago by anddam (Andrea D'Amore)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please remember to cc the maintainer.