-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduction to compilation #12
Comments
Hello, I got this error (in I also got errors of this kind: I got this error: And I finally I get this output: Do you have an idea why this is the case? |
Thank you for your interests. I don’t know porting to windows 64 but but I think you need tre library for windows. http://gnuwin32.sourceforge.net/packages/tre.htm I also think you need “gnuwin64” library, but it is not exist. |
Hello, In this case I could also switch to Linux, however I have some optical design programs I would like to compare with (e.g. ZEMAX, OpTaliX which only run on Windows). My plan is this one (however I have zero experience with fortran): I.
II. Add some comment for https://sphinx-fortran.readthedocs.io/en/latest/ I know these are very ambitious goals and will take a while but would be very useful. Best regards, |
Thank you for your reply. I think you try to compile 64 bit enviorent. compilation for Koko needs gnu tool( gnuwin32) kit and MSYS but any 64bit gnuwin64 tool kit not available now. you need compile pre library as 64 bit library. You should use WSL2 on Windows, It gave Linux environment on Windows. Did you tried my 32bit windows binary ? |
Thank you. I will try to compile a 32 bit version. |
Sorry for inconvenience. Please try CUI version koko and install gnuplot for windows. |
What is CUI? |
Try Koko-cli.exe |
Hi, I tried Koko-cli on two pcs with windows 10. The one with admin rights could open the cli. The one without not. It would also be very helpful for me if you could provide some explanation in which source file (module) exactly the surface coordinates, sags, apertures (i.e. everything which defines an optical surface) and the layout rays are converted to something which gnuplot can plot. Then I could write something similar for vtk plotting and a command like "VTK" instead of "VIE". Best regards, |
you will see gnuplot folder in KODS folder. All plotting done by gnuplot.f in gnuplot folder among source files. |
Okay. Thank you. I will check this out: |
Or more exactly what I am looking for are the KDP/Koko data arrays (names of fortran arrays and module names) wherein the data to be plotted is stored. |
I try to remenber memories of several years ago... please wait. I rebuild koko-gui.exe to work with koko-cli.exe. https://github.com/dinosauria123/Koko/releases/download/untagged-1ad8ab22029e39255c87/koko.zip |
Check "P1ARAY" array. IK is a surface number and other index are flags for plot data or not and plot colors. |
Thank you. The link you provided for the new "koko.zip" does not work. I will check the array or some similar name... |
Sorry for inconvinience. Check koko.zip on this page. https://github.com/dinosauria123/Koko/releases/tag/20220129-win32-test |
I try to compile koko-cli on MSYS64 mingw-w64-x86_64-toolchain. I build regex library for MSYS64 env and it is possible to build koko-cli.exe. My regex librery atteched below. copy your home dir and "make install" will copy needed libraries |
I checked out the most important arrays that I would have to access from C++ in order to do a 3D layout plot with vtk:
Maybe you have some experience how to make these arrays accessable from C++? |
No, I am not. linenoise library use C++ and F90. It was written by Ulf Grissmann. |
Hello,
I wondered if you could provide some kind of guide here on how to build koko in linux (and windows) here.
Why I am asking:
I looked into the macro language of KDP-2 a little bit, which is very similar to the one of ACCOS V.
See for instance:
https://spie.org/Publications/Proceedings/Paper/10.1117/12.933359?SSO=1
I wanted to implement a linear fit with the macro language to describe distorted images of non-centered optical systems. I think this is more complicated than doing it in fortran. If I knew how to build Koko I could add an operand / command which does this (I would share it of course).
Do you think it is possible to provide this guide, here?
Another related issue: Where in the program source code would you add such a command?
Kind regards,
Jonas
The text was updated successfully, but these errors were encountered: