Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 18th, 2005, 5:45 PM   #1
Oxygen
Newbie
 
Join Date: Sep 2005
Location: North East of England
Posts: 1
Rep Power: 0 Oxygen is on a distinguished road
Send a message via MSN to Oxygen
Arrow Compiling with KDevelop

Hey,

I just started coding, followed a few nice tutorials on the forum and they worked quite well.

Anyway I can compile programs in Linux with KDevelop. What I'm wondering is if there is a way to compile for Windows using KDevelop. Like a plugin or something?

Thanks,
Oxygen.
Oxygen is offline   Reply With Quote
Old Sep 18th, 2005, 5:55 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
You should be able to get the...Platform SDK I think from MS with all the headers and such that you need. You would just need to copy the executable to a Win machine or use Bochs or VMWare.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 18th, 2005, 6:35 PM   #3
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
You would have no way of running it on windows in that case, Dameon. You need to generate an executable for the target platform, not just use headers for that system.

You can get a cross-compiler package as a .deb (and in general, others, I'm sure) from synaptic if you use debian. I forget the name.

There's no direct way to cross-compile in a standard version of KDevelop afaik.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Sep 18th, 2005, 7:23 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Thank you for pointing out that that method would not work, my mistake. There are some cross compilation methods but you are right, they seem a tad cumbersome and perhaps impossible to do it directly from Kdevelop. It seems to be best to compile on the target platform if possible.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 19th, 2005, 10:20 AM   #5
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Erm, I'm quite sure you can compile a Win32 GUI application for Windows. KDevelop has a template for doing so, but i'm not exactly sure of the required external applications/libraries. Google around and you'll find something.
Cerulean is offline   Reply With Quote
Old Sep 19th, 2005, 1:03 PM   #6
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Ah, the word template rang a bell. I do believe you're right. There should be a template for it in the new project dialog for KDevelop, though you still need those tools I was talking about if you don't have them already.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:15 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC