How to run PicoScope6 under Wine?

Post your Linux discussions here
Post Reply
photony
Newbie
Posts: 0
Joined: Sat Apr 21, 2012 10:37 am

How to run PicoScope6 under Wine?

Post by photony »

Hi,
Is it possible to run PicoScope6 under Wine? I tried the instruction for PicoScope5 http://www.picotech.com/support/topic3909-15.html, but I encountered problems. I'm not sure should the instructions even work for PS6.

I'm running Ubuntu 10.04. The wine wrappers in the post mentioned above didn't compile and resulted in errors such as:

Code: Select all

Detecting directory for Wine libraries
Directory for Wine libraries: /usr/lib/wine
Compiling ps2000wine.o
ps2000wine.c:44:20: error: windef.h: No such file or directory
ps2000wine.c:45:21: error: winbase.h: No such file or directory
ps2000wine.c:46:24: error: wine/debug.h: No such file or directory
PS6 doesn't start if I try to run it with Wine. Is there anything that can be done?

If it's not possible to use PS6 with Wine, what software are you Linux users using? I have PicoScope2204 and would like to use the built in signal generator, which is not supported by PicoScope5 (if I've understood correctly).

Thanks for any help!


Tony

TinWhisker
Newbie
Posts: 0
Joined: Fri Dec 16, 2011 10:48 am

Re: How to run PicoScope6 under Wine?

Post by TinWhisker »

It looks as though Wine hasn't compiled fully.

Also, as PicoScope is .Net based, you will also need the .Net runtimes installed in Wine (.Net 2).

Being .Net, Mono should also be a possibility, but at this time it doesn't run - though it may just need some extra tweaking.
If it does, it'll run as a native app.

photony
Newbie
Posts: 0
Joined: Sat Apr 21, 2012 10:37 am

Re: How to run PicoScope6 under Wine?

Post by photony »

Thank you for the answer TinWhisker. I've used the .deb package to install Wine (on Ubuntu), so I'd expect it to installed properly. But I try to look into that and the .Net runtimes.

I had not heard about Mono before, but it sounds very interesting. That would be quite great if it would be possible to run PicoScope 6 natively. Do you think that it's possible? My error message for Mono was:

Code: Select all

tony@tony-desktop:~/.wine/drive_c/Program Files/Pico Technology/PicoScope6$ mono PicoScope.exe

** (PicoScope.exe:2075): WARNING **: The following assembly referenced from /home/tony/.wine/drive_c/Program Files/Pico Technology/PicoScope6/PicoScope.exe could not be loaded:
     Assembly:   PicoScopeApp    (assemblyref_index=1)
     Version:    6.6.18.8
     Public Key: d07fd3de7c3ccbb2
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/tony/.wine/drive_c/Program Files/Pico Technology/PicoScope6/).


** (PicoScope.exe:2075): WARNING **: Could not load file or assembly 'PicoScopeApp, Version=6.6.18.8, Culture=neutral, PublicKeyToken=d07fd3de7c3ccbb2' or one of its dependencies.

** (PicoScope.exe:2075): WARNING **: Missing method AppMain in assembly /home/tony/.wine/drive_c/Program Files/Pico Technology/PicoScope6/PicoScope.exe, type PicoScope.PicoApp

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'PicoScopeApp, Version=6.6.18.8, Culture=neutral, PublicKeyToken=d07fd3de7c3ccbb2' or one of its dependencies.
File name: 'PicoScopeApp, Version=6.6.18.8, Culture=neutral, PublicKeyToken=d07fd3de7c3ccbb2'
Does that make any sense?

Let's hope that some Mono expert on this forum gets interested and does his magic. Maybe be the developer team of PicoLabs could also help on this? ;) I think professionals would be very interested in this. At least on my work place, the main reason people are still using analog devices is that they don't want to use windows. Or don't have access to. Of course they could use something like Matlab to process the data, but still, a user friendly software is something they'd like to have.


-Tony

TinWhisker
Newbie
Posts: 0
Joined: Fri Dec 16, 2011 10:48 am

Re: How to run PicoScope6 under Wine?

Post by TinWhisker »

That's pretty much the stopping point for me too.

