libogg question
by Zoltan Seress
Hi,
I tried to cross compile libogg from the libogg-1.1.3-9.fc9.src.rpm. When
the build finishes there is only a libogg-0.dll in bindir, and no
libogg*.dll.a in libdir. Is it normal? I guess not. I attached my short spec
file. Any help will be appreciated.
--
Zoltan Seress
15 years, 1 month
Re: ocaml cross-compiler
by Richard Jones
On Sat, Mar 28, 2009 at 07:45:49PM +0000, Joel Reymont wrote:
> Is there a ready-made Fedora package for the OCaml cross-compiler?
Note that we _only_ support Fedora Rawhide (the development version of
OCaml) and future Fedora 11 and above. To find out about Rawhide, see:
http://fedoraproject.org/wiki/Releases/Rawhide
If you have F-10, I believe that you can upgrade it to Rawhide simply
by editing a file in /etc/yum.repos.d. But ask about that on the main
Fedora mailing lists since I'm not sure.
Anyway, to install the cross-compiler, create a new file
/etc/yum.repos.d/mingw.repo which contains:
[mingw]
name=Fedora Windows cross-compiler, libraries and tools
baseurl=http://homes.merjis.com/~rich/mingw/fedora-10/x86_64/
enabled=1
gpgcheck=0
Note that you will need to adjust the baseurl to match your version of
Fedora and architecture.
Then do:
# yum install mingw32-ocaml
Actually there are several packages you can install. Poke around
http://homes.merjis.com/~rich/mingw/ to see which ones.
> I would like to cross-compile a GTK+ app but can't find instructions.
To cross-compile an OCaml program I strongly suggest that you start
off with the example package that I created / used for the OCaml Users
Conference talk last month:
http://www.annexia.org/tmp/ocaml-mingw-gtk/
Please join the mailing list and ask questions there so we can share
the knowledge:
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
Any OCaml + lablgtk2 program should be straightforward to
cross-compile for Windows. Mostly difficulties will arise only if the
program uses some weird libraries.
Rich.
--
Richard Jones
Red Hat
15 years, 1 month
Thanks and a question or two
by John Stebbins
I recently successfully ported my application using these tools. It sure
made things easier. If you curious, the project is currently at
hbfork.googlecode.com
There were a couple packages that I had issues with.
Your version of mingw32-w32api is too old to build ffmpeg with. Ffmpeg
requires 3.13 or better.
There is no mingw32-pkgconfig, so configure would use the system
pkg-config and use regular system include and library paths and flags.
I found what I needed to fix these issues here:
http://sourceforge.net/project/showfiles.php?group_id=204414
Is this project associated with your effort at all?
This may not be your area of concern, but MinGw has problems with large
file support. They've had a ticket open for it since 2006 and a few
patches have been floating around, but no resolution. I had to patch
several things to accommodate.
FYI, the repository liked to from here is currently down:
http://fedoraproject.org/wiki/MinGW
15 years, 1 month
rpms/mingw32-filesystem/devel macros.mingw32, 1.2, 1.3 mingw32-filesystem.spec, 1.20, 1.21
by Richard W.M. Jones
Author: rjones
Update of /cvs/pkgs/rpms/mingw32-filesystem/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19805
Modified Files:
macros.mingw32 mingw32-filesystem.spec
Log Message:
* Fri Mar 27 2009 Richard W.M. Jones <rjones(a)redhat.com> - 50-3
- Fix up and test mingw32-pkg-config changes.
* Thu Mar 26 2009 Levente Farkas <lfarkas(a)lfarkas.org> - 50-1
- Add mingw32-pkg-config.
Index: macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/macros.mingw32,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- macros.mingw32 18 Feb 2009 17:06:07 -0000 1.2
+++ macros.mingw32 27 Mar 2009 09:20:25 -0000 1.3
@@ -78,6 +78,10 @@
done; \
unset x i
+%_mingw32_pkg_config \
+ PKG_CONFIG_LIBDIR="%{_mingw32_libdir}/pkgconfig"; export PKG_CONFIG_LIBDIR; \
+ unset PKG_CONFIG_PATH; \
+ pkg-config
%_mingw32_configure %{_mingw32_env} ; \
__mingw32_topdir=.; if ! test -x configure; then __mingw32_topdir=..; fi; \\\
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- mingw32-filesystem.spec 26 Feb 2009 01:03:00 -0000 1.20
+++ mingw32-filesystem.spec 27 Mar 2009 09:20:25 -0000 1.21
@@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: mingw32-filesystem
-Version: 49
+Version: 50
Release: 3%{?dist}
Summary: MinGW base filesystem and environment
@@ -22,6 +22,7 @@
Requires: setup
Requires: rpm
+Requires: pkgconfig
Requires: rpmlint >= 0.85-2
BuildRequires: rpmlint >= 0.85-2
@@ -83,7 +84,7 @@
mkdir -p $RPM_BUILD_ROOT%{_bindir}
pushd $RPM_BUILD_ROOT%{_bindir}
-for i in mingw32-configure mingw32-make; do
+for i in mingw32-configure mingw32-make mingw32-pkg-config; do
ln -s %{_libexecdir}/mingw32-scripts $i
done
popd
@@ -150,12 +151,19 @@
%config(noreplace) %{_sysconfdir}/rpmlint/mingw32-rpmlint.config
%{_bindir}/mingw32-configure
%{_bindir}/mingw32-make
+%{_bindir}/mingw32-pkg-config
%{_libexecdir}/mingw32-scripts
%{_prefix}/i686-pc-mingw32/
/usr/lib/rpm/mingw32-*
%changelog
+* Fri Mar 27 2009 Richard W.M. Jones <rjones(a)redhat.com> - 50-3
+- Fix up and test mingw32-pkg-config changes.
+
+* Thu Mar 26 2009 Levente Farkas <lfarkas(a)lfarkas.org> - 50-1
+- Add mingw32-pkg-config.
+
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 49-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
15 years, 1 month