Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Developing DirectX on Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
surge
n00b
n00b


Joined: 21 Jan 2005
Posts: 14
Location: Sheffield, UK

PostPosted: Thu Nov 24, 2005 3:24 pm    Post subject: Developing DirectX on Linux Reply with quote

Hi, I have this urge to be able to develop (compile, link and execute - just to clarify) DirectX based applications from within Linux. Part of my university course is using DirectX, and quite frankly my 500MHz XP laptop just isn't fast enough, poor thing.

I have wine-20050725-r1 installed and am currently downloading the DirectX October 2005 SDK. I'm going to try both xmingw and the Microsoft Platform SDK running under wine.

I must confess, I have absolutely no idea how compatible anything will be.

My reason for posting is mainly just to ask if anyone has tried anything like this before with any success or failure, and to see if any of you have any tips on getting it working at all.


Anyway, thanks,
surge.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Thu Nov 24, 2005 3:41 pm    Post subject: Reply with quote

I would install the newest version of wine (0.9.2) if I were you, it's implementation of directx is much more complete. I'm not sure how well it will work though for developing.
Back to top
View user's profile Send private message
NTT
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 188

PostPosted: Thu Nov 24, 2005 3:46 pm    Post subject: Reply with quote

I wouldn't recommend doing that sort of thing, if you get into problems/bugs, just how do you think you'll be able to tell the difference between errors in your own code, the Wine abstraction layer, or other types of bugs? You take the risk of losing hours of development time debugging your code, when the problem was in Wine, or the function you're trying to use is not fully implemtented.
Back to top
View user's profile Send private message
nutbar21
Apprentice
Apprentice


Joined: 05 Dec 2004
Posts: 205
Location: USA

PostPosted: Thu Nov 24, 2005 11:10 pm    Post subject: Reply with quote

You should program in OpenGL and ditch DirectX altogether.
_________________
"Your voice is like the sound of sirens to a house on fire..." -The Alkaline Trio
Back to top
View user's profile Send private message
surge
n00b
n00b


Joined: 21 Jan 2005
Posts: 14
Location: Sheffield, UK

PostPosted: Thu Nov 24, 2005 11:48 pm    Post subject: Reply with quote

Hey again. I've managed to get it working nicely so far. I had a bit of a struggle at first, due to my inability to read xmingw man pages correctly it would seem.

I'm using the same wine version as stated above for executing the applications, although I realise that a later version is more likely to support more functions and work better generally. Thanks BlackEdder.

xmingw is working well to compile them. There were several problems with dll files not being found, however that was soon fixed by a bit of file copying. As my course progresses I will no doubt have to use more than two libraries, and will perhaps hit trouble as NTT suggests, but I'll cross that bridge when I come to it. If the worst comes to the worst, there is a whole university full of Windows machines just waiting for my buggy DirectX code to be compiled from within the confines of Visual Studio, yay!

r3solve, I couldn't agree more but as I mentioned in my first post, it is a requirement for my university course. I can therefore not ditch it.

The DirectX SDK installer makes a fuss about being run on an unsupported platform, shock horror... No problem though, by that stage it has already extracted all the necessary files to a folder from within wine. Then it's a simple case of calling the xmingw compiler, specifying the location of the include directory and the lib directory. Took me a while due to my man page problem and some reality TV show that I was, erm... forced *cough* to watch.

Thanks for your responses,
surge.
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Fri Nov 25, 2005 3:16 am    Post subject: Reply with quote

surge wrote:
Hey again. I've managed to get it working nicely so far. I had a bit of a strug :lol:gle at first, due to my inability to read xmingw man pages correctly it would seem.

I'm using the same wine version as stated above for executing the applications, although I realise that a later version is more likely to support more functions and work better generally. Thanks BlackEdder.

xmingw is working well to compile them. There were several problems with dll files not being found, however that was soon fixed by a bit of file copying. As my course progresses I will no doubt have to use more than two libraries, and will perhaps hit trouble as NTT suggests, but I'll cross that bridge when I come to it. If the worst comes to the worst, there is a whole university full of Windows machines just waiting for my buggy DirectX code to be compiled from within the confines of Visual Studio, yay!

r3solve, I couldn't agree more but as I mentioned in my first post, it is a requirement for my university course. I can therefore not ditch it.

The DirectX SDK installer makes a fuss about being run on an unsupported platform, shock horror... No problem though, by that stage it has already extracted all the necessary files to a folder from within wine. Then it's a simple case of calling the xmingw compiler, specifying the location of the include directory and the lib directory. Took me a while due to my man page problem and some reality TV show that I was, erm... forced *cough* to watch.

Thanks for your responses,
surge.


yes... but do you realize how blasphemouse what your doing is... not to mention my horrible speillingz :oops: :roll:
Back to top
View user's profile Send private message
surge
n00b
n00b


Joined: 21 Jan 2005
Posts: 14
Location: Sheffield, UK

PostPosted: Fri Nov 25, 2005 9:00 am    Post subject: Reply with quote

Our Tux, whose art is pixels,
Hallowed be thy kernel.
Thy features come.
Thy operations be done,
On ppc as it is in amd64.
Give us this day our daily dilbert.
And forgive us our cross compilations,
As we forgive those who withhold their source.
And lead us not into panics,
But deliver us from Microsoft.
For thine is the computer,
and the power management,
and the stability,
for ever and ever.
Daemon.
Back to top
View user's profile Send private message
deadstar
Guru
Guru


Joined: 02 Nov 2004
Posts: 319
Location: England

PostPosted: Fri Nov 25, 2005 1:47 pm    Post subject: Reply with quote

Daemon.
_________________
Hysteriagaming.co.uk is now DOT COM! New design, forum, articles, the works! http://www.hysteriagaming.com

(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum