You are not logged in.
Hi!
I would like to create OpenTK package, but I don't have a clue about building c# code. I guess it should build same as tao-framework package, but I don't want to do something wrong and mess up my filesystem.
Website: http://www.opentk.com/
Package: http://sourceforge.net/project/platform … _id=177681
Thx for help
Offline
Here's an unfinished PKGBUILD. All that is missing is build code, md5sums and possibly some makedepends and/or depends.
pkgname=opentk
pkgver=0.9.7
pkgrel=1
pkgdesc="The Open Toolkit is a free, cross-platform OpenGL and OpenAL wrapper for C# and other .Net languages"
arch=('i686' 'x86_64')
url=('http://www.OpenTK.com')
license=('MIT')
depends=()
makedepends=('mono' 'nant')
source=(http://downloads.sourceforge.net/sourceforge/opentk/$pkgname-$pkgver.7z)
md5sums=()
build() {
}Last edited by billy (2009-04-23 15:48:54)
Offline
I'm interested in creating and maintaining this package. The actual build code would look similar to this:
# unpack archive (note that you depend on p7zip if you use the 7z archive)
cd $pkgname-$pkgver/Build
mono Build.exe mono release
cp ../Binaries/Release/Libraries/* [correct location]Two issues here:
1. The C# compiler in Mono 2.2 and 2.4 contains a bug that causes compilation to fail. This means that you cannot compile OpenTK on Arch at this time (unless Mono 2.4.1 is out already?)
2. The API of this library is not stable at this point, meaning it cannot be installed in the Mono GAC.
Issue 1 is easy enough: wait for Mono to release 2.4.1.
Regarding issue 2, what are the guidelines for managed assemblies? I suppose they don't belong to /usr/lib - if so where do we put them?
Last edited by TheFiddler (2009-05-20 21:34:09)
The Open Toolkit: OpenGL, OpenAL, OpenCL and Vulkan for Mono/.Net.
Offline
If you want and can build and maintain the package please do, I would appreciate it. I just want to have this package in AUR.
For the first issue: isn't there any patch for this?
Second issue: haven't a clue what to do ![]()
Offline
Will do, once Mono 2.4.2 is released (projected date is around 8 June).
The Open Toolkit: OpenGL, OpenAL, OpenCL and Vulkan for Mono/.Net.
Offline
A new version of OpenTK has been released, verison 0.9.8. Maybe this version fixes compilation problems?
Offline
Unfortunately, it is not possible to work around this compiler bug. The compiler fails to distinguish between generic overloads:
void Foo<T>(ref T data) where T : struct;
void Foo<T>(T[] data) where T : struct;These overloads cover about 20-30% of the OpenGL API and there's no known workaround.
The Open Toolkit: OpenGL, OpenAL, OpenCL and Vulkan for Mono/.Net.
Offline
If OpenTK can't be compiled, then who and how uses it? How do developers test their code?
Offline
OpenTK can be compiled on Mono 1.2.6 - 2.0, Mono trunk and .Net. The compiler bug only exists on Mono 2.2 and 2.4. Most people use precompiled binaries, which are conveniently included in the release packages (the binaries themselves are 100% cross-platform).
Status update: Mono 2.4.2 is scheduled for release in early July.
The Open Toolkit: OpenGL, OpenAL, OpenCL and Vulkan for Mono/.Net.
Offline
Is there any progress on this package?
Offline
well did you try it yourself ? Did you try to get the openTK binary or to compile it yourself and patch it ?
Offline
I have just committed a number of workarounds against Mono (2.0 and 2.4.2) bugs and logged bug reports to the Mono bugtracker. I'll try now to get an PKGBUILD script up and running.
Last edited by TheFiddler (2009-08-12 11:01:09)
The Open Toolkit: OpenGL, OpenAL, OpenCL and Vulkan for Mono/.Net.
Offline