Running video server(mfc-based) on wine - errors

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
shavkat14
Newbie
Newbie
Posts: 1
Joined: Mon Sep 02, 2013 11:30 pm

Running video server(mfc-based) on wine - errors

Post by shavkat14 »

Hello dear wine enthusiasts and experts. I would appreciate if anyone could help with this problem. I am currently trying to port our custom made video management/converter server (for cctv system) into Linux using wine/winelib.
VMCS has following features
~ based on MFC and has one gui dialog form to show statistics and do some configuration
~ uses windows sockets which connects to another serves and accepts clients
~ uses win threads
~ uses windows critical section locking
~ does have several Dll and .lib files for video/audio encoding
~ mfc strings, visual c data types, structures etc

I tried to load and run the exe with wine loader but receiving following error.
---------------------------------------------------------------------------------------------------
/Dlls_removed/Release$ wine CctvConvert.exe

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
fixme:advapi:RegisterEventSourceW ((null),L"PDH"): stub
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
=============================================
unhandled excetpion triggerd! writing dump...
=============================================
err:dbghelp:pe_load_dbg_file Couldn't find .DBG file "COMCTL32.dbg" ("\x14")
err:dbghelp:pe_load_dbg_file Couldn't find .DBG file "dll\\pdh.dbg" ("\x14")
fixme:dbghelp_msc:pdb_parse_cmd_string Couldn't evaluate "$T0 .raSearch = $eip $T0 ^ = $esp $T0 4 + =" => get_zvalue: no value found (.raSearch)
fixme:dbghelp_msc:pdb_parse_cmd_string Couldn't evaluate "$T0 .raSearch = $eip $T0 ^ = $esp $T0 4 + =" => get_zvalue: no value found (.raSearch)
-----------------------------------------------------------------------------------------------
it seems that error might be connected with windows common controls and performance counter plugin ... but can't track the reason.... :oops:

I tried stripping down most dependent codec Dlls files for which had no source, only leaving couple of rtsp support and then run with wine. Didn't help. Shows same errors as above.
Also I tried to compile my source against WineLib using winebuild, winegcc, winemaker etc. It generates empty spec file and such error as "doesn't have mfc90u.dll.so" file so i wasnt able to do that. No mfc dll included due to 'stupid' mfc licence policy.
I guess first in order to compile with winelib it first should be able to run on wine.
So if there is anyone who had similar problems and found solution please give a hint/help. :idea: How to remove those errors.
I know it is possible to run mfc application because previously I run a more simple custom mfc server app using wine.
Excuse for a long text :) :D
Locked