wxSQLite3 Linux install, autoreconf question. Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
AshtonC1
Earned some good credits
Earned some good credits
Posts: 100
Joined: Wed Feb 18, 2015 4:56 pm

wxSQLite3 Linux install, autoreconf question.

Post by AshtonC1 »

I'm trying to install wxSQLite3-3.5.3, but paused by autoreconf issues.

The instructions suggest using autoreconf to recreate the configure script.
https://github.com/utelle/wxsqlite3#install

Running autoreconf in terminal, from the wxSQLit3 directory containing the configure.ac file results in:

stv@HpNotebook ~/Downloads/wxsqlite3-3.5.3 $ autoreconf
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory


I also tried using autconf it's results were as follows:

stv@HpNotebook ~/Downloads/wxsqlite3-3.5.3 $ autoconf
configure.ac:16: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:17: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.ac:18: error: possibly undefined macro: AM_SILENT_RULES
configure.ac:28: error: possibly undefined macro: AC_MSG_FAILURE
configure.ac:65: error: possibly undefined macro: AC_MSG_WARN
configure.ac:69: error: possibly undefined macro: AM_CONDITIONAL

Where am I going wrong?
Any advice appreciated.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxSQLite3 Linux install, autoreconf question.

Post by DavidHart »

Hi,

Is aclocal installed? ('which aclocal')
If not, install it; that probably means installing the automake package.

Regards,

David
AshtonC1
Earned some good credits
Earned some good credits
Posts: 100
Joined: Wed Feb 18, 2015 4:56 pm

Re: wxSQLite3 Linux install, autoreconf question.

Post by AshtonC1 »

Thanks David,
No I have not installed aclocal/automake package.
I'll do so and report back.
AshtonC1
Earned some good credits
Earned some good credits
Posts: 100
Joined: Wed Feb 18, 2015 4:56 pm

Re: wxSQLite3 Linux install, autoreconf question.

Post by AshtonC1 »

I have installed the automake package and re-tried the autoreconf, getting this result:

stv@HpNotebook ~/Downloads/wxsqlite3-3.5.3 $ autoreconf
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
autoreconf: 'configure.ac' or 'configure.in' is required
cannot fetch initial working directory: No such file or directory at /usr/share/autoconf/Autom4te/General.pm line 196.

But there is a configure.ac file present.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxSQLite3 Linux install, autoreconf question.

Post by DavidHart »

At a guess, you opened a terminal in ~/Downloads/wxsqlite3-3.5.3, then you deleted that dir and (maybe) recreated it. That's what normally gives me the 'getcwd() failed' error.

Either open a new terminal or, in the current one, do:
cd `pwd`
AshtonC1
Earned some good credits
Earned some good credits
Posts: 100
Joined: Wed Feb 18, 2015 4:56 pm

Re: wxSQLite3 Linux install, autoreconf question.

Post by AshtonC1 »

you opened a terminal in ~/Downloads/wxsqlite3-3.5.3, then you deleted that dir and (maybe) recreated it.
That was correct.
AshtonC1
Earned some good credits
Earned some good credits
Posts: 100
Joined: Wed Feb 18, 2015 4:56 pm

Re: wxSQLite3 Linux install, autoreconf question.

Post by AshtonC1 »

Now I'm trying to understand this result.

stv@HpNotebook ~/Downloads/wxsqlite3-3.5.3/build-gtk $ make
CC sqlite3/secure/src/sqlite3secure.lo
CXX src/wxsqlite3.lo
CXXLD libwxcode_gtk3u_wxsqlite3-3.0.la

*** Warning: Linking the shared library libwxcode_gtk3u_wxsqlite3-3.0.la against the
*** static library /usr/local/lib/libwx_gtk3u_core-3.0.a is not portable!

*** Warning: Linking the shared library libwxcode_gtk3u_wxsqlite3-3.0.la against the
*** static library /usr/local/lib/libwx_baseu-3.0.a is not portable!
ar: `u' modifier ignored since `D' is the default (see `U')
CXX samples/minimal.o
CXXLD samples/minimal
CXX samples/treeview/foldertree.o
CXX samples/treeview/projectlist.o
CXX samples/treeview/treeviewapp.o
CXX samples/treeview/treeviewsample.o
CXXLD samples/treeview/treeview

I have not gotten the warnings in the past.

OptiPlex780-1 wxsqlite3-3.5.3 # make
CC sqlite3/secure/src/sqlite3secure.lo
CXX src/wxsqlite3.lo
CXXLD libwxcode_gtk2u_wxsqlite3-3.0.la
ar: `u' modifier ignored since `D' is the default (see `U')
CXX samples/minimal.o
CXXLD samples/minimal
CXX samples/treeview/foldertree.o
CXX samples/treeview/projectlist.o
CXX samples/treeview/treeviewapp.o
CXX samples/treeview/treeviewsample.o
CXXLD samples/treeview/treeview

Any advice greatly appreciated.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxSQLite3 Linux install, autoreconf question.

Post by DavidHart »

The top google result, https://stackoverflow.com/questions/835 ... atic-libra, seems to say "Don't mix static and shared libs", and/or ensure you used -fPIC. Other results seemed much more relaxed about it.

If you need static wx libs, surely you need a static wxsqlite3 too...?
Post Reply