Configure question, Installing in Ubuntu 16.04
Configure question, Installing in Ubuntu 16.04
I'm trying to install wxWidgets properly in Ubuntu for the first time, but all of the specific directions i'm finding fail for me at one point, the ../Configure step.
This isn't directly relating to wxWidgets I know, but I'm hoping someone could assist a bit.
These are the steps I'm following, but at the Configure of step 3, 'bash: ../configure: No such file or directory' is displayed.
1. $ sudo apt-get install libgtk-3-dev build-essential checkinstall
2. $ mkdir gtk-build
$ cd gtk-build/
3. $ ../configure --disable-shared --enable-unicode
$ make
Any advice appreciated
This isn't directly relating to wxWidgets I know, but I'm hoping someone could assist a bit.
These are the steps I'm following, but at the Configure of step 3, 'bash: ../configure: No such file or directory' is displayed.
1. $ sudo apt-get install libgtk-3-dev build-essential checkinstall
2. $ mkdir gtk-build
$ cd gtk-build/
3. $ ../configure --disable-shared --enable-unicode
$ make
Any advice appreciated
Re: Configure question, Installing in Ubuntu 16.04
Hi,
Well, is there a file called 'configure' in gtk-build's parent dir? If not, the error message is unsurprising. Did you mkdir starting in the top dir of the wxWidgets extracted source?
If there is a file there called 'configure', it's hard to guess why it fails. Do you own the file? Does it have sensible permissions?
Regards,
David
Well, is there a file called 'configure' in gtk-build's parent dir? If not, the error message is unsurprising. Did you mkdir starting in the top dir of the wxWidgets extracted source?
If there is a file there called 'configure', it's hard to guess why it fails. Do you own the file? Does it have sensible permissions?
Regards,
David
Re: Configure question, Installing in Ubuntu 16.04
David,
I succeeded in the configuration, and build.
There were two configure files, one with .in.
I must have been in the wrong current directory, and didn't realize this was a file name that accompanied wxWidget files.
Thank you.
I succeeded in the configuration, and build.
There were two configure files, one with .in.
I must have been in the wrong current directory, and didn't realize this was a file name that accompanied wxWidget files.
Thank you.
Re: Configure question, Installing in Ubuntu 16.04
I have a followup related question if I may.
I'm following these instructions:
http://www.binarytides.com/install-wxwidgets-ubuntu/
Step 4. is using:
$ sudo checkinstall
But failed with the following result:
Any suggestions appreciated.
I'm following these instructions:
http://www.binarytides.com/install-wxwidgets-ubuntu/
Step 4. is using:
$ sudo checkinstall
But failed with the following result:
Code: Select all
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@me-OptiPlex-780 ]
1 - Summary: [ wxWidgets302 ]
2 - Name: [ gtk ]
3 - Version: [ build ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ gtk-build ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ gtk ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
make: *** No rule to make target '/home/me/wxWidgets302/gtk-build/lib/wx/include/gtk3-unicode-static-3.0/wx/setup.h', needed by 'wxregex_regcomp.o'. Stop.
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
Any suggestions appreciated.
Re: Configure question, Installing in Ubuntu 16.04
It's sufficiently unrelated that a separate topic would have been better...I have a followup related question if I may.
I've no experience of using checkinstall, and I can't guess why it is failing. However that link prompts various more general points and questions:I'm following these instructions: http://www.binarytides.com/install-wxwidgets-ubuntu/
- 1) Why are you doing this? What is your ultimate goal, and why have you chosen this approach?
- 1a) Why not use the wxWidgets packages supplied by your version of ubuntu? That's the normal way to do things on Linux; it's not always possible e.g. if your distro/version doesn't supply wx, or not a recent-enough version, but it saves you having to package wx yourself.
1b) Why are you building wx statically-linked? That's normal for Windows but not on Linux, partly because of 1a).
3) 'No rule to make target '/home/me/wxWidgets302/gtk-build/lib/wx/include/gtk3-unicode-static-3.0/wx/setup.h': Does that filepath exist? - 1a) Why not use the wxWidgets packages supplied by your version of ubuntu? That's the normal way to do things on Linux; it's not always possible e.g. if your distro/version doesn't supply wx, or not a recent-enough version, but it saves you having to package wx yourself.
Code: Select all
mkdir gtk-build && cd gtk-build && \
../configure --enable-debug {any other options, e.g. --with-gtk=3} --prefix=$(pwd) && make -j
To use the build, point to it when you build your program: in a terminal, first do PATH=/full/path/to/gtk-build:$PATH, or if you use an IDE, put things like /full/path/to/gtk-build/wx-config --cxxflags in the IDE's Compiler field, and similarly with --libs in the Linker field.
Re: Configure question, Installing in Ubuntu 16.04
Thanks David.
Every article I found was command-line load and build. Many for old versions. Not sure if packages for CodeLite work with Code::Blocks, or if there is a difference,
I have seen numerous different setup & install instructions, many slightly different, it is a bit confusing.
I have looked for a wxWidgets package supplied by Ubuntu, but found none listed (where I looked). The only downloads were 'Source for Linux'.1) Why are you doing this? What is your ultimate goal, and why have you chosen this approach?
1a) Why not use the wxWidgets packages supplied by your version of ubuntu? That's the normal way to do things on Linux; it's not always possible e.g. if your distro/version doesn't supply wx, or not a recent-enough version, but it saves you having to package wx yourself.
Every article I found was command-line load and build. Many for old versions. Not sure if packages for CodeLite work with Code::Blocks, or if there is a difference,
I have seen numerous different setup & install instructions, many slightly different, it is a bit confusing.
Re: Configure question, Installing in Ubuntu 16.04
sudo apt install libwxgtk3.0-devI have looked for a wxWidgets package supplied by Ubuntu, but found none listed
will get you the main packages and their dependencies. Or a search for libwxgtk* will catch the supplementary webview and media ones.
I agree. But the source-code has the official instructions. Look in docs/gtk/ and you'll find readme.txt with the bare essentials, and install.txt with a lot more detail.I have seen numerous different setup & install instructions, many slightly different, it is a bit confusing.
Re: Configure question, Installing in Ubuntu 16.04
David,
Here is the result:
me@me-OptiPlex-780:~$ sudo apt install libwxgtk3.0-dev
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libwxgtk3.0-dev is already the newest version (3.0.2+dfsg-1.3ubuntu0.1).
The following packages were automatically installed and are no longer required:
bogofilter bogofilter-bdb bogofilter-common evolution-common
libchamplain-0.12-0 libchamplain-gtk-0.12-0 libcryptui0a libevolution
libgsl2 libjavascriptcoregtk-3.0-0 libmspack0 libpst4 libwebkitgtk-3.0-0
libwebkitgtk-3.0-common libytnef0 linux-headers-4.8.0-36
linux-headers-4.8.0-36-generic linux-image-4.8.0-36-generic
linux-image-extra-4.8.0-36-generic seahorse-daemon
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
So it was already installed? '0 Newly installed'?
Here is the result:
me@me-OptiPlex-780:~$ sudo apt install libwxgtk3.0-dev
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libwxgtk3.0-dev is already the newest version (3.0.2+dfsg-1.3ubuntu0.1).
The following packages were automatically installed and are no longer required:
bogofilter bogofilter-bdb bogofilter-common evolution-common
libchamplain-0.12-0 libchamplain-gtk-0.12-0 libcryptui0a libevolution
libgsl2 libjavascriptcoregtk-3.0-0 libmspack0 libpst4 libwebkitgtk-3.0-0
libwebkitgtk-3.0-common libytnef0 linux-headers-4.8.0-36
linux-headers-4.8.0-36-generic linux-image-4.8.0-36-generic
linux-image-extra-4.8.0-36-generic seahorse-daemon
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
So it was already installed? '0 Newly installed'?
Re: Configure question, Installing in Ubuntu 16.04
Yes: "libwxgtk3.0-dev is already the newest version (3.0.2+dfsg-1.3ubuntu0.1)"So it was already installed?
If you open a terminal and do: wx-config --list
you should see it's available.