Page 55 of 60

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 11:52 am
by MtM
RAH could you tell me where I'm doing something wrong with compiling, it will not go past the point I posted above?

wxWidgets compilation is throwing allot of errors ->

Code: Select all

>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(H:\wxWidgets-2.8.11\build\msw\.\..\..\lib\vc_lib\gl.lib) does not match the Library's OutputFile property value (H:\wxWidgets-2.8.11\lib\vc_lib\wxmsw28u_gl.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(gl) does not match the Library's OutputFile property value (wxmsw28u_gl). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
1>  wx_gl.vcxproj -> H:\wxWidgets-2.8.11\build\msw\.\..\..\lib\vc_lib\gl.lib
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(H:\wxWidgets-2.8.11\build\msw\.\..\..\lib\vc_lib\xrc.lib) does not match the Library's OutputFile property value (H:\wxWidgets-2.8.11\lib\vc_lib\wxmsw28u_xrc.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(xrc) does not match the Library's OutputFile property value (wxmsw28u_xrc). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
5>------ Build started: Project: xml, Configuration: Unicode Release Win32 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(H:\wxWidgets-2.8.11\build\msw\.\..\..\lib\vc_lib\richtext.lib) does not match the Library's OutputFile property value (H:\wxWidgets-2.8.11\lib\vc_lib\wxmsw28u_richtext.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
4>  wx_xrc.vcxproj -> H:\wxWidgets-2.8.11\build\msw\.\..\..\lib\vc_lib\xrc.lib
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(H:\wxWidgets-2.8.11\build\msw\.\..\..\lib\vc_lib\aui.lib) does not match the Library's OutputFile property value (H:\wxWidgets-2.8.11\lib\vc_lib\wxmsw28u_aui.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(aui) does not match the Library's OutputFile property value (wxmsw28u_aui). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(richtext) does not match the Library's OutputFile property value (wxmsw28u_richtext). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
Edit: think I found it, didn't give it enough time to make the changes to setup.h when I set it to /MT, so only a few projects were actually compiled correctly, now letting it do it's thing and not be to impatient :)

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 12:25 pm
by RAH
The only way I got it to work this far. I had to set up wxwidget 2.8.11 up with VS8. Then open it and chng to VS10 and compile.
Then compile wxcurl with VS10. Then compile fahmon with VS10. I put it in my fahmon folder, removed projects.dat, and started.
It just never opens. Will have to try a projects.htm, when I get back.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 12:32 pm
by MtM
I don't have 08, I compiled wxWidgets before with 10 but it just not being nice to me at all this time. I did found out why it didn't work, I even think I told UF what I had to do but I seem to have forgotten it myself :oops:

Now trying 'universal unicode release' instead of unicode release, judging from the ouptut I pasted above that might be it ;)

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 12:54 pm
by uncle_fungus
Clean wxwidgets compilation instructions:

(wxwidgets is "installed" to C:\wxWidgets-2.8.11\ on my machine)
  • Open C:\wxWidgets-2.8.11\build\msw\wx.dsw
  • Allow VS10 to convert the project files
  • Change the release type to'Unicode Release'
  • Select all the wx components in the solution explorer
  • Right-click->Properties->Configuration Properties->C/C++->Code Generation, Change the runtime Library to /MT (actually this is less important, as long as FahMon is built against the same runtime library)
  • Build->Build Solution

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:04 pm
by MtM
That's what I done but I can't get as far as RAH with getting fahmon to actually compile as it's complaining about 'LINK : fatal error LNK1181: cannot open input file 'wxmsw28u_core.lib''

I'll clean wxWidgets and try again.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:05 pm
by uncle_fungus
Ah. I think I've got it! Some of the agressive stripping I'm applying to the binary prior to linking isn't playing nice with Vista/Windows 7 and is actually causing DEP to kick in and the C++ runtime to crash.
If you remove the contents of fahmon/src/include/resource.h for VS10, then it compiles and runs correctly (at least it does on my VM).

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:05 pm
by uncle_fungus
MtM wrote:That's what I done but I can't get as far as RAH with getting fahmon to actually compile as it's complaining about 'LINK : fatal error LNK1181: cannot open input file 'wxmsw28u_core.lib''

