Caneda / Installer

Windows Installer sources.
5 stars 0 forks source link

[Question] install error on Windwos 7/10 #1

Open owlfox opened 8 years ago

owlfox commented 8 years ago

Hi, I'm interested in EDA software development, and found your repo. Thank you for the work! and..

I tried the installer on my virtual machine, but I failed in the install process with unknown error. I downloaded the installer from the caneda.org. I'm not sure if I have to install QT first, or is a stand alone installer. so I opened this issue.

(I'll try to build it on ubuntu 16.04 later.) I'm not sure where to ask so I posted here, if it's a wrong place I'll close it ><.

parejaobregon commented 8 years ago

Hello tjctw and thanks for trying Caneda.

There's no problem about the bug request, don't hesitate to write as many as you need :) . Usually the bugs should be opened on the main repository [1], but don't worry about this one. Also when you get Caneda to work, any feedback on the interface or GUI is most welcome and I will do my best to improve it as best as I can.

Regarding your problem, I don't quite understand if you are trying to build Caneda from sources, or simply installing the binaries. The site at http://caneda.org/ contains two download buttons, the first one downloads the sources to build the application (targeted at general Linux users). The second one is the Windows installer.

The Windows installer is a standalone installer and has all the dependencies included (qt libraries, ngspice, etc). All you should do is to double click and follow the steps. The only advice is to leave the installation directory as default. I'm working on configurable installation directories in Windows but that feature is not yet fully working (on Linux there shouldn't be any problem changing directories). I have successfully tested the installer on several machines with Windows 7 and Windows XP. Unluckily I don't have any machine with Windows 10 to test it.

To be able to debug your problem, could you send me a little more information on what is happening? In what step the error arises? What is the exact message? When you say Windows 7/10 do you mean you tried both in Windows 7 and Windows 10 with the same error? Any screenshot will also be appreciated.

In Ubuntu you should not have any problems compiling and running the application (while I'm using Debian to develop, I have tried myself compiling on Ubuntu a couple of weeks ago). Even more, in Ubuntu yakkety there's already a package to install from the repository [2].

In [3] and [4], there are detailed instructions for the install and compilation under Debian. In Ubuntu similar steps should be followed (in Ubuntu 16.04, the procedure for Debian Testing should be followed). I plan to add instructions for Windows, Ubuntu, and other distributions, as soon as my time allows me to. Anyway, write me back if you have any problems.

Finally, this weekend I'll be releasing a new version of Caneda (0.3.0) which contains lots of bugfixes and improvements. I recommend you to try that version, as it will save same headaches and contains more tools.

Regards, Pablo

[1] https://github.com/Caneda/Caneda/ [2] http://packages.ubuntu.com/search?keywords=caneda&searchon=names&suite=yakkety&section=all [3] http://docs.caneda.org/en/latest/installation.html [4] http://docs.caneda.org/en/latest/compilation.html

parejaobregon commented 8 years ago

Hello tjctw,

Yesterday a new release of Caneda was made (0.3.0), please verify if your problem persists. If that's the case, we can try to debug the problem further.

Thanks.

Regards, Pablo

owlfox commented 8 years ago

Hi parejaobregon, Thank you for your prompt reply, and sorry for my late one.

I've tried both installing binaries and building from souce. I found the problem with my windows 7/10 install process which is the reason for opening the issue. ... is likely to be the installer is located ina read-only shared folder, after I copied it to elsewhere, then I can install Caneda without error. Sorry, it turns out I'm the bug lol.

Then I start to try the new release 0.3.0, I'm OK with installation on

note both windows 7 and 10 takes more time on waiting a blank terminal in 0.3.0. I'm not sure how to debug with this(still very new to c++ and QT)

I hope these message could do some help, ha. regards TJC

parejaobregon commented 8 years ago

Hello TJC,

Glad to hear you were able to run Caneda on a couple of platforms :)

Regarding the loading time, during this release cycle I've been optimizing the memory usage a lot. I've noticed however the same "waiting a blank terminal in 0.3.0" you mention. This problem manifests itself only on Virtual Machines. As far as I tested, when running in real machines (both on Windows and Linux targets) there is no problem.

To summarize your tests (correct me if I'm wrong):

  1. Windows 10: Installs and runs ok
  2. Windows 7: Installs buts fails to load libraries
  3. Ubuntu 16.04: Compiles but fails to run
  4. Ubuntu 16.10: Installs and runs ok?
  5. MacOSX 10.11: Still trying...

Let's try to fix 2 and 3.

2) The problem from what I can see appears while loading the libraries during start up. Caneda's libraries and files are xml files describing the component, symbol, schematic, etc. To write and read those files, an xml parser is implemented in Caneda's sources. As the libraries you are trying to open are those bundled with Caneda (I guess you are not implementing your own libraries yet), there shouldn't be any problem. Could you attach to this report a copy of any of those files? They should be located in your installation path under the "libraries" folder. Also check that you installed Caneda in the default folder ("C:\Program Files (x86)"). As I wrote before, changing the installation directory is not working yet on Windows. As an alternative you can select your libraries location in the settings menu, removing the current ones and pointing to any location on your system.

3) The problem seems to be that you installed Qwt (the libraries needed for plotting) under a not-standard Linux library path. This is a common problem when installing Qwt manually. You should be able to solve this problem running Caneda as described in [1] near the end, that is pointing explicitly to Qwt 6.1.3 library path as follows:

$ LD_LIBRARY_PATH=/usr/local/qwt-6.1.3/lib/ caneda &

Hope this helps. Please keep me posted on your progress.

Regards, Pablo

[1] http://docs.caneda.org/en/latest/compilation.html#compilation-jessie

owlfox commented 8 years ago

Hi Pablo, Thank you very much for the reply. Glad that the loading time is not a problem outside the vm.

My status of installation is updated as below:

  1. Windows 10: Installs and runs ok
  2. Windows 7: Installs buts fails to load libraries
  3. Ubuntu 16.04: qwt library issue
  4. Ubuntu 16.10: Installs and runs ok?
  5. MacOSX 10.11: installs and runs ok

For 2, I copied 2 library files from C:\Program Files (x86)\Caneda\share\caneda\libraries\components\active opamp_amplifier_sxym.tar.gz I will try the library setting change in this weekend.

For 3, tried LD_LIBRARY_PATH=/usr/local/qwt-6.1.3/lib/ caneda but got [1] 31730 segmentation fault (core dumped) LD_LIBRARY_PATH=/usr/local/qwt-6.1.3/lib/ caneda reinstall sudo apt-get install libqwt-qt5-dev looks not helping I will try to clean all the files related and reinstall it.

For 5 on MACOSX, success installed after changing some setting and copied some library files. I'll try to find a cleaner way to install and document it down.

Thank you very much for the help. After the installation settle down, I will grab my textbook, start to review the electric circuits lol.

Best, TJC

parejaobregon commented 8 years ago

Hi TJC,

Before closing the bug, could you comment if you manage to solve #2 and #3? If so, how did you solve the aforementioned issues? Any hint will help future users. Thanks!

When you start capturing schematics and simulating the results, don't forget to check out Caneda's example circuits at [1] and extra components (commercial) libraries at [2].

Regards, Pablo

[1] https://github.com/Caneda/Examples [2] https://github.com/Caneda/Libraries