Compiling SVN headaches

CodeLite installation/troubleshooting forum
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Compiling SVN headaches

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiling SVN headaches

Post 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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiling SVN headaches

Post 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

CodeLite 15.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiling SVN headaches

Post 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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiling SVN headaches

Post 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%

CodeLite 15.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiling SVN headaches

Post 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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiling SVN headaches

Post by evstevemd »

Yup!
I have done that! you have a good point :D

CodeLite 15.x
CodeLite is awesome, I just Love it!

Post Reply