On 28.12.2010 14:52, Diego Efe wrote:
> I've tried to build the version 1.3.0rc1 in win32 using CMake-2.6.4
> with build type "Release" and NMake makefiles generator.
Although we have CMake files in FLTK, this is not our primary build
system and can have problems. If you want to do a MS IDE build, you
could probably try the full ide projects in ide/VisualC{2008|2010},
but if you favour nmake...
> It builds as static library but then I've the
> ADD_DEFINITIONS(-DFL_DLL) to the CMakeLists.txt of the top directory
> and got this kind of errors:
> error C2491: 'Fl::idle' : definition of dllimport static data member not
> allowed
Hmm, I don't understand. Where exactly does the build process stop,
and what are the error messages? Please try not to describe errors,
but post the exact text with some lines before the error to see the
context (cut'n'paste). If you work with a CMD shell, you may need to
enable "quick edit mode" in its properties.
Note1: FL_DLL and FL_LIBRARY must be defined to build the fltk DLL
itself, but you must define FL_DLL only if you compile your user
program and want to link with the DLL. Otherwise neither should be
defined, so that FLTK builds only the static version.
Note2: There's a known problem with some FL_EXPORT statements in
FLTK 1.3.0-rc1, but the message shown is probably not related.
We need more context info.
> Am I forgetting something to make it work?
I don't know for sure, maybe it doesn't work, and I can't test it.
I would test, but I need to install Windows CMake, and you can help
if you tell me how to set up nmake to work (IIRC you must add some
VC-specific dir's to the path...).
BTW: fltk.bugs is reserved for our automatic bug tracking system.
If you want to ask user questions ("I can't build..."), please go
to flkt.general. If you are sure that you found a bug, please file
a bug report at <http://www.fltk.org/str.php>. Thanks.
I'm not yet sure what your problem is, hence I suggest to continue
in fltk.general.
Albrecht
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs