OpenAlchemist !

You are not logged in.

Announcement

Registrations are currently closed, because of too much spam. We are looking for a solution.

#1 2009-02-26 17:15:09

Gecko667
Member
Registered: 2009-02-26
Posts: 21

Compilation on win32

I all,

I tried to rebuild OpenAlchemist on win32 (yes I know shame on me... sad ) and it is a complete nightmare.

I gathered all the required libraries that ClanLib needs.

Now I'm stuck with the ClanDisplay lib because this one seems to use DirectX8 SDK files or lib but I have DirectX 9.0c.

So I am not able to find how to compile display_window_win32.cpp properly. (Because of LPDIRECTINPUT8 definition)

I found some advices on including Dinput8.h instead of Dinput.h but I cannot find this header.

Could you please give a hand one this?

Does the person who made portage on win32 can give me where he get his/her sources?

Maybe it could be usefull to add sort of package containing lib needed to download on your website for the win32 compilation (or maybe not tongue)

Thank you for your help

Offline

 

#2 2009-02-26 23:11:40

Keph
Developer / Moderator
From: Paris
Registered: 2008-07-18
Posts: 79
Website

Re: Compilation on win32

I have .lib files for clanlib that I compiled some time ago, I send you it tomorow, and if I forget, feel free to remind me !

Offline

 

#3 2009-02-27 11:00:46

Gecko667
Member
Registered: 2009-02-26
Posts: 21

Re: Compilation on win32

Thanks a lot!

Offline

 

#4 2009-02-28 00:23:47

Keph
Developer / Moderator
From: Paris
Registered: 2008-07-18
Posts: 79
Website

Re: Compilation on win32

OK, so here are the clanlib compiled files and here are the compiled clanlib dependances.

It's compiled with and for Visual Studio 2008 Express. I don't know if it will work with other compilers.

Download it and then follow this instructions :

ClanLib instructions wrote:

1.  Select File->New...
2.  Select Projects->Win32 Application, and specify where you want it located.
3.  Select "An empty project", and press OK till you're finished with the wizard.
4.  Select Project->Settings...
     Notice there are several configurations in which you can modify settings.
     Normally, these are 'Win32 Debug' and 'Win32 Release'. You switch between
     these in the 'Settings for:' droplist.
     In section 5 and 6 below, you need to modify both these settings
     (sections a for release setting, and sections b for debug settings).
5.  Select the 'C/C++' tab, and then Category 'Code Generation'
5a. For Release version, change the 'Use run-time library' to Multithreaded.
5b. For Debug version, change the 'Use run-time library' to Debug Multithreaded.

Then, my instructions :
* Add the include and lib folders of my .zip(s) in the project propreties (C++/Others Includes and Linker/Others libs).
* Add all the source files of OpenAlchemist in your project.
* Compile


* Switch to Linux, where it's realy easier ! (apt-get install libclanlib-dev)

Actually, I have the same problem as you with dinput.lib...

Offline

 

#5 2009-03-01 10:17:30

Gecko667
Member
Registered: 2009-02-26
Posts: 21

Re: Compilation on win32

Thank you very much for your time and your concern.

Actually I already have done steps 1 to 5 and I was adding libs on the linker demands tongue , and so compiled them one by one this way...

I will try that as soon as I can but my version of visual is 6.0, I hope this could work.

In fact, in the mean time, I switched to linux as I just re-installed an ubuntu mint version. So I think that I will begin by try it on linux first.

Thank you again

Offline

 

#6 2009-03-02 21:32:37

Gecko667
Member
Registered: 2009-02-26
Posts: 21

Re: Compilation on win32

Ok, then, I tried the compiled library that you gave me on win32 and it does not seem to work... I did not try really hard but there were so many linking problem that I gived up on this side...

I tried on my ubuntu and I bless the guy who has got one blessed day the idea of "apt-get" ... Need a library, pff too easy big_smile

Now I have Clanlib correctly installed I am able to recompile the source code !

Offline

 

#7 2009-03-04 20:44:53

Keph
Developer / Moderator
From: Paris
Registered: 2008-07-18
Posts: 79
Website

Re: Compilation on win32

Finally, it seems working with old DirectX SDK (march instead of november 08).

Offline

 

Board footer

Powered by FluxBB