User forums > Help
Compile CodeBlocks by Cygwin
PetrPetrov:
I am worrying that problem in my Cygwin system.
It seems that libtool utility always create static libraries.
I have created small test project:
1. Wrote small a.cpp file the following content:
--- Code: ---__attribute__ ((dllexport)) int fn(int a)
{
return a + 19;
}
--- End code ---
and compile it by libtool (just wrapper for gcc)
--- Code: ---libtool --mode=compile gcc -shared -c a.cpp
--- End code ---
now I am trying to get libtest.dll or libtest.la
--- Code: ---$ libtool --mode=link gcc -shared -g -O -o libtest.la a.lo
libtool: link: rm -fr .libs/libtest.a .libs/libtest.la .libs/libtest.lai
libtool: link: ar cru .libs/libtest.a .libs/a.o
libtool: link: ranlib .libs/libtest.a
libtool: link: ( cd ".libs" && rm -f "libtest.la" && ln -s "../libtest.la" "libtest.la" )
--- End code ---
I have specified -shared option.
What I am doing wrong?
oBFusCATed:
Hm, then do you have wx.m4 file or something like this where AM_PATH_WXCONFIG or AM_OPTIONS_WXCONFIG are defined?
PetrPetrov:
Thank you very much!
Now I manually copied wxwin.m4 into local codeblocks source folder, and added
--- Code: ---m4_include(wxwin.m4)
--- End code ---
at begin of configure.in...
However, it does not matter... libcompiler.a is still created...
I think that libcompiler.dll should be created to allow codeblocks.exe to load this plugin and able to create new projects....
Please see my post above about libtool problem.
oBFusCATed:
Can't help on libtool issues, because I don't understand it, sorry.
stahta01:
--- Quote from: oBFusCATed on November 07, 2013, 06:49:03 pm ---Hm, then do you have wx.m4 file or something like this where AM_PATH_WXCONFIG or AM_OPTIONS_WXCONFIG are defined?
--- End quote ---
IIRC, I followed the steps suggested in URL to get past this error in the past.
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
I likely did something based on this line.
--- Code: ---export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
--- End code ---
Tim S
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version