Author Topic: Missing files to compile with Autotools  (Read 20965 times)

Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Missing files to compile with Autotools
« on: September 13, 2005, 04:55:53 pm »
Hello,

I checked out the latest version from CVS, and tried the different steps to use the Autotools =

autoconf
automake
./configure

but when I do the automake, I get these error messages:

fiammy@dx6100-003:~/Programming/codeblocks> automake
configure.in: required file `./install-sh' not found
configure.in: required file `./missing' not found
src/plugins/astyle/Makefile.am: required file `./depcomp' not found
Makefile.am: required file `./INSTALL' not found


could it be that some files are missing at the moment from CVS?

Thanks

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Missing files to compile with Autotools
« Reply #1 on: September 15, 2005, 08:47:42 am »
Nothing 's missing, AFAIK.
As soon as you check out from CVS, you must run ./bootstrap ;)
Be patient!
This bug will be fixed soon...

Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Re: Missing files to compile with Autotools
« Reply #2 on: September 15, 2005, 03:47:38 pm »
That's right. Sorry.
That part works now.
I seem to have another problem. When I try to execute make with the standard vanilla SuSE 9.3 wxWidgets (2.5.3), I guess it is compiled with unicode included. Is there a way to tell the configure script to add (experimental, I know) support for unicode?

Thank you,
David

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Missing files to compile with Autotools
« Reply #3 on: September 15, 2005, 06:01:48 pm »
It should detect it automatically. To guess wxWidgets settings, it's using wx-config after all...
If you 're having trouble, please post the output of 'configure' or 'make', whichever gives you problems.
Be patient!
This bug will be fixed soon...

Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Re: Missing files to compile with Autotools
« Reply #4 on: September 15, 2005, 07:09:26 pm »
Well, I did make a 2.6.1 version, but I 'deinstalled' it, because I want to see what a vanilla SuSE installation can do with Code::Blocks. If it installs easily in that environment, you're more likely to get users that when you need to do some strange voodoo ritual to have 2 coexisting wxWidgets releases...

I think I removed all the files the wxWidgets 2.6.1 installation added to my system (sorry, 'our' system as my girlfriend expects me to say :-) ), so there's no wx-config any more... It detects the wxWidgets release 2.5.3 during configure :
---- snip ----
checking for vsnprintf... yes
checking whether to enable debugging... no
checking whether to build the source formatter plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the plugin wizard plugin... yes
checking whether to build the to-do plugin... yes
checking for wx-config... /usr/bin/wx-config
checking for wxWindows version >= 2.4.2... ls: wx*-2.4-config: No such file or directory
ls: wx*-2.4-config: No such file or directory

  Warning: No config found to match: /usr/bin/wx-config --static --libs
           in /usr/lib64/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

yes (version 2.5.3)
configure: Configuring Code::Blocks...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/sdk/Makefile
config.status: creating src/sdk/tinyxml/Makefile
config.status: creating src/sdk/wxscintilla/Makefile
config.status: creating src/sdk/resources/Makefile
config.status: creating src/sdk/resources/lexers/Makefile
config.status: creating src/src/wxDockit/Makefile
config.status: creating src/src/resources/Makefile
config.status: creating src/src/resources/icons/Makefile
config.status: creating src/src/resources/images/Makefile
config.status: creating src/src/resources/images/16x16/Makefile
config.status: creating src/src/Makefile
config.status: creating src/plugins/Makefile
---- snip ----

