Code Monkey home page Code Monkey logo

Comments (7)

dariolah avatar dariolah commented on September 1, 2024

A guessing game:

  • iupcontrols.dll is in PATH, e.g. same directory as .exe?
  • iupcontrols.dll is same version, 32/64 bit, as .exe?
  • iupcontrols.dll is compiled with same compiler as .exe? GCC/Mingw or VCC
    $ file iupcontrols.dll
    iupcontrols.dll: PE32+ executable (DLL) (console) x86-64, for MS Windows

from nim-iup-examples.

OxeStone avatar OxeStone commented on September 1, 2024

Thank you for the quick response. I omitted to mention the issue when I try to run 'matrix.nim' and 'plot.nim'. I had checked the above suggestions before posting. It turns IUP DLLs need other DLLs not included in the IUP zip file such as 'cd.dll', 'cdgl.dll' etc. Now I get the following message when running 'plot.nim'
could not import: cdCanvasFont
I am using MinGW compiler and libraries.
Cheers!

from nim-iup-examples.

OxeStone avatar OxeStone commented on September 1, 2024

Update: I tried all 36 examples under NIUPC. All work except 'plot' and 'webbrowser'. Different errors.
plot: could not import: cdCanvasFont
webbrowser: (no errors warnings or messages).
Thank you!

from nim-iup-examples.

dariolah avatar dariolah commented on September 1, 2024

There are more libraries needed, see...
https://www.tecgraf.puc-rio.br/iup/en/download_tips.html

This is list of DLLs I'm using for testing ...

cdcontextplus.dll
cddirect2d.dll
cd.dll
cdgl.dll
cdim.dll
cdpdf.dll
freetype6.dll
ftgl.dll
iupcd.dll
iupcontrols.dll
iup.dll
iupglcontrols.dll
iupgl.dll
iupim.dll
iupimglib.dll
iup_mglplot.dll
iupole.dll
iup_plot.dll
iup_scintilla.dll
iuptuio.dll
pdflib.dll
zlib1.dll

Additional for mingw cross compiling, probably you don't need them

boehmgc64.dll
libgcc_s_seh-1.dll
libstdc++-6.dll
libwinpthread-1.dll

from nim-iup-examples.

OxeStone avatar OxeStone commented on September 1, 2024

I have the same DLLs in the first list in my 'IUP' directory
I don't have 'boehmgc64.dll'
I have 'libgcc_s_sjlj-1.dll' instead of 'libgcc_s_seh-1.dll' (same)
I have 'libstdc++-6.dll' and 'libwinpthread-1.dll'

I use VS Code and the 'nim' extension. How do you compile and run 'plot.nim'?

from nim-iup-examples.

dariolah avatar dariolah commented on September 1, 2024

Same as all other examples, nothing special about it. See niupc\Makefile
It's been a while since I've run it, only tested compiling it.

I've tried now plot and I have broken install of IUP on Linux, libCD specifically :D

When I try windows build I get error about importing function:
could not import: cdCanvasFont

Add this option to compile command: -d:nimDebugDlOpen

Or you can try to run it with procmon, maybe it will show you why it fails.:
https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

cd.dll has symbol cdCanvasFont no idea why it is not loading it. When I'll have more time I'll try with C example then work out Nim version.

from nim-iup-examples.

dariolah avatar dariolah commented on September 1, 2024

Small update, plot example works on Linux as is. Still no clue why Win version, cross compiled + wine, fails

from nim-iup-examples.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.