![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
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. |
|
|
|
|
|
#2 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#3 |
|
Professional Programmer
|
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;} |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#6 |
|
Professional Programmer
|
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;} |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|