Klaas Holwerda escribió:
> Yesid Hernandez wrote:
>   
>> After some test I could make cmake working with MinGW. Take a look at: 
>> http://mechatronics.wordpress.com/2007/04/07/wxwidgets-283-for-wxart2d-on-msw/
>>  
>> to see some more information.
>>     
>
> But what i read there is mainly based on wxWidgets compiled using configure.
>
> Do you mean that
>
>
> cmake -G "Unix Makefiles" ../wxArt2D
>
> does the trick?
> I wonder why? I mean is MINGW not set in that case?
>
> I noticed yesterday that using make-mingw -f makefile.gcc is producing 
> library naming which is not unix based.
> So i can not imagine how this works.
>
>   
The point here I think is that using the makefile.gcc that comes with 
wxWidgets there is not a wx-config "program" it generates a file named: 
wx-config.in but I tried to run it and it seems is not valid, that the 
reason FindwxWidgets.cmake cannot find the library because it cannot run 
wx-config.

The other way I did and worked was using ./configure ...., then make and 
then in a directory this method generates wx-config that cmake can run 
and then it find the library.
>> Then when I tried to compile with make. I got the following error:
>>
>> expat.h file not found, it seems there is not the correct path to find 
>> the file, because with wxWidgets-2.8.3 this is in src\expat\lib, I did 
>> some changes in the files that need this: xmlparse/include/genxmlpars.h, 
>> modules/canvas/include/xmlpars.h. And now my configuration is working, I 
>> think you should take a look of this.
>>     
>
> Did you set WXWIN variable first when setting up with cmake?
> I noticed that if this is not set the first time, that because of cached 
> setting it is not found the second time by cmake.
>
> Klaas
>
>
>   
That's true, but then I opened MSYS again an there variable was like 
updated.

Now my app, is working thanks for your help. About the problem compiling 
because the path to find the file expat.h?, is that error in everyone 
conf or just me?, are you going to fixed?, I could get it working by 
copping the file to the wx/ directory, and change the sources I don't 
think this is a really good fix.

Regards,

Ibraim


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wxart2d-users_dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to