Although I haven't tried Wine yet, it is the 'most' likely at this moment in time to run PicoScope due to being able to use
the MS .Net runtimes and recreating windows quirks that PicoScope may rely on.

If PicoScope gets tweaked to be Linux friendly, there's a greater chance Mono will cope with it. Otherwise, there is/was an open Linux effort by another forum member, with a simple scope running on a 2000 series scope.

Once more drivers are released and others join the effort, that may be a good starting point.

jphartmann
Newbie
Posts: 0
Joined: Fri Dec 28, 2012 10:35 am

Re: How to run PicoScope6 under Wine?

Post by jphartmann »

If it is any help. I'm using Fedora 17.

Code: Select all

[/home/john/.wine/drive_c/Program Files/Pico Technology/PicoScope6] wine PicoScope.exe
fixme:thread:SetThreadStackGuarantee (0x32fc78): stub
err:ole:CoGetContextToken apartment not initialised
fixme:shell:URL_ParseUrl failed to parse L"PicoScopeApp"
fixme:shell:URL_ParseUrl failed to parse L"System.Configuration"
fixme:imm:ImmDisableIME (-1): stub
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime 2.0 Error Reporting"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00001388,(nil),0x000b,0x000000ec,0x3009a1b4,0x60c5d4): stub
err:eventlog:ReportEventW L"clr20r3"
err:eventlog:ReportEventW L"picoscope.exe"
err:eventlog:ReportEventW L"6.6.50.3"
err:eventlog:ReportEventW L"507ed0cc"
err:eventlog:ReportEventW L"picoscope"
err:eventlog:ReportEventW L"6.6.50.3"
err:eventlog:ReportEventW L"507ed0cc"
err:eventlog:ReportEventW L"2"
err:eventlog:ReportEventW L"0"
err:eventlog:ReportEventW L"system.io.filenotfoundexception"
err:eventlog:ReportEventW L"NIL"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub


Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Exception from HRESULT: 0x80070002
File name: 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at PicoScope.PicoApp.AppMain(String[] args, Boolean consoleMode)
   at a.a(String[] )

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

wine: Unhandled exception 0xe0434f4d at address 0x7b83a873 (thread 0024), starting debugger...
Unhandled exception: 0xe0434f4d in 32-bit code (0x7b83a873).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:7b83a873 ESP:0032e1d4 EBP:0032e238 EFLAGS:00200287(   - --  I S - -P-C)
 EAX:7b8268fd EBX:7b8adff4 ECX:80070002 EDX:0032e1f4
 ESI:e0434f4d EDI:e0434f4d
Stack dump:
0x0032e1d4:  0032e270 00000004 be07bdab e0434f4d
0x0032e1e4:  00000001 00000000 7b83a873 00000001
0x0032e1f4:  80070002 e0434f4d 0032e270 006c2010
0x0032e204:  02000036 0032e21c 79e814da 0032e228
0x0032e214:  02000036 00000001 0032e298 79e87ff4
0x0032e224:  0000012c 02de161c 7b83a82a 00159d68
Backtrace:
=>0 0x7b83a873 in kernel32 (+0x2a873) (0x0032e238)
  1 0x79f97065 in mscorwks (+0x127064) (0x0032e298)
  2 0x7a05b942 in mscorwks (+0x1eb941) (0x0032e2d4)
  3 0x7a05b9eb in mscorwks (+0x1eb9ea) (0x0032e300)
  4 0x7a05b9f6 in mscorwks (+0x1eb9f5) (0x0032e3e0)
  5 0x79e96791 in mscorwks (+0x26790) (0x0032e460)
  6 0x79061526 in mscorjit (+0x1525) (0x0032e4e4)
