Page 1 of 1

Compiling SVN headaches

Posted: Wed Mar 03, 2010 3:59 am
by evstevemd
I have tried to compile SVN sources I checked out yesterday. Thay failed me both in Linux and windows.
Here is error I get in windows. Both WXWIN and WXCFG are well configured.
So I don't have Idea what is wrong !

[quote]----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "CodeFormatter.mk" all"
----------Building project:[ CodeFormatter - WinReleaseUnicode ]----------
In file included from C:\wxWidgets-2.8.10\include/wx/defs.h:21,
from C:\wxWidgets-2.8.10\include/wx/string.h:25,
from ../CodeLite/archive.h:28,
from ../CodeLite/serialized_object.h:28,
from G:/Documents/From Mandriva/Codelite/CodeFormatter/formatoptions.h:28,
from G:/Documents/From Mandriva/Codelite/CodeFormatter/formatoptions.cpp:25:
C:\wxWidgets-2.8.10\include/wx/platform.h:196:22: error: wx/setup.h: No such file or directory
In file included from C:\wxWidgets-2.8.10\include/wx/platform.h:293,
from C:\wxWidgets-2.8.10\include/wx/defs.h:21,
from C:\wxWidgets-2.8.10\include/wx/string.h:25,
from ../CodeLite/archive.h:28,
from ../CodeLite/serialized_object.h:28,
from G:/Documents/From Mandriva/Codelite/CodeFormatter/formatoptions.h:28,
from G:/Documents/From Mandriva/Codelite/CodeFormatter/formatoptions.cpp:25:
C:\wxWidgets-2.8.10\include/wx/chkconf.h:103:9: error: #error "wxUSE_DYNLIB_CLASS must be defined."

I have attached full log

Re: Compiling SVN headaches

Posted: Wed Mar 03, 2010 9:08 am
by eranif
Some questions:
- Did you compiler wxWidgets your self?
- When you say:
evstevemd wrote:Both WXWIN and WXCFG are well configured
- can you please paste their content here also?
- to build codelite, you should make sure that LiteEditor is the active project and build this one


About the attached error log:
- windres does not like your files located under path with spaces

Eran

Re: Compiling SVN headaches

Posted: Thu Mar 04, 2010 1:22 pm
by evstevemd
WXWIN=C:\wxWidgets-2.8.10
WXCFG=lib\gcc_lib\wswu <--------------Not very sure about htis but it is path to config file

I will try putting in in non space dir and see

Re: Compiling SVN headaches

Posted: Thu Mar 04, 2010 1:52 pm
by eranif
Change your WXCFG into gcc_dll\mswu

Also: codelite will *not* work properly when compiled against static libs of wxWidgets.

You *must* compile wxWidgets as shared DLL.

A better solution, is to install codelite with the bundled wxWidgets2.8.10 (compiled as monolithic DLL / Unicode debug + release)

Eran

Re: Compiling SVN headaches

Posted: Mon Mar 08, 2010 3:07 pm
by evstevemd
I had to install the bundle as suggested and compiled fine
added below line to update.bat and it updated
I hope now I can remove the wxShared installed by CL and compile static version :)

Code: Select all

CD %CurrentWorkingDir%

Re: Compiling SVN headaches

Posted: Mon Mar 08, 2010 9:44 pm
by eranif
Why not keeping it? so you could always get the latest from SVN

You can define an environment variable set

from 'settings -> environment variable' define new set (click on the 'New' button) and name it 'wx-static' and point it to your static installation.

So now you should have 2 environment variables set:
Default & wx-static

By simply changing between the selection in that dialog codelite will switch to the selected environment variable set. (you will get an indication in the status bar of which env set is being used)

Eran

Re: Compiling SVN headaches

Posted: Tue Mar 09, 2010 8:40 am
by evstevemd
Yup!
I have done that! you have a good point :D