News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

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

Started by spflanze, January 28, 2019, 09:15:34 PM

Previous topic - Next topic

Miguel Gimenez

Quote from: sodev on August 15, 2019, 01:46:56 PM
Welcome to Linux where unlike in Windows the current directory is not on the search path.

This is true for cmd.exe, but not for PowerShell. M$ is slowly approaching to Linux.

Krice

Quote from: sodev on August 15, 2019, 01:46:56 PM
Welcome to Linux where unlike in Windows the current directory is not on the search path.

Could you like stay away from this discussion, because you are not adding anything to it? If you like to insult people, do it elsewhere.

sodev

Should have quoted your following sentence as well... but yes, i already told you two times what the problem is and how to fix it, i am done here.

stahta01

#18
So, does the clearly obvious code work?


export ACLOCAL_FLAGS="-I `./wx-config --prefix`/share/aclocal"


Edit: And, post a link to the wxWidgets directions you are following.

Edit2: And, why does the directions not say to install the wxWidgets?

And, why do you NOT use the wxforums to get help?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Krice

Quote from: stahta01 on August 16, 2019, 12:22:03 AM
So, does the clearly obvious code work?

It does.. I guess. It's not telling anything. However bootstrap doesn't work, it's still stopping when it doesn't find /Users/Krice/Documents/wxw/share/aclocal directory. That directory doesn't exist, so it's kind of hard to find it.

QuoteEdit: And, post a link to the wxWidgets directions you are following.

docs/osx/install.md in wxwidgets.

QuoteEdit2: And, why does the directions not say to install the wxWidgets?

It does. It IS installed. However there are two kinds of installation, local and to usr/ (system) with sudo make install. The system wide installation is not recommended in docs/osx/install.md so I haven't done it yet. The question is does Code::Blocks require it?

QuoteAnd, why do you NOT use the wxforums to get help?

I have. wxWidgets installation works, no problems there.

sodev

Quote from: Krice on August 16, 2019, 02:46:40 PM
It IS installed.

It is NOT installed. If it would be installed, /Users/Krice/Documents/wxw/share/aclocal would exist, because your prefix is /Users/Krice/Documents/wxw so a make install would install into that prefix and during installation share/aclocal would be created to put wxwin.m4 into it.

stahta01

Krice: I never liked the twenty question game; I will add you to my list of people who it is useless to try to help!!

You skipped the installation step; but, you keep saying you installed wxWidgets!!!!!!!!!!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Krice

Quote from: sodev on August 16, 2019, 06:26:04 PM
It is NOT installed.

I ran sudo make install and now ./bootstrap work, however when I run ./configure for Code::Blocks I get this error:

configure: error: Package requirements (hunspell) were not met:

No package 'hunspell' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables HUNSPELL_CFLAGS
and HUNSPELL_LIBS to avoid the need to call pkg-config.


By the way, wxwidget people say Code::Blocks is doing it the wrong way, you should not have to make install the library:
https://forums.wxwidgets.org/viewtopic.php?f=23&p=193484&sid=2001ebb0b423d41e4be8134b3ef2758d#p193484

stahta01

You have a lot to learn about programming.

I hope you have a sane reason to self build Code::Blocks.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Krice

Quote from: stahta01 on August 18, 2019, 02:41:03 PM
You have a lot to learn about programming.

No, I only need to "learn" the idiocy that is unix command line "programming". In Windows this problem doesn't even exist, because projects are created in IDE (as they should) and libraries are mostly pre-compiled and ready to use. Compiling everything from source seems to be somewhat problematic to say the least, but it's something you need when nothing stays compatible and there are different versions of everything. Even OSX can break programs when they release a new os version.

BlueHazzard

About hunspell... well you have to install the dev package of hunspell or configure codeblocks without spellchecker.
About installing wxWidgets: How should it be? Where should codeblocks look for wx installations, if not in the global folder. I have read your forum link, but i can not find out how it should be done right...
I do nothing with the autotools scrips and the AM system, so i may be wrong hardly, but isn't it that the bootstrap searches for wxWidgets AM scripts, that tell the autotools process where to search wxWidgets and what configuration to use? So if the AM scripts are not found in the right place (by being installed in the global install directory) how should bootstrap continue? Or in what directories should bootstrap search for AM files?

Krice

Quote from: BlueHazzard on August 19, 2019, 11:00:53 AM
About hunspell... well you have to install the dev package of hunspell

I think it would be nice to inform that you need some external packages and how to get them. In this case 'brew install hunspell' fixed this problem, although it gives an error since it can't write something to usr/local... but Code::Blocks ./configure works so it's probably not important. At the moment I'm building C::B with make. It's running in background so I'll get back if something fails.

BlueHazzard

It would be really really great if you could write up your findings, and post it in the wiki (the forum user name should be the same for the wiki) Or write it up here and i will move it to the wiki... Some easy step by step guide would be nice...

As i told earlier, we do not have many (actually none) mac devs and every bit of information helps....

Thank you!

Krice

Quote from: BlueHazzard on August 19, 2019, 01:59:31 PMIt would be really really great if you could write up your findings

I can try to write something later (I have kept a blog about unix programming, but it's a mess). Meanwhile it did build and also runs. The readme is talking about 'devel' and 'output' directories but afaik no such things exist. It's creating codeblocks executable in usr/local/bin and that's about it. When you exit codeblocks it throws this:

Deinitializing plugins...
../src/osx/window_osx.cpp(727): assert ""tlw"" failed in DoClientToScreen(): TopLevel window missing
Collecting stack trace information, please wait...Trace/BPT trap: 5

But I'm not that surprised. I tried to run cppcheck for couple of files and already got warnings. It's really not that difficult to fix those kind of problems with cppcheck or some other static analysis tool like heavier use of gcc compiler flags. Cppcheck is a tool everyone should use in C++ programming in my opinion, it's just so easy to catch typical stuff with it.

BlueHazzard

Every report helps... And patches help even more...
Thank you in advance!