I'll clean wxWidgets and try again.
If I were you I'd nuke WX and start from scratch.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:08 pm
by RAH
Well this is what I have so far.

Code: Select all

 aboutDialog.cpp
  base64Codec.cpp
  benchmark.cpp
  benchmarksDialog.cpp
  benchmarksManager.cpp
  client.cpp
  clientDialog.cpp
  clientHelperThread.cpp
  clientsManager.cpp
  core.cpp
  dataInputStream.cpp
  dataOutputStream.cpp
  eta.cpp
  fahlogAnalyzer.cpp
  firstTimeDialog.cpp
  ftpConnection.cpp
  htmlParser.cpp
  httpDownloader.cpp
  listViewClients.cpp
  main.cpp
  Compiling...
  mainDialog.cpp
  messagesFrame.cpp
  messagesManager.cpp
  multiProtocolFile.cpp
  pathManager.cpp
  preference.cpp
  preferencesDialog.cpp
  preferencesManager.cpp
  progressManager.cpp
  project.cpp
  projectHelperThread.cpp
  projectsManager.cpp
  queue.cpp
  staticBoldedText.cpp
  tinystr.cpp
  tinyxml.cpp
  tinyxmlerror.cpp
  tinyxmlparser.cpp
  tools.cpp
  trayManager.cpp
  Compiling...
  webMonitor.cpp
  workUnitFrame.cpp
  Generating code
  Finished generating code
aboutDialog.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
base64Codec.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
benchmark.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
benchmarksDialog.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
benchmarksManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
client.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
clientDialog.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
clientHelperThread.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
clientsManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
core.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
dataInputStream.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
dataOutputStream.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
eta.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
fahlogAnalyzer.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
firstTimeDialog.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
ftpConnection.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
htmlParser.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
httpDownloader.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
listViewClients.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
main.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
mainDialog.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
messagesFrame.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
messagesManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
multiProtocolFile.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
pathManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
preferencesDialog.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
preferencesManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
progressManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
project.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
projectHelperThread.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
projectsManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
queue.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
staticBoldedText.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
tools.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
trayManager.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
webMonitor.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
workUnitFrame.obj : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040) with different attributes
  fahmon.vcxproj -> C:\Users\Rick\Downloads\FahMon-2.3.99.2\FahMon-2.3.99.2\Release\fahmon.exe
But still won't start.
Error as far as I can tell, can be ignored.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:11 pm
by uncle_fungus
@RAH, Yes, that is what I'd expect. The LNK4254 warnings are the culprit in this case, as VS10 apparently does this differently to VS8. Remove the contents of resource.h, recompile and you won't get these warnings, and should get a working binary.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:15 pm
by uncle_fungus
I've uploaded my "working" binary here: http://fahmon.net/downloads/testing/fah ... ostrip.zip
If this does fix things (I.e it runs on Win7 and Vista) then I'll do a full rebuild and release again tonight.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 1:19 pm
by RAH
Ok! That seems to work. Got it running on W7 64. Will let it go while I'm out, and let you know if anything comes up.

OK, proj.htm built. Holding so far.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 3:11 pm
by PantherX
When I try to run the fahmon.exe on Windows 7 64 bit, I get:
The program can't start because MSVCP100.dll is missing from your computer. Try reinstalling the program to fix this problem
I guess I am doing something wrong :(

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 3:14 pm
by uncle_fungus
Yeah, I linked the test exe against the newest c++ runtime library. You will need to download it from here: http://www.microsoft.com/downloads/en/d ... 50143d5867

For release, I'll use the static library again.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 3:37 pm
by PantherX
It works after I installed both the 32 bit and 64 bit version of the C++ on my Windows 7 64 bit system. I also checked it on my Windows 32 bit system and it is working fine after I install the 32 bit version of C++. However, it doesn't show the bonus points so do I have to do something special for that? FYI, I exited the previous version of FahMon before starting the new one.

Re: FahMon (multi-platform app to monitor various F@h client

Posted: Tue Oct 19, 2010 3:42 pm
by uncle_fungus
Nope, should "just work", as long as the projects list is up to date.