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

Title: Polonius (0.5) - now with added goodness
Post 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
Title: Polonius (0.5) - now with added goodness
Post by: Goober5000 on September 25, 2005, 09:12:07 pm
"Polonius"?
Title: Polonius (0.5) - now with added goodness
Post by: WMCoolmon on September 25, 2005, 09:26:52 pm
I used Laertes for the first FS2-related wxWidgets app?

I suppose VPMagus would be more in tune with my previous naming scheme. :p
Title: Polonius (0.5) - now with added goodness
Post by: WMCoolmon on September 30, 2005, 07:34:47 pm
*Bump*

Everyone using VPCS2 or something? :nervous:
Title: Polonius (0.5) - now with added goodness
Post by: Fractux on October 01, 2005, 11:38:57 am
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!
Title: Re: Polonius (0.5) - now with added goodness
Post by: Amon_Re on November 13, 2005, 06:51:57 am
(http://fs2source.warpcore.org/screenshots/polonius.png)

Well, go on now! Get to it! :p

I'd love too... link?
Title: Re: Polonius (0.5) - now with added goodness
Post by: WMCoolmon on November 13, 2005, 12:29:32 pm
It was an attachment, so it didn't carry over with the board move. :p

Here:

http://fs2source.warpcore.org/temp/polonius.zip
Title: Re: Polonius (0.5) - now with added goodness
Post by: Mr_Maniac on November 19, 2005, 10:02:10 am
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)...
Title: Re: Polonius (0.5) - now with added goodness
Post by: Christoph_Berg on November 20, 2005, 12:43:00 pm
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.
Title: Re: Polonius (0.5) - now with added goodness
Post by: Mr_Maniac on November 20, 2005, 02:00:14 pm
That's right...
My wxGTK IS an unicode-build...
My whole System is unicoded ;)
Hmm... Okay.... Thanks for the info!
Title: Re: Polonius (0.5) - now with added goodness
Post by: WMCoolmon on November 20, 2005, 02:32:26 pm
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).
Title: Re: Polonius (0.5) - now with added goodness
Post by: Christoph_Berg on November 21, 2005, 07:46:57 am
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)
Title: Re: Polonius (0.5) - now with added goodness
Post by: Mr_Maniac on December 09, 2005, 01:35:08 pm
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
Code: [Select]
WXCFLAGS=$(shell /usr/bin/wxgtk2-2.4-config --cflags --libs)and replaced the whole
Code: [Select]
`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`...