But, alas, it still fails :-(
-- snip ---
LES -MT wxscintilla.lo -MD -MP -MF ".deps/wxscintilla.Tpo" -c -o wxscintilla.lo `test -f 'src/wxscintilla.cpp' || echo './'`src/wxscintilla.cpp; \
then mv -f ".deps/wxscintilla.Tpo" ".deps/wxscintilla.Plo"; else rm -f ".deps/wxscintilla.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/sdk -I/usr/lib64/wx/include/gtk2-unicode-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I./include -I./src/scintilla/include -I./src/scintilla/src -DSCI_LEXER -DLINK_LEXERS -DGTK -I/usr/lib64/wx/include/gtk2-unicode-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -O2 -O2 -ffast-math -I/usr/lib64/wx/include/gtk2-unicode-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -MT wxscintilla.lo -MD -MP -MF .deps/wxscintilla.Tpo -c src/wxscintilla.cpp  -fPIC -DPIC -o .libs/wxscintilla.o
src/wxscintilla.cpp: In member function `wxCharBuffer
   wxScintilla::GetCurLineRaw(int*)':
src/wxscintilla.cpp:2815: error: no matching function for call to `wxCharBuffer
   ::wxCharBuffer()'
/usr/include/wx-2.5/wx/buffer.h:96: error: candidates are:
   wxCharBuffer::wxCharBuffer(const wxCharBuffer&)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(long unsigned int)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(const char*)
src/wxscintilla.cpp: In member function `wxCharBuffer
   wxScintilla::GetLineRaw(int)':
src/wxscintilla.cpp:2827: error: no matching function for call to `wxCharBuffer
   ::wxCharBuffer()'
/usr/include/wx-2.5/wx/buffer.h:96: error: candidates are:
   wxCharBuffer::wxCharBuffer(const wxCharBuffer&)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(long unsigned int)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(const char*)
src/wxscintilla.cpp: In member function `wxCharBuffer
   wxScintilla::GetSelectedTextRaw()':
src/wxscintilla.cpp:2841: error: no matching function for call to `wxCharBuffer
   ::wxCharBuffer()'
/usr/include/wx-2.5/wx/buffer.h:96: error: candidates are:
   wxCharBuffer::wxCharBuffer(const wxCharBuffer&)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(long unsigned int)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(const char*)
src/wxscintilla.cpp: In member function `wxCharBuffer
   wxScintilla::GetTextRangeRaw(int, int)':
src/wxscintilla.cpp:2857: error: no matching function for call to `wxCharBuffer
   ::wxCharBuffer()'
/usr/include/wx-2.5/wx/buffer.h:96: error: candidates are:
   wxCharBuffer::wxCharBuffer(const wxCharBuffer&)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(long unsigned int)
/usr/include/wx-2.5/wx/buffer.h:96: error:
   wxCharBuffer::wxCharBuffer(const char*)
make[4]: *** [wxscintilla.lo] Error 1
make[4]: Leaving directory `/home/fiammy/Programming/codeblocks/src/sdk/wxscintilla'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/fiammy/Programming/codeblocks/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/fiammy/Programming/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fiammy/Programming/codeblocks/src'
make: *** [all-recursive] Error 1
--- snip ---

Any help would be appreciated :-)

Thanks

grv575

  • Guest
Re: Missing files to compile with Autotools
« Reply #5 on: September 15, 2005, 11:13:33 pm »
Well it needs wx-config.  You still have the one from SUSE wx2.5?  See you shouldn't install wx2.6.1 over wx2.5 to the same directory.  Instead, it would have been better to leave the SUSE wx under the /usr root (/usr/bin/wx-config, /usr/lib/libwx......) and then install wx2.6.1 under a different tree:
./configure --prefix=/opt/wx26
Then you just edit /etc/ldconfig to point to the lib directory in use (/usr/lib or /opt/wx26/lib) and run ldconfig and also edit your path to include the wx bin directory in use.

So, try to repair the suse wx.  or just install 2.6.1 in /opt/wx26 and use that.  or try just copying the /opt/wx26/bin/wx-config file over to your wx25 directory (/usr/bin/wx-config) and hope it works :)


Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Re: Missing files to compile with Autotools
« Reply #6 on: September 16, 2005, 09:10:01 am »
OK. I'll try that. I reinstalled the SuSE RPM after deinstalling the 2.6.1, but there's always something one forgets ...

Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Re: Missing files to compile with Autotools
« Reply #7 on: September 16, 2005, 05:05:58 pm »
Sadly :-(  I have to report a failure. I get the same messages. I have the right wx-config after the installation of the SuSE RPM, but I get the same error messages. Would that be something that isn't in 2.5.3, but is available in 2.6.1? I'll have a look later this evening.

David

grv575

  • Guest
Re: Missing files to compile with Autotools
« Reply #8 on: September 17, 2005, 09:01:21 am »
Sorry, I misread the configure error message.

You know, it's probably missing the search path for the wx libraries (although I would expect the .rpm to do this).  So either:
a) export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
or wherever the libwx*.a library files are located (instead of /usr/local/lib)
b) edit /etc/ld.so.conf
append /usr/local/lib
(or wherever the libwx*.a library files...)
run ldconfig

then run bootstrap and configure again.

Also, what do the following 3 commands give you?
wx-config --prefix
wx-config --static --libs
wx-config --list

Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Re: Missing files to compile with Autotools
« Reply #9 on: September 18, 2005, 09:01:56 pm »
This is the output of the three commands :

kevin:/usr/lib/wx/config # wx-config --prefix
/usr
kevin:/usr/lib/wx/config # wx-config --static --libs
ls: wx*-2.4-config: Onbekend bestand of map
ls: wx*-2.4-config: Onbekend bestand of map

  Warning: No config found to match: /usr/bin/wx-config --static --libs
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

kevin:/usr/lib/wx/config # wx-config --list

    Default config is gtk2-unicode-release-2.5

  Default config will be used for output

  Alternate matches:
    gtk2-ansi-release-2.5
ls: wx*-2.4-config: Onbekend bestand of map
ls: wx*-2.4-config: Onbekend bestand of map


I think I should be changing the default release Code::Blocks uses to the ansi version, but I'm not sure how to do it. I'll have a look in the wxWidgets docs.
I don't know if the prefix is all right either.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Missing files to compile with Autotools
« Reply #10 on: September 18, 2005, 09:15:06 pm »
Quote
I think I should be changing the default release Code::Blocks uses to the ansi version, but I'm not sure how to do it. I'll have a look in the wxWidgets docs.
I don't know if the prefix is all right either.

See the options you can give to configure: "./configure --help"
Especially, check --with-wxdir, --with-wx-config, --with-wx-prefix and --with-wx-exec-prefix
Be patient!
This bug will be fixed soon...

grv575

  • Guest
Re: Missing files to compile with Autotools
« Reply #11 on: September 19, 2005, 01:07:53 am »
also if you do:
wx-config --unicode=no
wx-config --libs

maybe this will switch to the ansi version?

Offline fiammy

  • Multiple posting newcomer
  • *
  • Posts: 46
    • Nebulagame
Re: Missing files to compile with Autotools
« Reply #12 on: September 19, 2005, 11:07:30 am »
No change. Could it be that the configure needs a static library build? When I check the libs with wx-config --libs I get

-L/usr/lib64 -pthread   -L/usr/X11R6/lib64  -lwx_gtk2u_xrc-2.5 -lwx_gtk2u_html-2.5 -lwx_gtk2u_adv-2.5 -lwx_gtk2u_core-2.5 -lwx_baseu_xml-2.5 -lwx_baseu_net-2.5 -lwx_baseu-2.5

However, when I do the wx-config --static --libs, I get an error message I have been seeing a lot ;
ls: wx*-2.4-config: No such file or directory
ls: wx*-2.4-config: No such file or directory

  Warning: No config found to match: /usr/bin/wx-config --static --libs
           in /usr/lib64/wx/config
  If you require this configuration, please install the desired  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.  You may use wx-config --list to see all configs available in
  the default prefix.

wx-config --list gives me :


    Default config is gtk2-unicode-release-2.5

  Default config will be used for output

  Alternate matches:
    gtk2-ansi-release-2.5
ls: wx*-2.4-config: No such file or directory
ls: wx*-2.4-config: No such file or directory

Any further ideas would be welcome :-)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Missing files to compile with Autotools
« Reply #13 on: September 19, 2005, 11:30:53 am »
Quote
Could it be that the configure needs a static library build?

On the contrary. Once, I had problems because it would use the static lib while codeblocks needs a shared library to link...
Be patient!
This bug will be fixed soon...

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Missing files to compile with Autotools
« Reply #14 on: September 19, 2005, 12:07:50 pm »
I 'm now trying to build C::B in Ubuntu Hoary using the distro-supplied wxGTK-2.5.3.
I 'll keep you posted.
Be patient!
This bug will be fixed soon...