I downloaded the file you sent me. If I understand, you would that I start
this file as a standalone program with visual studio. To do this, it's
necessary to add a number of (.lib) to the path of the compiler, but I cannot
find what of these files is to add to Visual Studio.
I try with this list, taken from the makefile of threshold-example
(gdk_pixbuf-2.0.lib atk-1.0.lib glib-2.0.lib gmodule-2.0.lib gobject-2.0.lib
gtk-win32-2.0.lib gtkglext-win32-1.0.lib gdkglext-win32-1.0.lib intl.lib
iconv.lib libjpeg.dll.a.lib jpeg.lib pango-1.0.lib pangowin32-1.0.lib
cairo.lib libpng.dll.a.lib libz.dll.a.lib libtiff.dll.a.lib tiff.lib png.lib
). But it doesn't work.
Do you have a list of the necessary files .lib to add in Visual Studio?
thanks a lot
Angelo
________________________________
From: David Necas (Yeti) <[email protected]>
To: Gwyddion use discussion <[email protected]>
Sent: Wednesday, January 7, 2009 4:29:00 PM
Subject: Re: [Gwyddion-users] Finding images with grains in a big set
On Mon, Jan 05, 2009 at 10:29:37AM -0800, Angelo Ulivieri wrote:
>
> I would to implement this module. It seems to be a simple task.
> Do you have an empty C file from which I can start? I read that a starting
> point can be the threshold-example module...but I suppose aren't written
> useful operation for my task in it .
> Where can I find something in which I have only to add your suggested code?
I wrote a C template for batch data processing with Gwyddion functions.
It shows how to initialize both Gtk+ and Gwyddion avoiding communication
with the X server (not useful on Win32 where the GUI is always
available, it but makes it usable on Unix in a non-graphical
environment).
It loads and saves files, with error handling.
It does some data processing. In fact, it performs grain marking,
though poorly. Devising a fully automated marking procedure needs some
thinking and experimenting and it will probably need to level the data
first, etc. This is the part everyone needs to fill in with his own
code...
> Then, as I read, the only manner to add the module is to execute "nmake" in
> the CMD command line (on windows).. is it exact?
You do not have to. I cannot describe you this in detail, but from what
I remember about Visual Studio, you can create a project and then add
paths to Gwyddion, Gtk+, GLib, ... header files to the search paths, and
the Gtk+, Gwyddion, etc. library paths to library search paths and link
with all the necessary libs. What you need to add can be dervied from
the nmake makefile. This will be some work, but once you have such
project it is probably easy to reuse. And it might be useful for
others. We do not make project files because we are more interested in
automated builds -- and the makefiles seem to be much easier to generate
from Unix makefiles.
Regards,
Yeti
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users