User forums > General (but related to Code::Blocks)

Compiling Code::Blocks: ./bootstrap command errors.

<< < (2/7) > >>

stahta01:

--- Quote from: Krice on August 12, 2019, 11:54:56 am ---I have the same problem, but also wx-config isn't found, should it be added to path or something like that? I think wxwidgets compiled ok. I'm trying to compile C::B on OSX (latest version). By the way, why it is this difficult? I already had tons of problems trying to compile wxwidgets, because the readme instructions were not correct.

--- End quote ---

There are very few OSX experts on this website.

I suggest asking here about how to install wxWidgets on OSX so wx-config works.
https://forums.wxwidgets.org/viewforum.php?f=23

Once you get wx-config to work; I suggest reading this post http://forums.codeblocks.org/index.php/topic,23428.msg159512.html#msg159512

Tim S.

Krice:
I got wx-config to work by just using the full path to it. But bootstrap is still not working:


--- Code: ---aclocal: warning: couldn't open directory '/Users/(user)/Documents/wxWidgets-3.1.2/share/aclocal': No such file or directory
configure.ac:141: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
configure.ac:142: warning: macro 'AM_PATH_WXCONFIG' not found in library
configure.ac:26: installing './compile'
configure.ac:22: installing './missing'
src/base/tinyxml/Makefile.am: installing './depcomp'
configure.ac:141: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:142: error: possibly undefined macro: AM_PATH_WXCONFIG

--- End code ---

Well yes, there is no share/aclocal directory in the wxWidgets-3.1.2. Why isn't it there, didn't it compile or am I missing something?

stahta01:

--- Code: ---export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
--- End code ---

Replace wx-config with the full path to it!

Edit: You need to find a website that teaches the basics of command line tasks on OSX.

Because, I am guessing, you do not know the basics!

Edit2: Post what .../wx-config --prefix gives; replace ... with path

Edit3: You do know that wxWidgets needs to be installed on your computer; just downloading the sourcecode does not install it!

Tim S.

Krice:

--- Quote from: stahta01 on August 12, 2019, 04:51:52 pm ---You do know that wxWidgets needs to be installed on your computer; just downloading the sourcecode does not install it!
--- End quote ---

I'm not on my mac mini right now, but I did follow installation instructions of wxwidgets and I guess it did something. It did compile it quite a while, like 20 minutes or even more. But I have no idea if it was installed correctly, however I managed to complete all steps in instructions about how to install it. But I can say that I don't know how programming (C/C++ in this case) works in OSX. Other than it requires compiling libraries, because I guess you need specific version for that OS version or whatever. But it seems to be quite hard to understand where library files are and how to use them. When you look at the wxwidgets directory it's just full of randomly named strange files. Well I guess source files do make some sense, but nothing else does.

Krice:
I tried to star over and follow wxwidgets instructions. I get an error about "try a different SDK" in configure command which I think could be result of not having XCode installed (I do have command line tools). This is just a theory which I have to try later, because XCode download is 7,5Gb and the internet is ~700kb/sec (wlan). The wonders of modern world. Besides it's thunderstorm today which means it's better unplug computers fast if it gets bad, so I'm not even going to try it today. The problem I had with XCode was that the automatic update began to fail after the size of that thing got over 5Gb I think. It just gives up and never works. If you can stop automatic update for XCode only then it might work.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version