4.0.0 RC1 cannot find help
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Brian Sidebotham | ||
4.0 |
Fix Released
|
Undecided
|
Brian Sidebotham |
Bug Description
On Windows the 4.0.0 RC1 install cannot find it's own help.
The help is at C:\Program Files\KiCad\
The searched paths are like this:
Path
C:\msys64\mingw64
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad\
C:\Program Files\KiCad
C:\Program Files\KiCad\
C:\Program Files\KiCad
It looks like a two-fold problem. The packaging is putting the docs
under share\doc... where I guess it should be share\kicad\doc along
with everything else shared for KiCad.
Secondly the paths being search by the program include
share\kicad\
\share\kicad\doc...
The version information:
Application: kicad
Version: 4.0.0-rc1-stable release build
wxWidgets: Version 3.0.2 (debug,
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.57.0
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1496049] [NEW] 4.0.0 RC1 cannot find help | #1 |
Brian Sidebotham (brian-sidebotham) wrote : | #2 |
kicad/kicad.cpp:133 ( https:/
Looks like there we have to also add in the missing links because KiCad is not a KiFace and therefore setSearchPaths() in common/kiface_i.cpp isn't used here. Although that looks wrong too because I don't see any doc or help subdir added for either PCB or SCH.
I'll investigate and fix.
I think we should ratify the directories a bit and make sure under Linux and Windows the help is under ./share/
Brian Sidebotham (brian-sidebotham) wrote : Re: [Bug 1496049] Re: 4.0.0 RC1 cannot find help | #3 |
Ah, sorry ignore that first but where pcb and sch look wrong too because
that's obviously not where the doc and help directories are added to the
search path.
On 15 Sep 2015 22:00, "Brian Sidebotham" <email address hidden> wrote:
> kicad/kicad.cpp:133 ( https:/
> mirror/
>
> Looks like there we have to also add in the missing links because KiCad
> is not a KiFace and therefore setSearchPaths() in common/kiface_i.cpp
> isn't used here. Although that looks wrong too because I don't see any
> doc or help subdir added for either PCB or SCH.
>
> I'll investigate and fix.
>
> I think we should ratify the directories a bit and make sure under Linux
> and Windows the help is under ./share/
> reasonable? because at the moment they're in an ever-so-slightly
> different structure to each other. This change would basically align
> Windows with Linux, so Linux stays the same and Windows aligns with it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> 4.0.0 RC1 cannot find help
>
> Status in KiCad:
> New
> Status in KiCad 4.0 series:
> New
>
> Bug description:
> On Windows the 4.0.0 RC1 install cannot find it's own help.
>
> The help is at C:\Program
> Files\KiCad\
>
> The searched paths are like this:
>
> Path
> C:\msys64\mingw64
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program...
Brian Sidebotham (brian-sidebotham) wrote : | #4 |
I'll build and test a fix tonight. Takes ages to build and test changes on Windows!
Wayne Stambaugh (stambaughw) wrote : | #5 |
@Brian, I've been playing around with this on my system and I'm not
seeing this issue as long as the pdf files are installed in
$CMAKE_
locale. All of this was done with the legacy kicad-doc repo so maybe
that's why it still works for me. One thing I did notice in the new
documentation source on github is there does not appear to be an install
macro called to be able to run `make install`. Is the case or am I
missing something?
On 9/16/2015 4:16 AM, Brian Sidebotham wrote:
> I'll build and test a fix tonight. Takes ages to build and test changes
> on Windows!
>
Brian Sidebotham (brian-sidebotham) wrote : | #6 |
Perhaps this is just purely a packaging issue then. I will so some
testing tonight by moving the docs. I didn't bother because the path
didn't appear to get searched.
On 16 September 2015 at 15:08, Wayne Stambaugh
<email address hidden> wrote:
> @Brian, I've been playing around with this on my system and I'm not
> seeing this issue as long as the pdf files are installed in
> $CMAKE_
> locale. All of this was done with the legacy kicad-doc repo so maybe
> that's why it still works for me. One thing I did notice in the new
> documentation source on github is there does not appear to be an install
> macro called to be able to run `make install`. Is the case or am I
> missing something?
>
> On 9/16/2015 4:16 AM, Brian Sidebotham wrote:
>> I'll build and test a fix tonight. Takes ages to build and test changes
>> on Windows!
>>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> 4.0.0 RC1 cannot find help
>
> Status in KiCad:
> New
> Status in KiCad 4.0 series:
> New
>
> Bug description:
> On Windows the 4.0.0 RC1 install cannot find it's own help.
>
> The help is at C:\Program
> Files\KiCad\
>
> The searched paths are like this:
>
> Path
> C:\msys64\mingw64
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
Wayne Stambaugh (stambaughw) wrote : | #7 |
I've taken a closer look at the list of paths you posted and something
is very wrong here. All of the possible sub-paths listed in the subdirs
wxArrayString defined in the SearchHelpFileF
in your list of paths. Below is this what my msys2/mingw64 build
generates after adding some debugging output to the
FindFileInSearc
Checking SEARCH_STACK for kicad in paths:
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
C:\
On 9/16/2015 11:28 AM, Brian Sidebotham wrote:
> Perhaps this is just purely a packaging issue then. I will so some
> testing tonight by moving the docs. I didn't bother because the path
> didn't appear to get searched.
>
> On 16 September 2015 at 15:08, Wayne Stambaugh
> <email address hidden> wrote:
>> @Brian, I've been playing around with this on my system and I'm not
>> seeing this issue as long as the pdf files are installed in
>> $CMAKE_
>> locale. All of this was done with the legacy kicad-doc repo so maybe
>> that's why it still works for me. One thing I did notice in the new
>> documentation source on github is there does not appear to be an install
>> macro called to be able to run `make install`. Is the case or am I
>> missing something?
>>
>> On 9/16/2015 4:16 AM, Brian Sidebotham wrote:
>>> I'll build and test a fix tonight. Takes ages to build and test changes
>>> on Windows!
>>>
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https:/
>>
>> Title:
>> 4.0.0 RC1 cannot find help
>>
>> Status in KiCad:
>> New
>> Status in KiCad 4.0 series:
>> New
>>
>> Bug description:
>> On Windows the 4.0.0 RC1 install cannot find it's own help.
>>
>> The help is at C:\Program
>> Files\KiCad\
>>
>> The searched paths are like this:
>>
>> Path
>> C:\msys64\
Brian Sidebotham (brian-sidebotham) wrote : | #8 |
But what happens when you install 4.0.0-RC1? That's the problem here,
or more importantly when you install 4.0.0-RC1 and don't have the
C:\msys64\mingw64 directory.
I guess everything you have has successfully keyed off of
${CMAKE_
to c:\msys64\mingw64 - which doesn't exist on my Windows 10 machine.
For example, if I create the C:\msys64\mingw64 directory the correct
set of folders is searched under that directory. That's great if you
can specify the installation folder at compile-time, but that's
obviously not possible when using a Windows installer, the installer
sets the installation path. You must use relative paths from the exe
to be sure you're searching in the right place IMO, but we appear to
be guessing ( There's comments through this code that use the word
guess! ) as to where the help files are...
It's crazy that a program installed in C:\Program Files\KiCad\bin
searches for its help files first and foremost under
c:\msys64\mingw64, who is expecting that? Why are we searching there
at all in a windows install? Perhaps that's just a packaging thing
again. It's so easy to search relative to the current binary, I just
don't understand why it's been complicated beyond belief to find a
help file....
Can we at least have the most important search as relative to the
current binary's dir?
On 16 September 2015 at 19:32, Wayne Stambaugh
<email address hidden> wrote:
> I've taken a closer look at the list of paths you posted and something
> is very wrong here. All of the possible sub-paths listed in the subdirs
> wxArrayString defined in the SearchHelpFileF
> in your list of paths. Below is this what my msys2/mingw64 build
> generates after adding some debugging output to the
> FindFileInSearc
>
> Checking SEARCH_STACK for kicad in paths:
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
> C:\msys64\
Wayne Stambaugh (stambaughw) wrote : | #9 |
Did you set -DDEFAULT_
configured your build? DEFAULT_
allow for decoupling the build install path versus the installer package
install path. By default, DEFAULT_
don't specify it. The the case of the windows installer, you should set
DEFAULT_
On 9/16/2015 4:47 PM, Brian Sidebotham wrote:
> But what happens when you install 4.0.0-RC1? That's the problem here,
> or more importantly when you install 4.0.0-RC1 and don't have the
> C:\msys64\mingw64 directory.
>
> I guess everything you have has successfully keyed off of
> ${CMAKE_
> to c:\msys64\mingw64 - which doesn't exist on my Windows 10 machine.
>
> For example, if I create the C:\msys64\mingw64 directory the correct
> set of folders is searched under that directory. That's great if you
> can specify the installation folder at compile-time, but that's
> obviously not possible when using a Windows installer, the installer
> sets the installation path. You must use relative paths from the exe
> to be sure you're searching in the right place IMO, but we appear to
> be guessing ( There's comments through this code that use the word
> guess! ) as to where the help files are...
>
> It's crazy that a program installed in C:\Program Files\KiCad\bin
> searches for its help files first and foremost under
> c:\msys64\mingw64, who is expecting that? Why are we searching there
> at all in a windows install? Perhaps that's just a packaging thing
> again. It's so easy to search relative to the current binary, I just
> don't understand why it's been complicated beyond belief to find a
> help file....
>
> Can we at least have the most important search as relative to the
> current binary's dir?
>
> On 16 September 2015 at 19:32, Wayne Stambaugh
> <email address hidden> wrote:
>> I've taken a closer look at the list of paths you posted and something
>> is very wrong here. All of the possible sub-paths listed in the subdirs
>> wxArrayString defined in the SearchHelpFileF
>> in your list of paths. Below is this what my msys2/mingw64 build
>> generates after adding some debugging output to the
>> FindFileInSearc
>>
>> Checking SEARCH_STACK for kicad in paths:
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
>> C:\msys64\
Brian Sidebotham (brian-sidebotham) wrote : | #10 |
I installed 4.0.0-RC1, like a user. I didn't create the package, but
perhaps it was generated with KiCad-Winbuilder, I think Nick was
getting Winbuilder ready so it could create the KiCad Windows
installers. I've not been on Windows for some time now.
The simplest "quick" fix is to set an environment variable, KICAD to
the KiCad install path, i.e. if using the default install path:
"C:\Program Files\KiCad" then the help search works of course.
In the installer someone can pick another place to install KiCad, so
it's not really something you can set at all reliably at compile time.
However, a plaster over the problem at least gets it working for
people. Setting the KICAD env var upon install to the installation
path would be a fix that works at least. I don't think that should
affect the search paths for other things adversely will it?
On 16 September 2015 at 22:01, Wayne Stambaugh
<email address hidden> wrote:
> Did you set -DDEFAULT_
> configured your build? DEFAULT_
> allow for decoupling the build install path versus the installer package
> install path. By default, DEFAULT_
> don't specify it. The the case of the windows installer, you should set
> DEFAULT_
>
> On 9/16/2015 4:47 PM, Brian Sidebotham wrote:
>> But what happens when you install 4.0.0-RC1? That's the problem here,
>> or more importantly when you install 4.0.0-RC1 and don't have the
>> C:\msys64\mingw64 directory.
>>
>> I guess everything you have has successfully keyed off of
>> ${CMAKE_
>> to c:\msys64\mingw64 - which doesn't exist on my Windows 10 machine.
>>
>> For example, if I create the C:\msys64\mingw64 directory the correct
>> set of folders is searched under that directory. That's great if you
>> can specify the installation folder at compile-time, but that's
>> obviously not possible when using a Windows installer, the installer
>> sets the installation path. You must use relative paths from the exe
>> to be sure you're searching in the right place IMO, but we appear to
>> be guessing ( There's comments through this code that use the word
>> guess! ) as to where the help files are...
>>
>> It's crazy that a program installed in C:\Program Files\KiCad\bin
>> searches for its help files first and foremost under
>> c:\msys64\mingw64, who is expecting that? Why are we searching there
>> at all in a windows install? Perhaps that's just a packaging thing
>> again. It's so easy to search relative to the current binary, I just
>> don't understand why it's been complicated beyond belief to find a
>> help file....
>>
>> Can we at least have the most important search as relative to the
>> current binary's dir?
>>
>> On 16 September 2015 at 19:32, Wayne Stambaugh
>> <email address hidden> wrote:
>>> I've taken a closer look at the list of paths you posted and something
>>> is very wrong here. All of the possible sub-paths listed in the subdirs
>>> wxArrayString defined in the SearchHelpFileF
>>> in your list of paths. ...
Nick Østergaard (nickoe) wrote : | #11 |
The current option is -DDEFAULT_
I guess that is not ideal. But my problem is indeed as Brian mentions,
the path can be changed by the user installing the application. This
is how every windows persion expects a windows installer to work.
Setting a static absolute path is not ideal.
This KICAD env var that Brian mentions, does this exist already? (I
have not looked at the search stack code)
2015-09-16 23:19 GMT+02:00 Brian Sidebotham <email address hidden>:
> I installed 4.0.0-RC1, like a user. I didn't create the package, but
> perhaps it was generated with KiCad-Winbuilder, I think Nick was
> getting Winbuilder ready so it could create the KiCad Windows
> installers. I've not been on Windows for some time now.
>
> The simplest "quick" fix is to set an environment variable, KICAD to
> the KiCad install path, i.e. if using the default install path:
> "C:\Program Files\KiCad" then the help search works of course.
>
> In the installer someone can pick another place to install KiCad, so
> it's not really something you can set at all reliably at compile time.
> However, a plaster over the problem at least gets it working for
> people. Setting the KICAD env var upon install to the installation
> path would be a fix that works at least. I don't think that should
> affect the search paths for other things adversely will it?
>
> On 16 September 2015 at 22:01, Wayne Stambaugh
> <email address hidden> wrote:
>> Did you set -DDEFAULT_
>> configured your build? DEFAULT_
>> allow for decoupling the build install path versus the installer package
>> install path. By default, DEFAULT_
>> don't specify it. The the case of the windows installer, you should set
>> DEFAULT_
>>
>> On 9/16/2015 4:47 PM, Brian Sidebotham wrote:
>>> But what happens when you install 4.0.0-RC1? That's the problem here,
>>> or more importantly when you install 4.0.0-RC1 and don't have the
>>> C:\msys64\mingw64 directory.
>>>
>>> I guess everything you have has successfully keyed off of
>>> ${CMAKE_
>>> to c:\msys64\mingw64 - which doesn't exist on my Windows 10 machine.
>>>
>>> For example, if I create the C:\msys64\mingw64 directory the correct
>>> set of folders is searched under that directory. That's great if you
>>> can specify the installation folder at compile-time, but that's
>>> obviously not possible when using a Windows installer, the installer
>>> sets the installation path. You must use relative paths from the exe
>>> to be sure you're searching in the right place IMO, but we appear to
>>> be guessing ( There's comments through this code that use the word
>>> guess! ) as to where the help files are...
>>>
>>> It's crazy that a program installed in C:\Program Files\KiCad\bin
>>> searches for its help files first and foremost under
>>> c:\msys64\mingw64, who is expecting that? Why are we searching there
>>> at all in a windows install? Perhaps that's just a packaging thing
>>> again. It's so easy to search relat...
Brian Sidebotham (brian-sidebotham) wrote : | #12 |
Hi Nick, yes already exists:
https:/
It's the first path used in the search, so the installer can set it
and fix this problem without changing the current code.
On 16 September 2015 at 22:30, Nick Østergaard
<email address hidden> wrote:
> The current option is -DDEFAULT_
>
> I guess that is not ideal. But my problem is indeed as Brian mentions,
> the path can be changed by the user installing the application. This
> is how every windows persion expects a windows installer to work.
> Setting a static absolute path is not ideal.
>
> This KICAD env var that Brian mentions, does this exist already? (I
> have not looked at the search stack code)
>
> 2015-09-16 23:19 GMT+02:00 Brian Sidebotham <email address hidden>:
>> I installed 4.0.0-RC1, like a user. I didn't create the package, but
>> perhaps it was generated with KiCad-Winbuilder, I think Nick was
>> getting Winbuilder ready so it could create the KiCad Windows
>> installers. I've not been on Windows for some time now.
>>
>> The simplest "quick" fix is to set an environment variable, KICAD to
>> the KiCad install path, i.e. if using the default install path:
>> "C:\Program Files\KiCad" then the help search works of course.
>>
>> In the installer someone can pick another place to install KiCad, so
>> it's not really something you can set at all reliably at compile time.
>> However, a plaster over the problem at least gets it working for
>> people. Setting the KICAD env var upon install to the installation
>> path would be a fix that works at least. I don't think that should
>> affect the search paths for other things adversely will it?
>>
>> On 16 September 2015 at 22:01, Wayne Stambaugh
>> <email address hidden> wrote:
>>> Did you set -DDEFAULT_
>>> configured your build? DEFAULT_
>>> allow for decoupling the build install path versus the installer package
>>> install path. By default, DEFAULT_
>>> don't specify it. The the case of the windows installer, you should set
>>> DEFAULT_
>>>
>>> On 9/16/2015 4:47 PM, Brian Sidebotham wrote:
>>>> But what happens when you install 4.0.0-RC1? That's the problem here,
>>>> or more importantly when you install 4.0.0-RC1 and don't have the
>>>> C:\msys64\mingw64 directory.
>>>>
>>>> I guess everything you have has successfully keyed off of
>>>> ${CMAKE_
>>>> to c:\msys64\mingw64 - which doesn't exist on my Windows 10 machine.
>>>>
>>>> For example, if I create the C:\msys64\mingw64 directory the correct
>>>> set of folders is searched under that directory. That's great if you
>>>> can specify the installation folder at compile-time, but that's
>>>> obviously not possible when using a Windows installer, the installer
>>>> sets the installation path. You must use relative paths from the exe
>>>> to be sure you're searching in the right place IMO, but we appear to
>>>> be guessing ( There's comments through th...
Wayne Stambaugh (stambaughw) wrote : | #13 |
That's the problem. @Nick, are you using the msys2 PKGBUILD for
mingw32/mingw64? If so, there is another issue. The PKGBUILD creates a
branch of the legacy doc mirrored on github. This documentation is no
longer valid. AFAIK, there is no way to build the new asciidoc
documentation on msys2 without some major work. One option would be to
copy the nightly documentation files from the auto builder at
http://
This would save us from having to get all of the asciidoc dependencies
to build and install on msys to generate the documentation from source.
On 9/16/2015 5:30 PM, Nick Østergaard wrote:
> The current option is -DDEFAULT_
>
> I guess that is not ideal. But my problem is indeed as Brian mentions,
> the path can be changed by the user installing the application. This
> is how every windows persion expects a windows installer to work.
> Setting a static absolute path is not ideal.
>
> This KICAD env var that Brian mentions, does this exist already? (I
> have not looked at the search stack code)
>
> 2015-09-16 23:19 GMT+02:00 Brian Sidebotham <email address hidden>:
>> I installed 4.0.0-RC1, like a user. I didn't create the package, but
>> perhaps it was generated with KiCad-Winbuilder, I think Nick was
>> getting Winbuilder ready so it could create the KiCad Windows
>> installers. I've not been on Windows for some time now.
>>
>> The simplest "quick" fix is to set an environment variable, KICAD to
>> the KiCad install path, i.e. if using the default install path:
>> "C:\Program Files\KiCad" then the help search works of course.
>>
>> In the installer someone can pick another place to install KiCad, so
>> it's not really something you can set at all reliably at compile time.
>> However, a plaster over the problem at least gets it working for
>> people. Setting the KICAD env var upon install to the installation
>> path would be a fix that works at least. I don't think that should
>> affect the search paths for other things adversely will it?
>>
>> On 16 September 2015 at 22:01, Wayne Stambaugh
>> <email address hidden> wrote:
>>> Did you set -DDEFAULT_
>>> configured your build? DEFAULT_
>>> allow for decoupling the build install path versus the installer package
>>> install path. By default, DEFAULT_
>>> don't specify it. The the case of the windows installer, you should set
>>> DEFAULT_
>>>
>>> On 9/16/2015 4:47 PM, Brian Sidebotham wrote:
>>>> But what happens when you install 4.0.0-RC1? That's the problem here,
>>>> or more importantly when you install 4.0.0-RC1 and don't have the
>>>> C:\msys64\mingw64 directory.
>>>>
>>>> I guess everything you have has successfully keyed off of
>>>> ${CMAKE_
>>>> to c:\msys64\mingw64 - which doesn't exist on my Windows 10 machine.
>>>>
>>>> For example, if I create the C:\msys64\mingw64 directory the correct
>>>> set of folders is searched unde...
Nick Østergaard (nickoe) wrote : | #14 |
I am using a custom version, but I am intending to package the one
from http://
the last translations ready for the non rc release.
2015-09-17 0:44 GMT+02:00 Wayne Stambaugh <email address hidden>:
> That's the problem. @Nick, are you using the msys2 PKGBUILD for
> mingw32/mingw64? If so, there is another issue. The PKGBUILD creates a
> branch of the legacy doc mirrored on github. This documentation is no
> longer valid. AFAIK, there is no way to build the new asciidoc
> documentation on msys2 without some major work. One option would be to
> copy the nightly documentation files from the auto builder at
> http://
> This would save us from having to get all of the asciidoc dependencies
> to build and install on msys to generate the documentation from source.
>
> On 9/16/2015 5:30 PM, Nick Østergaard wrote:
>> The current option is -DDEFAULT_
>>
>> I guess that is not ideal. But my problem is indeed as Brian mentions,
>> the path can be changed by the user installing the application. This
>> is how every windows persion expects a windows installer to work.
>> Setting a static absolute path is not ideal.
>>
>> This KICAD env var that Brian mentions, does this exist already? (I
>> have not looked at the search stack code)
>>
>> 2015-09-16 23:19 GMT+02:00 Brian Sidebotham <email address hidden>:
>>> I installed 4.0.0-RC1, like a user. I didn't create the package, but
>>> perhaps it was generated with KiCad-Winbuilder, I think Nick was
>>> getting Winbuilder ready so it could create the KiCad Windows
>>> installers. I've not been on Windows for some time now.
>>>
>>> The simplest "quick" fix is to set an environment variable, KICAD to
>>> the KiCad install path, i.e. if using the default install path:
>>> "C:\Program Files\KiCad" then the help search works of course.
>>>
>>> In the installer someone can pick another place to install KiCad, so
>>> it's not really something you can set at all reliably at compile time.
>>> However, a plaster over the problem at least gets it working for
>>> people. Setting the KICAD env var upon install to the installation
>>> path would be a fix that works at least. I don't think that should
>>> affect the search paths for other things adversely will it?
>>>
>>> On 16 September 2015 at 22:01, Wayne Stambaugh
>>> <email address hidden> wrote:
>>>> Did you set -DDEFAULT_
>>>> configured your build? DEFAULT_
>>>> allow for decoupling the build install path versus the installer package
>>>> install path. By default, DEFAULT_
>>>> don't specify it. The the case of the windows installer, you should set
>>>> DEFAULT_
>>>>
>>>> On 9/16/2015 4:47 PM, Brian Sidebotham wrote:
>>>>> But what happens when you install 4.0.0-RC1? That's the problem here,
>>>>> or more importantly when you install 4.0.0-RC1 and don't have the
>>>>> C:\msys64\mingw64 directory.
>>>>>
>>>>> ...
Wayne Stambaugh (stambaughw) wrote : | #15 |
I'm assuming that you are going to set DEFAULT_
the user installs in the default location in windows they will be able
to open the help files.
That being said, I may change the help path to an environment variable
where the default value should point to the correct path. The whole
search path idea is terrible. This way the user can change the
documentation path to whatever they want. I'll make it behave like all
of the other predefined environment variables so it can be overridden by
externally defined a path. Any thoughts on this?
On 9/16/2015 7:02 PM, Nick Østergaard wrote:
> I am using a custom version, but I am intending to package the one
> from http://
> the last translations ready for the non rc release.
>
> 2015-09-17 0:44 GMT+02:00 Wayne Stambaugh <email address hidden>:
>> That's the problem. @Nick, are you using the msys2 PKGBUILD for
>> mingw32/mingw64? If so, there is another issue. The PKGBUILD creates a
>> branch of the legacy doc mirrored on github. This documentation is no
>> longer valid. AFAIK, there is no way to build the new asciidoc
>> documentation on msys2 without some major work. One option would be to
>> copy the nightly documentation files from the auto builder at
>> http://
>> This would save us from having to get all of the asciidoc dependencies
>> to build and install on msys to generate the documentation from source.
>>
>> On 9/16/2015 5:30 PM, Nick Østergaard wrote:
>>> The current option is -DDEFAULT_
>>>
>>> I guess that is not ideal. But my problem is indeed as Brian mentions,
>>> the path can be changed by the user installing the application. This
>>> is how every windows persion expects a windows installer to work.
>>> Setting a static absolute path is not ideal.
>>>
>>> This KICAD env var that Brian mentions, does this exist already? (I
>>> have not looked at the search stack code)
>>>
>>> 2015-09-16 23:19 GMT+02:00 Brian Sidebotham <email address hidden>:
>>>> I installed 4.0.0-RC1, like a user. I didn't create the package, but
>>>> perhaps it was generated with KiCad-Winbuilder, I think Nick was
>>>> getting Winbuilder ready so it could create the KiCad Windows
>>>> installers. I've not been on Windows for some time now.
>>>>
>>>> The simplest "quick" fix is to set an environment variable, KICAD to
>>>> the KiCad install path, i.e. if using the default install path:
>>>> "C:\Program Files\KiCad" then the help search works of course.
>>>>
>>>> In the installer someone can pick another place to install KiCad, so
>>>> it's not really something you can set at all reliably at compile time.
>>>> However, a plaster over the problem at least gets it working for
>>>> people. Setting the KICAD env var upon install to the installation
>>>> path would be a fix that works at least. I don't think that should
>>>> affect the search paths for other things adversely will it?
>>>>
>>>> On 16 September 2015 at 22:01, Wayne Stambaugh
>>>> <email address hidden> wrote:
>>>>> Did you set -DDEF...
jean-pierre charras (jp-charras) wrote : | #16 |
I am thinking using an environment variable "like the other predefined environment variables" (I am guessing like KISYS3DMOD for instance, which can be set in Configuration Path dialog) is the best way.
Using DEFAULT_
This is the best way because like KISYS3DMOD the doc path:
- Can be set to the actual path ( not known at build time ) by the user or the installer.
- Is clearly known in the dialog
Nick Østergaard (nickoe) wrote : | #17 |
Why can't all variables be overridden by real environment variables? I
seems that not even KIGITHUB can be overridden, at least on windows,
and not even catched when no confs are present.
And even setting KICAD to C:\Program Files\KiCad does not work. Is
this broken on windows or? I used set KICAD=foo
2015-09-17 1:46 GMT+02:00 Wayne Stambaugh <email address hidden>:
> I'm assuming that you are going to set DEFAULT_
> the user installs in the default location in windows they will be able
> to open the help files.
>
> That being said, I may change the help path to an environment variable
> where the default value should point to the correct path. The whole
> search path idea is terrible. This way the user can change the
> documentation path to whatever they want. I'll make it behave like all
> of the other predefined environment variables so it can be overridden by
> externally defined a path. Any thoughts on this?
>
> On 9/16/2015 7:02 PM, Nick Østergaard wrote:
>> I am using a custom version, but I am intending to package the one
>> from http://
>> the last translations ready for the non rc release.
>>
>> 2015-09-17 0:44 GMT+02:00 Wayne Stambaugh <email address hidden>:
>>> That's the problem. @Nick, are you using the msys2 PKGBUILD for
>>> mingw32/mingw64? If so, there is another issue. The PKGBUILD creates a
>>> branch of the legacy doc mirrored on github. This documentation is no
>>> longer valid. AFAIK, there is no way to build the new asciidoc
>>> documentation on msys2 without some major work. One option would be to
>>> copy the nightly documentation files from the auto builder at
>>> http://
>>> This would save us from having to get all of the asciidoc dependencies
>>> to build and install on msys to generate the documentation from source.
>>>
>>> On 9/16/2015 5:30 PM, Nick Østergaard wrote:
>>>> The current option is -DDEFAULT_
>>>>
>>>> I guess that is not ideal. But my problem is indeed as Brian mentions,
>>>> the path can be changed by the user installing the application. This
>>>> is how every windows persion expects a windows installer to work.
>>>> Setting a static absolute path is not ideal.
>>>>
>>>> This KICAD env var that Brian mentions, does this exist already? (I
>>>> have not looked at the search stack code)
>>>>
>>>> 2015-09-16 23:19 GMT+02:00 Brian Sidebotham <email address hidden>:
>>>>> I installed 4.0.0-RC1, like a user. I didn't create the package, but
>>>>> perhaps it was generated with KiCad-Winbuilder, I think Nick was
>>>>> getting Winbuilder ready so it could create the KiCad Windows
>>>>> installers. I've not been on Windows for some time now.
>>>>>
>>>>> The simplest "quick" fix is to set an environment variable, KICAD to
>>>>> the KiCad install path, i.e. if using the default install path:
>>>>> "C:\Program Files\KiCad" then the help search works of course.
>>>>>
>>>>> In the installer someone can pick another place to install KiCad, so
>>>>> it's not really something you ca...
Wayne Stambaugh (stambaughw) wrote : | #18 |
On 9/17/2015 2:17 AM, jean-pierre charras wrote:
> I am thinking using an environment variable "like the other predefined environment variables" (I am guessing like KISYS3DMOD for instance, which can be set in Configuration Path dialog) is the best way.
This is exactly what I was thinking. Using and environment variable
also gives the user/developer the flexibility to use any path.
> Using DEFAULT_
This was dependent on the developer setting DEFAULT_
correctly. It may have been wishful thinking on my part. It also
doesn't work on systems with installers that allow installation in a
user selected path that doesn't match the default path.
> This is the best way because like KISYS3DMOD the doc path:
> - Can be set to the actual path ( not known at build time ) by the user or the installer.
> - Is clearly known in the dialog
>
@Brian, do you want to take this on? If not, I should be able to knock
it out over the weekend.
Wayne
Nick Østergaard (nickoe) wrote : | #19 |
Hi Wayne
I am still a bit confused here. Are the variables seen in the
footprint library table bottom and all the ones in the configure paths
dialog not supposed to be overridden by a system environment variable?
If so, it does not seem to work.
2015-09-17 14:20 GMT+02:00 Wayne Stambaugh <email address hidden>:
> On 9/17/2015 2:17 AM, jean-pierre charras wrote:
>> I am thinking using an environment variable "like the other predefined environment variables" (I am guessing like KISYS3DMOD for instance, which can be set in Configuration Path dialog) is the best way.
>
> This is exactly what I was thinking. Using and environment variable
> also gives the user/developer the flexibility to use any path.
>
>> Using DEFAULT_
> (DEFAULT_
>
> This was dependent on the developer setting DEFAULT_
> correctly. It may have been wishful thinking on my part. It also
> doesn't work on systems with installers that allow installation in a
> user selected path that doesn't match the default path.
>
>> This is the best way because like KISYS3DMOD the doc path:
>> - Can be set to the actual path ( not known at build time ) by the user or the installer.
>> - Is clearly known in the dialog
>>
>
> @Brian, do you want to take this on? If not, I should be able to knock
> it out over the weekend.
>
> Wayne
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> 4.0.0 RC1 cannot find help
>
> Status in KiCad:
> New
> Status in KiCad 4.0 series:
> New
>
> Bug description:
> On Windows the 4.0.0 RC1 install cannot find it's own help.
>
> The help is at C:\Program
> Files\KiCad\
>
> The searched paths are like this:
>
> Path
> C:\msys64\mingw64
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program...
Wayne Stambaugh (stambaughw) wrote : | #20 |
Nick,
Not necessarily. The fp-lib-table dialog shows the paths that will be
substituted in the fp-lib-table plus a few others like KISYS3DMOD of
which I am not sure why.
Wayne
On 9/17/2015 1:41 PM, Nick Østergaard wrote:
> Hi Wayne
>
> I am still a bit confused here. Are the variables seen in the
> footprint library table bottom and all the ones in the configure paths
> dialog not supposed to be overridden by a system environment variable?
> If so, it does not seem to work.
>
> 2015-09-17 14:20 GMT+02:00 Wayne Stambaugh <email address hidden>:
>> On 9/17/2015 2:17 AM, jean-pierre charras wrote:
>>> I am thinking using an environment variable "like the other predefined environment variables" (I am guessing like KISYS3DMOD for instance, which can be set in Configuration Path dialog) is the best way.
>>
>> This is exactly what I was thinking. Using and environment variable
>> also gives the user/developer the flexibility to use any path.
>>
>>> Using DEFAULT_
>> (DEFAULT_
>>
>> This was dependent on the developer setting DEFAULT_
>> correctly. It may have been wishful thinking on my part. It also
>> doesn't work on systems with installers that allow installation in a
>> user selected path that doesn't match the default path.
>>
>>> This is the best way because like KISYS3DMOD the doc path:
>>> - Can be set to the actual path ( not known at build time ) by the user or the installer.
>>> - Is clearly known in the dialog
>>>
>>
>> @Brian, do you want to take this on? If not, I should be able to knock
>> it out over the weekend.
>>
>> Wayne
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https:/
>>
>> Title:
>> 4.0.0 RC1 cannot find help
>>
>> Status in KiCad:
>> New
>> Status in KiCad 4.0 series:
>> New
>>
>> Bug description:
>> On Windows the 4.0.0 RC1 install cannot find it's own help.
>>
>> The help is at C:\Program
>> Files\KiCad\
>>
>> The searched paths are like this:
>>
>> Path
>> C:\msys64\mingw64
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad
>> C:\Program Files\KiCad\
>> C:\Program Files\KiCad...
Nick Østergaard (nickoe) wrote : | #21 |
Yes, and can't they be changed by a system env var?
2015-09-17 21:01 GMT+02:00 Wayne Stambaugh <email address hidden>:
> Nick,
>
> Not necessarily. The fp-lib-table dialog shows the paths that will be
> substituted in the fp-lib-table plus a few others like KISYS3DMOD of
> which I am not sure why.
>
> Wayne
>
> On 9/17/2015 1:41 PM, Nick Østergaard wrote:
>> Hi Wayne
>>
>> I am still a bit confused here. Are the variables seen in the
>> footprint library table bottom and all the ones in the configure paths
>> dialog not supposed to be overridden by a system environment variable?
>> If so, it does not seem to work.
>>
>> 2015-09-17 14:20 GMT+02:00 Wayne Stambaugh <email address hidden>:
>>> On 9/17/2015 2:17 AM, jean-pierre charras wrote:
>>>> I am thinking using an environment variable "like the other predefined environment variables" (I am guessing like KISYS3DMOD for instance, which can be set in Configuration Path dialog) is the best way.
>>>
>>> This is exactly what I was thinking. Using and environment variable
>>> also gives the user/developer the flexibility to use any path.
>>>
>>>> Using DEFAULT_
>>> (DEFAULT_
>>>
>>> This was dependent on the developer setting DEFAULT_
>>> correctly. It may have been wishful thinking on my part. It also
>>> doesn't work on systems with installers that allow installation in a
>>> user selected path that doesn't match the default path.
>>>
>>>> This is the best way because like KISYS3DMOD the doc path:
>>>> - Can be set to the actual path ( not known at build time ) by the user or the installer.
>>>> - Is clearly known in the dialog
>>>>
>>>
>>> @Brian, do you want to take this on? If not, I should be able to knock
>>> it out over the weekend.
>>>
>>> Wayne
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https:/
>>>
>>> Title:
>>> 4.0.0 RC1 cannot find help
>>>
>>> Status in KiCad:
>>> New
>>> Status in KiCad 4.0 series:
>>> New
>>>
>>> Bug description:
>>> On Windows the 4.0.0 RC1 install cannot find it's own help.
>>>
>>> The help is at C:\Program
>>> Files\KiCad\
>>>
>>> The searched paths are like this:
>>>
>>> Path
>>> C:\msys64\mingw64
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad\
>>> C:\Program Files\KiCad
>>> C:\Program Files\KiCad\
>>> C:\...
Wayne Stambaugh (stambaughw) wrote : | #22 |
Correct. Externally defined environment variable take precedence over
the ones defined in the path configuration dialog. These environment
variables will be high lighted in the dialog to indicate that they are
externally defined. You can edit the path of externally defined
environment variable but they will not change the actual environment
variable that the current process uses. You wound have to close kicad,
remove the externally defined environment variable, then open kicad and
the value you entered in the dialog would take effect.
On 9/17/2015 3:12 PM, Nick Østergaard wrote:
> Yes, and can't they be changed by a system env var?
>
> 2015-09-17 21:01 GMT+02:00 Wayne Stambaugh <email address hidden>:
>> Nick,
>>
>> Not necessarily. The fp-lib-table dialog shows the paths that will be
>> substituted in the fp-lib-table plus a few others like KISYS3DMOD of
>> which I am not sure why.
>>
>> Wayne
>>
>> On 9/17/2015 1:41 PM, Nick Østergaard wrote:
>>> Hi Wayne
>>>
>>> I am still a bit confused here. Are the variables seen in the
>>> footprint library table bottom and all the ones in the configure paths
>>> dialog not supposed to be overridden by a system environment variable?
>>> If so, it does not seem to work.
>>>
>>> 2015-09-17 14:20 GMT+02:00 Wayne Stambaugh <email address hidden>:
>>>> On 9/17/2015 2:17 AM, jean-pierre charras wrote:
>>>>> I am thinking using an environment variable "like the other predefined environment variables" (I am guessing like KISYS3DMOD for instance, which can be set in Configuration Path dialog) is the best way.
>>>>
>>>> This is exactly what I was thinking. Using and environment variable
>>>> also gives the user/developer the flexibility to use any path.
>>>>
>>>>> Using DEFAULT_
>>>> (DEFAULT_
>>>>
>>>> This was dependent on the developer setting DEFAULT_
>>>> correctly. It may have been wishful thinking on my part. It also
>>>> doesn't work on systems with installers that allow installation in a
>>>> user selected path that doesn't match the default path.
>>>>
>>>>> This is the best way because like KISYS3DMOD the doc path:
>>>>> - Can be set to the actual path ( not known at build time ) by the user or the installer.
>>>>> - Is clearly known in the dialog
>>>>>
>>>>
>>>> @Brian, do you want to take this on? If not, I should be able to knock
>>>> it out over the weekend.
>>>>
>>>> Wayne
>>>>
>>>> --
>>>> You received this bug notification because you are subscribed to the bug
>>>> report.
>>>> https:/
>>>>
>>>> Title:
>>>> 4.0.0 RC1 cannot find help
>>>>
>>>> Status in KiCad:
>>>> New
>>>> Status in KiCad 4.0 series:
>>>> New
>>>>
>>>> Bug description:
>>>> On Windows the 4.0.0 RC1 install cannot find it's own help.
>>>>
>>>> The help is at C:\Program
>>>> Files\KiCad\
>>>>
>>>> The searched paths are like this:
>>>>
>>>> Path
>>>> C:\msys64\mingw64
>>>> C:\Program Files\KiCad\
>>>> C:\Program Files\KiCad\
>>>> C:\Program Files\KiCad
>>>> C:\Prog...
Brian Sidebotham (brian-sidebotham) wrote : | #23 |
Yeah sure I can pick this work up, but first I want to define it. The
rabbit hole gets deeper for me...
It looks like it's wanted to introduce a KIHELP env var and set it in
the configuration path dialog as per the other env var settings. No
problem.
I just checked something which works out okay, and that's variable
substitution in the path values.
A Windows installer should set the KICAD environment variable to the
installation path (Generally "C:\Program Files\KiCad").
The default values of the other variables can then be
"${KICAD}
That works here, ${KICAD} is correctly expanded to "C:\Program
Files\KiCad" and thus the whole value becomes correct. Perhaps we
should add the KICAD value to the path configuration dialog too?
So for Windows at least the default KIHELP path would be
"${KICAD}
information on as normal. Does that sound reasonable? I suggest on
Windows we alter all of the default paths like KISYS3DMOD and KISYSMOD
like this too so they all start with ${KICAD}
All paths are currently knackered under the Windows install. Project
templates cannot be found, that path is broken too.
I suggest from here, some chat on the Dev mailing list about paths and
what we can do to sort them out in KiCad and the packaging and then
fix all the problems for the next RC. KiCad is really quite crippled
out-of-the-box on Windows at the moment.
Thanks, and sorry the discussion about the bug is so long, I know
we're all short on time.
Best Regards,
Brian.
On 17 September 2015 at 20:31, Wayne Stambaugh
<email address hidden> wrote:
> Correct. Externally defined environment variable take precedence over
> the ones defined in the path configuration dialog. These environment
> variables will be high lighted in the dialog to indicate that they are
> externally defined. You can edit the path of externally defined
> environment variable but they will not change the actual environment
> variable that the current process uses. You wound have to close kicad,
> remove the externally defined environment variable, then open kicad and
> the value you entered in the dialog would take effect.
>
> On 9/17/2015 3:12 PM, Nick Østergaard wrote:
>> Yes, and can't they be changed by a system env var?
>>
>> 2015-09-17 21:01 GMT+02:00 Wayne Stambaugh <email address hidden>:
>>> Nick,
>>>
>>> Not necessarily. The fp-lib-table dialog shows the paths that will be
>>> substituted in the fp-lib-table plus a few others like KISYS3DMOD of
>>> which I am not sure why.
>>>
>>> Wayne
>>>
>>> On 9/17/2015 1:41 PM, Nick Østergaard wrote:
>>>> Hi Wayne
>>>>
>>>> I am still a bit confused here. Are the variables seen in the
>>>> footprint library table bottom and all the ones in the configure paths
>>>> dialog not supposed to be overridden by a system environment variable?
>>>> If so, it does not seem to work.
>>>>
>>>> 2015-09-17 14:20 GMT+02:00 Wayne Stambaugh <email address hidden>:
>>>>> On 9/17/2015 2:17 AM, jean-pierre charras wrote:
>>>>>> I am thinking using an environment variable "like the other predefined environment variables" (I am gu...
Nick Østergaard (nickoe) wrote : | #24 |
I think it makes sense to derive the other vars after a KICAD var as
Wayned suggested earlier.
But Wayne, have you tried to override the KISYSMOD with a systme env
var recently? I can't make it work on linux nor windows. I think it is
broken. The only variable I was able to change, that I tried, was the KIPRJMOD.
2015-09-17 22:44 GMT+02:00 Brian Sidebotham <email address hidden>:
> Yeah sure I can pick this work up, but first I want to define it. The
> rabbit hole gets deeper for me...
>
> It looks like it's wanted to introduce a KIHELP env var and set it in
> the configuration path dialog as per the other env var settings. No
> problem.
>
> I just checked something which works out okay, and that's variable
> substitution in the path values.
>
> A Windows installer should set the KICAD environment variable to the
> installation path (Generally "C:\Program Files\KiCad").
>
> The default values of the other variables can then be
> "${KICAD}
> That works here, ${KICAD} is correctly expanded to "C:\Program
> Files\KiCad" and thus the whole value becomes correct. Perhaps we
> should add the KICAD value to the path configuration dialog too?
>
> So for Windows at least the default KIHELP path would be
> "${KICAD}
> information on as normal. Does that sound reasonable? I suggest on
> Windows we alter all of the default paths like KISYS3DMOD and KISYSMOD
> like this too so they all start with ${KICAD}
>
> All paths are currently knackered under the Windows install. Project
> templates cannot be found, that path is broken too.
>
> I suggest from here, some chat on the Dev mailing list about paths and
> what we can do to sort them out in KiCad and the packaging and then
> fix all the problems for the next RC. KiCad is really quite crippled
> out-of-the-box on Windows at the moment.
>
> Thanks, and sorry the discussion about the bug is so long, I know
> we're all short on time.
>
> Best Regards,
>
> Brian.
>
>
> On 17 September 2015 at 20:31, Wayne Stambaugh
> <email address hidden> wrote:
>> Correct. Externally defined environment variable take precedence over
>> the ones defined in the path configuration dialog. These environment
>> variables will be high lighted in the dialog to indicate that they are
>> externally defined. You can edit the path of externally defined
>> environment variable but they will not change the actual environment
>> variable that the current process uses. You wound have to close kicad,
>> remove the externally defined environment variable, then open kicad and
>> the value you entered in the dialog would take effect.
>>
>> On 9/17/2015 3:12 PM, Nick Østergaard wrote:
>>> Yes, and can't they be changed by a system env var?
>>>
>>> 2015-09-17 21:01 GMT+02:00 Wayne Stambaugh <email address hidden>:
>>>> Nick,
>>>>
>>>> Not necessarily. The fp-lib-table dialog shows the paths that will be
>>>> substituted in the fp-lib-table plus a few others like KISYS3DMOD of
>>>> which I am not sure why.
>>>>
>>>> Wayne
>>>>
>>>> On 9/17/2015 1:41 PM, Nick Østergaard wrote:
>>>>> Hi Wayne
>>>>>
>>>>> I am stil...
Brian Sidebotham (brian-sidebotham) wrote : | #25 |
On 17 September 2015 at 22:43, Nick Østergaard
<email address hidden> wrote:
> I think it makes sense to derive the other vars after a KICAD var as
> Wayned suggested earlier.
Sorry Nick, Could you quote that suggestion for me as I can't see anything.
I'm sure what I just described is what we'll all want to do. All the
installer need do is set the KICAD var (The KICAD env var can already
be used as previously mentioned).
Wayne Stambaugh (stambaughw) wrote : | #26 |
On 9/17/2015 4:44 PM, Brian Sidebotham wrote:
> Yeah sure I can pick this work up, but first I want to define it. The
> rabbit hole gets deeper for me...
>
> It looks like it's wanted to introduce a KIHELP env var and set it in
> the configuration path dialog as per the other env var settings. No
> problem.
Please use KIHELPDIR. The default can be defined in pgm_base.cpp along
with the other default env vars. I would use the mess in the beginning
of SearchHelpFileF
help path. After that, the config value should always be used. This
should be a cut an paste effort. Maybe a separate GetDefaultHelpP
would be useful.
>
> I just checked something which works out okay, and that's variable
> substitution in the path values.
>
> A Windows installer should set the KICAD environment variable to the
> installation path (Generally "C:\Program Files\KiCad").
>
> The default values of the other variables can then be
> "${KICAD}
> That works here, ${KICAD} is correctly expanded to "C:\Program
> Files\KiCad" and thus the whole value becomes correct. Perhaps we
> should add the KICAD value to the path configuration dialog too?
>
> So for Windows at least the default KIHELP path would be
> "${KICAD}
> information on as normal. Does that sound reasonable? I suggest on
> Windows we alter all of the default paths like KISYS3DMOD and KISYSMOD
> like this too so they all start with ${KICAD}
Make sense for windows, linux also uses
${CMAKE_
modification. The OSX path stuff is in SearchHelpFileF
well. Use the locale look up code in SearchHelpFileF
just pass the help path to SearchHelpFileF
the search stack gyrations. That code truly deserves to die.
>
> All paths are currently knackered under the Windows install. Project
> templates cannot be found, that path is broken too.
>
> I suggest from here, some chat on the Dev mailing list about paths and
> what we can do to sort them out in KiCad and the packaging and then
> fix all the problems for the next RC. KiCad is really quite crippled
> out-of-the-box on Windows at the moment.
>
> Thanks, and sorry the discussion about the bug is so long, I know
> we're all short on time.
>
> Best Regards,
>
> Brian.
>
>
> On 17 September 2015 at 20:31, Wayne Stambaugh
> <email address hidden> wrote:
>> Correct. Externally defined environment variable take precedence over
>> the ones defined in the path configuration dialog. These environment
>> variables will be high lighted in the dialog to indicate that they are
>> externally defined. You can edit the path of externally defined
>> environment variable but they will not change the actual environment
>> variable that the current process uses. You wound have to close kicad,
>> remove the externally defined environment variable, then open kicad and
>> the value you entered in the dialog would take effect.
>>
>> On 9/17/2015 3:12 PM, Nick Østergaard wrote:
>>> Yes, and ...
Nick Østergaard (nickoe) wrote : | #27 |
I have committed a fix for the kicad windows builder. It is already available in the debug build found on the download page. In a hand full of hours it will be available in the latest nightlies.
Changed in kicad: | |
status: | New → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Hmmm? Where is "template" coming from? I don't see it being added to
the help SEARCH_STACK path list.
On 9/15/2015 12:23 PM, Brian Sidebotham wrote: share\doc\ kicad\help\ en\kicad. pdf share\kicad\ template\ doc\help\ en_GB kicad.html kicad.html share\kicad\ template\ doc\help\ en_GB kicad.pdf kicad.pdf share\kicad\ template\ share\doc\ kicad\help\ en_GB kicad.html kicad.html share\kicad\ template\ share\doc\ kicad\help\ en_GB kicad.pdf kicad.pdf share\kicad\ template\ doc\help\ en kicad.html kicad.html share\kicad\ template\ doc\help\ en kicad.pdf kicad.pdf share\kicad\ template\ share\doc\ kicad\help\ en kicad.html kicad.html share\kicad\ template\ share\doc\ kicad\help\ en kicad.pdf kicad.pdf share\kicad\ template\ doc\help\ en kicad.html kicad.html share\kicad\ template\ doc\help\ en kicad.pdf kicad.pdf share\kicad\ template\ share\doc\ kicad\help\ en kicad.html kicad.html share\kicad\ template\ share\doc\ kicad\help\ en kicad.pdf kicad.pdf template. .. which appears wrong. I'd expect it to be wchar_t, compiler with C++ ABI 1009,GCC 5.2.0,wx containers, compatible with 2.8)
> Public bug reported:
>
> On Windows the 4.0.0 RC1 install cannot find it's own help.
>
> The help is at C:\Program Files\KiCad\
>
> The searched paths are like this:
>
> Path
> C:\msys64\mingw64
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
> C:\Program Files\KiCad\
> C:\Program Files\KiCad
>
> It looks like a two-fold problem. The packaging is putting the docs
> under share\doc... where I guess it should be share\kicad\doc along
> with everything else shared for KiCad.
>
> Secondly the paths being search by the program include
> share\kicad\
> \share\kicad\doc...
>
> The version information:
>
> Application: kicad
> Version: 4.0.0-rc1-stable release build
> wxWidgets: Version 3.0.2 (debug,
> Platform: Windows 7 (build 7601, Serv...