Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: WMCoolmon on September 25, 2005, 07:32:47 pm
-
(http://fs2source.warpcore.org/screenshots/polonius.png)
Well, go on now! Get to it! :p
Edit: http://fs2source.warpcore.org/temp/polonius.zip
-
"Polonius"?
-
I used Laertes for the first FS2-related wxWidgets app?
I suppose VPMagus would be more in tune with my previous naming scheme. :p
-
*Bump*
Everyone using VPCS2 or something? :nervous:
-
Thanks for the tool WM.
I'ce previously been using DMTOOLS browser through wine, but there are some problems using it that way.
This is great. Keep it up!
Cheers!
-
(http://fs2source.warpcore.org/screenshots/polonius.png)
Well, go on now! Get to it! :p
I'd love too... link?
-
It was an attachment, so it didn't carry over with the board move. :p
Here:
http://fs2source.warpcore.org/temp/polonius.zip
-
Hi.
I just wanted to say, that I get errors when building polonius or wxFRED2. These errors are the same in both apps...
The CFLAGS WXCFLAGS etc. ARE correct...
And those apps are the only ones that give me errors like this...
Here are the error-messages:
Error with wxWindows 2.4 (http://home.arcor.de/mr_maniac/ANDERES/Linux/error-2.4.txt)
Error with wxWindows 2.6 (http://home.arcor.de/mr_maniac/ANDERES/Linux/error-2.6.txt)
I have both wxWindows 2.4 and 2.6 on my PC... With seperate wx-configs... (wx-config for 2.4 and wx-config-2.6)...
-
Hey Mr_Maniac and WMCoolmon,
You didn't compile wxWidgets with "--enable-unicode", did you?
Because I experienced those errors mentioned by you, but in greater numbers when compiled with unicode support.
Try adding wxT() around the strings and look if it helps.
I made a patch for the polonius.cpp file, but I could only correct it in places without concating two or more strings together.
Hope this helps, because it seems to me, that most if not every wxWidgets application in this forum doesn't like unicode wxWidgets builds.
-
That's right...
My wxGTK IS an unicode-build...
My whole System is unicoded ;)
Hmm... Okay.... Thanks for the info!
-
Hey Mr_Maniac and WMCoolmon,
You didn't compile wxWidgets with "--enable-unicode", did you?
Because I experienced those errors mentioned by you, but in greater numbers when compiled with unicode support.
Try adding wxT() around the strings and look if it helps.
I made a patch for the polonius.cpp file, but I could only correct it in places without concating two or more strings together.
Hope this helps, because it seems to me, that most if not every wxWidgets application in this forum doesn't like unicode wxWidgets builds.
I was definitely sloppy about the wxT() thing, so that could be it.
But, are you saying that I'd have to add wxT() around everything? AFAIK I only needed to use it when passing a var to a wxWidgets function. (Although since it worked without, I kept it out to keep the code cleaner).
-
Well, just look at the make output, in the link below. As I said before, I added wxT macros, where I found it easy to correct the errors. I can send you the patch, so you can spare a few parts adding wxT to.
make.log with wxWidgets 2.6.2 (http://www.kpm-sport.de/make.log)
-
Gentoo installs wxGTK 2.4 and 2.6 with unicode AND ansi-support...
So I only have to select the right wx-config...
And so I was able to compile polonius :)
But wxFRED2... Well...
It compiles but it won't link...
Oh... And how about changeing the Makefile a bit?
I added a variable
WXCFLAGS=$(shell /usr/bin/wxgtk2-2.4-config --cflags --libs)
and replaced the whole
`wx-config --cflags --libs`
with it...
It didn't seem to work anyway... gcc didn't show the CFLAGS and LDFLAGS from wxGTK, it showed the `wx-config --cflags --libs`...