Re: [Kicad-developers] MSVC compile: missing s3d_plugin_oce.dll

2020-11-21 Thread Mark Roszko
If the kiface file exists in that path, the failure to load is because you
are missing more dependencies in the install\bin folder that need to be
copied from vcpkg debug\bin or bin.


On Sat, Nov 21, 2020 at 3:00 AM  wrote:

> I got it sorted out, partially. After copying the right jpeg62.dll and
> lzmad.dll to the install directory for debug, KiCad started all right.
>
> When starting eeschema or pcbnew or anything loaded by kiway.cpp, I get an
> error about failing *.kiface to load.
>
> Debugging showed that in wxDynamicLibrary::Load, RawLoad is called with
> the correct path (in my case
> 
>
> but that returns NULL, as it fails to load the library. Unfortunately,
> RawLoad does not provide any error codes.
>
> Is this the bug you mentioned? But then, the path passed to RawLoad is
> correct, so I do not see what can be wrong here. Other modules like ntdll,
> comctrl32 e.a. are loaded ok.
>
> Only thing I can image is that – out of the blue - there’s a problem with
> the path string. Is it a MSVC specific thing (the nightlies obviously are
> built all right)? Ok, the nightlies are built with wxwidgets 3.0.5
>
> and I'm on wxwidgets 3.1.4. But one week or so ago, everything was ok.
> Trouble started after upgrading vcpkg.
>
> -Martin
>
>
>
> *Von:* Mark Roszko 
> *Gesendet:* 16 November 2020 20:56
> *An:* deve...@worldinone.at
> *Betreff:* Re: [Kicad-developers] MSVC compile: missing s3d_plugin_oce.dll
>
>
>
> Probably a few weeks waitI have it on my queue to revisit vcpkg at
> some point and upstream also takes time to merge fixes.
>
>
>
> It's just easier to copy the DLLs like I noted.
>
>
>
> On Mon, Nov 16, 2020 at 2:45 PM  wrote:
>
> Ok. Can you notify me when it’s fixed? Thanks a lot!
>
> -Martin
>
>
>
> *Von:* Mark Roszko 
> *Gesendet:* Montag, 16. November 2020 20:14
> *An:* deve...@worldinone.at
> *Cc:* KiCad Developers 
> *Betreff:* Re: [Kicad-developers] MSVC compile: missing s3d_plugin_oce.dll
>
>
>
> Ah it's a bug in vcpkg I need to fix upstream.
>
>
>
> For now you'll need to include in your kicad install folder for debug, the
> non-debug versions of freetype, zlib, bz2 and libpng
>
>
>
> On Mon, Nov 16, 2020 at 1:44 PM Mark Roszko  wrote:
>
> Ah I've been meaning to fix that. There's something wrong with the
> compilation settings and/or wxdynamiclibrary loader that's causing it not
> to load DLLs from the application's executable directory, very specifically
> for the OCE plugin.
>
>
>
> On Mon, Nov 16, 2020 at 6:22 AM  wrote:
>
> Compiling the current source (7043) with MSVC and the proposed
> CMakeSettings.json I get a missing s3d_plugin_oce.dll error when starting
> the 3D viewer.
>
> What is wrong here?
>
>
>
> -Martin.
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> --
>
> Mark
>
>
>
>
> --
>
> Mark
>
>
>
>
> --
>
> Mark
>


-- 
Mark
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] MSVC compile: missing s3d_plugin_oce.dll

2020-11-21 Thread develop
I got it sorted out, partially. After copying the right jpeg62.dll and 
lzmad.dll to the install directory for debug, KiCad started all right.

When starting eeschema or pcbnew or anything loaded by kiway.cpp, I get an 
error about failing *.kiface to load.

Debugging showed that in wxDynamicLibrary::Load, RawLoad is called with the 
correct path (in my case 


but that returns NULL, as it fails to load the library. Unfortunately, RawLoad 
does not provide any error codes.

Is this the bug you mentioned? But then, the path passed to RawLoad is correct, 
so I do not see what can be wrong here. Other modules like ntdll, comctrl32 
e.a. are loaded ok.

Only thing I can image is that – out of the blue - there’s a problem with the 
path string. Is it a MSVC specific thing (the nightlies obviously are built all 
right)? Ok, the nightlies are built with wxwidgets 3.0.5

and I'm on wxwidgets 3.1.4. But one week or so ago, everything was ok. Trouble 
started after upgrading vcpkg.

-Martin

 

Von: Mark Roszko  
Gesendet: 16 November 2020 20:56
An: deve...@worldinone.at
Betreff: Re: [Kicad-developers] MSVC compile: missing s3d_plugin_oce.dll

 

Probably a few weeks waitI have it on my queue to revisit vcpkg at some 
point and upstream also takes time to merge fixes.

 

It's just easier to copy the DLLs like I noted.

 

On Mon, Nov 16, 2020 at 2:45 PM mailto:deve...@worldinone.at> > wrote:

Ok. Can you notify me when it’s fixed? Thanks a lot!

-Martin

 

Von: Mark Roszko mailto:mark.ros...@gmail.com> > 
Gesendet: Montag, 16. November 2020 20:14
An: deve...@worldinone.at  
Cc: KiCad Developers mailto:kicad-developers@lists.launchpad.net> >
Betreff: Re: [Kicad-developers] MSVC compile: missing s3d_plugin_oce.dll

 

Ah it's a bug in vcpkg I need to fix upstream.

 

For now you'll need to include in your kicad install folder for debug, the 
non-debug versions of freetype, zlib, bz2 and libpng

 

On Mon, Nov 16, 2020 at 1:44 PM Mark Roszko mailto:mark.ros...@gmail.com> > wrote:

Ah I've been meaning to fix that. There's something wrong with the compilation 
settings and/or wxdynamiclibrary loader that's causing it not to load DLLs from 
the application's executable directory, very specifically for the OCE plugin.

 

On Mon, Nov 16, 2020 at 6:22 AM mailto:deve...@worldinone.at> > wrote:

Compiling the current source (7043) with MSVC and the proposed 
CMakeSettings.json I get a missing s3d_plugin_oce.dll error when starting the 
3D viewer.

What is wrong here?

 

-Martin.

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net 
 
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp




 

-- 

Mark




 

-- 

Mark




 

-- 

Mark

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp