← Back to team overview

kicad-developers team mailing list archive

Re: Re: round() function

 

> Could it be that CMake (a program I didn't know so far) is not able to
> generate the necessary solution files for VC8, when wxWidgets 2.7.0-1
> is used?

It appears that way, I checked CMake cvs too and it doesn't yet seem to be fixed there either, although I didn't test it.

[CMake install dir]\share\CMake\Modules\FindwxWidgets.cmake
is the file which attempts to find wxWidgets, it may be easy to fix it there or you could change CMakeLists.txt to manually set the correct options instead of the FIND_PACKAGE(wxWidgets REQUIRED) call.

If you enable debug output in FindwxWidgets.cmake (line 103) you may have a better chance to find out what goes wrong. You probably want to run CMake from the command line when you do this though, as the GUI only displays the last status message.

I don't have any time to look further into this now, sorry.
Hopefully this will be fixed in the next CMake release.

> Did you try with wxWidgets 2.7.0-1 in combination with CMake? If you
> did, how was the result and how did you do it?

No, 2.6.3 worked for me so I didn't even look for updates, or were aware of any.

Regards,
Daniel

> 
> Best rgds,
> 
> --Geert
> 
> --- In kicad-devel@xxxxxxxxxxxxxxx, Daniel Wallner
> <daniel.wallner@...> wrote:
> >
> > Hi,
> > now I have updated the CMake project files and the Visual C++ fixes.
> > Extract the two files I have uploaded in kicad-dev.
> > Then download CMake from http://www.cmake.org
> > Run the CMake GUI to create visual studio project files, or nmake
> makefiles.
> > Set EXECUTABLE_OUTPUT_PATH to where kicad-bin is, if you wan't to be
> able to run and debug the programs directly.
> > 
> > All changes in macros.h aren't necessary for compilation, but I just
> don't like macros.
> > None of the changes should case any problems with gcc.
> > 
> > Regards,
> > Daniel
> > 
> > > Hi,
> > > 
> > > Trying to start using VC++ 2005 Express edition to compile KiCAD.
> > > 
> > > When trying to compile the files in the common directory, there's
> a file
> > > called "trigo.cpp" who's using the function round().
> > > 
> > > However, such function is unknown to VC++.
> > > 
> > > Is there an alternative for this? If so, then one could use the
> > > compiler switch __WINDOWS__ to switch between Windows and non-Windows
> > > targets.
> > > 
> > > Also the following construnction is unknown to VC++:
> > > 
> > > #define EXCHG(a,b) { typeof(a) __temp__ = (a); (a) = (b); (b) =
> > > __temp__; }
> > > 
> > > The compiler can't handle "typeof(a) __temp__".
> > > 
> > > This is used frequently into the file gr_basic.cpp, indirectly via the
> > > CLIP_LINE() macro.
> > > 
> > > 
> > > Best rgds,
> > > 
> > > --Geert
> > > 
> > > 
> > >
> >
> 
> 
> 
> 
> 
>