Opened 13 years ago

Closed 11 years ago

#27898 closed defect (fixed)

gst-plugins-gl does not build with "build_arch i386"

Reported by: lazyt@… Owned by: rmstonecipher@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: reid@…, ryandesign (Ryan Carsten Schmidt)
Port: gst-plugins-gl

Description

Compiling gst-plugins-gl 0.10.2 is not possible with build_arch set to i386 because it builds a 64bit libgstgl_0.10_la-gstglwindow_cocoa.o:

ld: warning: in .libs/libgstgl_0.10_la-gstglwindow_cocoa.o, file was built for unsupported file format which is not the architecture being linked (i386)
bash-3.2$ file *.o
libgstgl_0.10_la-gstglbuffer.o:       Mach-O object i386
libgstgl_0.10_la-gstgldisplay.o:      Mach-O object i386
libgstgl_0.10_la-gstglfilter.o:       Mach-O object i386
libgstgl_0.10_la-gstglmixer.o:        Mach-O object i386
libgstgl_0.10_la-gstglshader.o:       Mach-O object i386
libgstgl_0.10_la-gstglwindow_cocoa.o: Mach-O 64-bit object x86_64

Adding "-arch i386" to Makefile section "libgstgl_0.10_la-gstglwindow_cocoa.lo" solves this for me.

Attachments (3)

Makefile.patch (1.3 KB) - added by lazyt@… 13 years ago.
quick and dirty fix
Portfile.patch (485 bytes) - added by jmroot (Joshua Root) 12 years ago.
objcflags.patch (672 bytes) - added by jmroot (Joshua Root) 12 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to rmstonecipher@…
Port: gst-plugins-gl added

Please remember to fill in the Port field and cc the maintainer.

comment:2 Changed 13 years ago by rmstonecipher@…

Please provide a patch to fix the file you altered.
I am willing to update this port to build properly for you and other users on your architecture but did not grok your explanation.
Thanks,
Ryan

Changed 13 years ago by lazyt@…

Attachment: Makefile.patch added

quick and dirty fix

comment:3 Changed 13 years ago by lazyt@…

Hope the attachment helps to understand.

Changed 12 years ago by jmroot (Joshua Root)

Attachment: Portfile.patch added

Changed 12 years ago by jmroot (Joshua Root)

Attachment: objcflags.patch added

comment:4 Changed 12 years ago by jmroot (Joshua Root)

The Makefiles aren't setting OBJCFLAGS (and it's not in the configure script's ac_subst_vars either). Try the attached patch.

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: reid@… ryandesign@… added

Has duplicate #32395.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:7 Changed 11 years ago by rmstonecipher@…

Resolution: fixed
Status: newclosed

Fixed in r99334.

Note: See TracTickets for help on using tickets.