0x7b83a873: subl        $4,%esp
Modules:
Module  Address                 Debug info      Name (68 modules)
PE       2ee0000- 3322000       Deferred        picoscopeapp
PE      11000000-11018000       Deferred        picoscope
ELF     4128d000-4132d000       Deferred        libfreetype.so.6
ELF     4132f000-41341000       Deferred        libxext.so.6
ELF     4146b000-41475000       Deferred        libxrender.so.1
ELF     41477000-4147d000       Deferred        libxfixes.so.3
ELF     4147f000-4148f000       Deferred        libxi.so.6
ELF     41782000-4178b000       Deferred        libxrandr.so.2
ELF     418cf000-418e9000       Deferred        libice.so.6
ELF     419af000-419b3000       Deferred        libxinerama.so.1
ELF     41b19000-41b24000       Deferred        libxcursor.so.1
ELF     41b26000-41b2f000       Deferred        libsm.so.6
ELF     439f2000-439f8000       Deferred        libxxf86vm.so.1
ELF     43a15000-43a19000       Deferred        libxcomposite.so.1
ELF     4fc6c000-4fc89000       Deferred        libgcc_s.so.1
ELF     4fe2c000-4fe32000       Deferred        libuuid.so.1
ELF     4fe34000-4fe38000       Deferred        libxau.so.6
ELF     4fe3a000-4fe5c000       Deferred        libxcb.so.1
ELF     4fe5e000-4ff96000       Deferred        libx11.so.6
PE      5e380000-5e409000       Deferred        diasymreader
PE      78130000-781cb000       Deferred        msvcr80
PE      79000000-79045000       Deferred        mscoree
PE      79060000-790b3000       Export          mscorjit
PE      790c0000-794de000       Deferred        mscorlib
PE      79e70000-7a3d1000       Export          mscorwks
ELF     7b800000-7ba3e000       Dwarf           kernel32
  \-PE  7b810000-7ba3e000       \               kernel32
ELF     7bc00000-7bcd5000       Deferred        ntdll
  \-PE  7bc10000-7bcd5000       \               ntdll
ELF     7bf00000-7bf04000       Deferred        
ELF     7e209000-7e2d1000       Deferred        crypt32
  \-PE  7e210000-7e2d1000       \               crypt32
ELF     7e2d1000-7e313000       Deferred        rsaenh
  \-PE  7e2e0000-7e313000       \               rsaenh
ELF     7e313000-7e349000       Deferred        uxtheme
  \-PE  7e320000-7e349000       \               uxtheme
ELF     7e349000-7e44c000       Deferred        comctl32
  \-PE  7e350000-7e44c000       \               comctl32
ELF     7e44c000-7e676000       Deferred        shell32
  \-PE  7e460000-7e676000       \               shell32
ELF     7e6b7000-7e736000       Deferred        rpcrt4
  \-PE  7e6c0000-7e736000       \               rpcrt4
ELF     7e736000-7e861000       Deferred        ole32
  \-PE  7e750000-7e861000       \               ole32
ELF     7e861000-7e903000       Deferred        msvcrt
  \-PE  7e870000-7e903000       \               msvcrt
ELF     7e943000-7e9d5000       Deferred        winex11
  \-PE  7e950000-7e9d5000       \               winex11
ELF     7e9d5000-7e9ef000       Deferred        version
  \-PE  7e9e0000-7e9ef000       \               version
ELF     7e9ef000-7eb07000       Deferred        gdi32
  \-PE  7ea00000-7eb07000       \               gdi32
ELF     7eb07000-7ec5d000       Deferred        user32
  \-PE  7eb20000-7ec5d000       \               user32
ELF     7ec5d000-7ecd1000       Deferred        shlwapi
  \-PE  7ec70000-7ecd1000       \               shlwapi
ELF     7ecd1000-7ed3b000       Deferred        advapi32
  \-PE  7ece0000-7ed3b000       \               advapi32
ELF     7ed3b000-7ed5b000       Deferred        libtinfo.so.5
ELF     7ed5b000-7ed80000       Deferred        libncurses.so.5
ELF     7efbd000-7efe8000       Deferred        libm.so.6
ELF     b7491000-b749e000       Deferred        libnss_files.so.2
ELF     b74a0000-b74a5000       Deferred        libdl.so.2
ELF     b74a5000-b7657000       Deferred        libc.so.6
ELF     b7657000-b7671000       Deferred        libpthread.so.0
ELF     b7671000-b77b5000       Dwarf           libwine.so.1
ELF     b77ce000-b77ef000       Deferred        ld-linux.so.2
ELF     b77ef000-b77f0000       Deferred        [vdso].so

Post Reply