You are not logged in.

#1 2009-04-23 15:19:03

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

[REQUEST] OpenTK

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

#2 2009-04-23 15:42:46

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: [REQUEST] OpenTK

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

#3 2009-05-20 21:30:26

TheFiddler
Member
Registered: 2009-02-09
Posts: 38

Re: [REQUEST] OpenTK

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

#4 2009-05-22 22:17:50

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: [REQUEST] OpenTK

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 smile

Offline

#5 2009-05-29 12:55:21

TheFiddler
Member
Registered: 2009-02-09
Posts: 38

Re: [REQUEST] OpenTK

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

#6 2009-06-01 12:55:14

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: [REQUEST] OpenTK

A new version of OpenTK has been released, verison 0.9.8.  Maybe this version fixes compilation problems?

Offline

#7 2009-06-03 20:34:36

TheFiddler
Member
Registered: 2009-02-09
Posts: 38

Re: [REQUEST] OpenTK

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

#8 2009-06-03 22:45:34

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: [REQUEST] OpenTK

If OpenTK can't be compiled, then who and how uses it? How do developers test their code?

Offline

#9 2009-06-13 21:44:46

TheFiddler
Member
Registered: 2009-02-09
Posts: 38

Re: [REQUEST] OpenTK

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

#10 2009-08-06 19:53:39

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: [REQUEST] OpenTK

Is there any progress on this package?

Offline

#11 2009-08-07 07:16:00

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: [REQUEST] OpenTK

well did you try it yourself ? Did you try to get the openTK binary or  to compile it yourself and patch it ?

Offline

#12 2009-08-12 11:00:36

TheFiddler
Member
Registered: 2009-02-09
Posts: 38

Re: [REQUEST] OpenTK

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

Board footer

Powered by FluxBB