Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the old darkradiant in the OpenTechEngine repo doesn't compile #36

Open
BielBdeLuna opened this issue Jun 17, 2016 · 14 comments
Open

the old darkradiant in the OpenTechEngine repo doesn't compile #36

BielBdeLuna opened this issue Jun 17, 2016 · 14 comments

Comments

@BielBdeLuna
Copy link
Member

I know it's an old version, and I know the fact that the ImGui are being worked in order to replace the mfc tools in the tools from doom3.

but can we get it to compile again? the current show-stopper is the boost header version, the configure file expects an older version (I think) but I don't know how to update it, this is the error I get:

checking for Boost headers version >= 1.46.1... yes
checking for Boost's header version... 
configure: error: invalid value: boost_major_version=

any idea how to soolve this error?

@damiel
Copy link

damiel commented Jun 17, 2016

I was wondering what was the purpose of the fork of DarkRadiant in the first place, was it just the inactive development or something else? I was compiling/running Darkradiant 2.0.4 and it's definitly a improvement imho, maybe we can just pull the changes from the original repo or just drop our's alltogether and use the one from upstream again?

@BielBdeLuna
Copy link
Member Author

I can't get the new releases of DarkRadiant to work, I get asegfault error after selecting the engine and the base folder.
And Greebo/codereader told me he was not going to test my problem on a virtual machine, I understand that he is alone maintianing the repository, so he is very fed up with solving other people's problems.
So my only remaining option is to use the old DarkRadiant, that I know worked fine before, but now I can't compile due that error in the configure file.

I guess imGUI is being implemented in order to restore the original radiant from doom3, which is the best solution in the long run.
But if I want to test things with the engine I need to have access to some kind of mapping editor, can someone help me with that configure file?

@damiel
Copy link

damiel commented Jun 17, 2016

Hm, that sounds like an awkward spot you are in at the moment, a quick shot in the dark would be to try updating the configure script by issueing ./autogen.sh before running ./configure, or you could try compiling with the static boost version by adding --enable-static-boost to ./configure. If those two dont help, we need some more info to investigate like your linux distribution, what boost version you have installed etc.

@BielBdeLuna
Copy link
Member Author

BielBdeLuna commented Jun 17, 2016

yes at the moment I can't map for the engine.

I already did the autogen.sh, but the configure, whether I do the autogen.sh or not, still fails at the same spot.

I just tested: ./configure --enable-static-boost and it still fails the same way

I have all libs necessary for the compilation, although libgtksourceviewmm-2.0-dev no longer appears in the repositories I have the current: libgtksourceviewmm-3.0-dev.
(how are those libs reference when compiling? maybe we should change that reference?)

besides this all necessary liboost libraries version is "1.58.0.1ubuntu1"

@damiel
Copy link

damiel commented Jun 17, 2016

Checking the configure.sh of both versions, there seems to be a difference in handling the version string

For the old DarkRadiant it's:

if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
tr -d '\r' |
$SED -n -e "/^boost-lib-version = /{s///;s/"//g;p;q;}" >conftest.i 2>&1; then :
boost_cv_lib_version=cat conftest.i
fi

starting from line 18804

While for newer versions of DarkRadiant it's:

if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
grep -v '#' |
tr -d '\r' |
tr -s '\n' ' ' |
$SED -n -e "/^boost-lib-version = /{s///;s/[" ]//g;p;q;}" >conftest.i 2>&1; then :
boost_cv_lib_version=cat conftest.i
fi

Try replacing the old block with the new block.

@BielBdeLuna
Copy link
Member Author

BielBdeLuna commented Jun 17, 2016

thanks! now it finished ./configure without a hitch

github eliminated the accents needed for a part of the code (that's the reason it has some part of the code that has a different format) so this is the actual code:

#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
#  tr -d '\r' |
#  $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
#  boost_cv_lib_version=`cat conftest.i`
#fi

if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  grep -v '#' |
  tr -d '\r' |
  tr -s '\n' ' ' |
  $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
  boost_cv_lib_version=`cat conftest.i`
fi

@BielBdeLuna
Copy link
Member Author

BielBdeLuna commented Jun 17, 2016

compiled fine, installed fine but I end up with an segfault at the same place of the new versions! that is after selecting the right engine it keeps loading stuff and when it's about to load the x/y/z screens for working it segfaults... now I can test this ./configure solution for all the versions I can get from greebo/codereader and see if I get a consistent place of the error, maybe it's when opening the screens. this has since Ubuntu 15.04, maybe the mesa drivers? I'll try to ask him again...

@BielBdeLuna
Copy link
Member Author

BielBdeLuna commented Jun 18, 2016

now I'm trying to compile the 1.8 release, the same ./configure solution applies, ./autogen.sh works, ./configure works but now the make fails to compile:

$ make
 cd . && automake-1.15 --foreign
automake-1.15: error: global options already processed
automake-1.15: Please contact <bug-automake@gnu.org>.
 at /usr/share/automake-1.15/Automake/Channels.pm line 662, <GEN0> line 91.
    Automake::Channels::msg("automake", "", "global options already processed") called at /usr/share/automake-1.15/Automake/ChannelDefs.pm line 212
    Automake::ChannelDefs::prog_error("global options already processed") called at /usr/share/automake-1.15/Automake/Options.pm line 421
    Automake::Options::process_global_option_list(HASH(0x2dddf30)) called at /usr/bin/automake-1.15 line 5337
    Automake::scan_autoconf_traces("configure.ac") called at /usr/bin/automake-1.15 line 5437
    Automake::scan_autoconf_files() called at /usr/bin/automake-1.15 line 8259
Makefile:429: recipe for target 'Makefile.in' failed
make: *** [Makefile.in] Error 1

--edit--

well not entirely true, autogen.sh also fails here (it didn't before):

$ ./autogen.sh 
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
automake: error: global options already processed
automake: Please contact <bug-automake@gnu.org>.
 at /usr/share/automake-1.15/Automake/Channels.pm line 662, <GEN0> line 91.
    Automake::Channels::msg("automake", "", "global options already processed") called at /usr/share/automake-1.15/Automake/ChannelDefs.pm line 212
    Automake::ChannelDefs::prog_error("global options already processed") called at /usr/share/automake-1.15/Automake/Options.pm line 421
    Automake::Options::process_global_option_list(HASH(0x1795a78)) called at /usr/bin/automake line 5337
    Automake::scan_autoconf_traces("configure.ac") called at /usr/bin/automake line 5437
    Automake::scan_autoconf_files() called at /usr/bin/automake line 8259

--edit2--
no need to do autogen.sh first, now this old version of Darkradiant is compiling

@BielBdeLuna
Copy link
Member Author

damn it fails while compiling the plugins when it has already compiled the whole of the program! I'll try to fix this in order to see if I can make it work...

@damiel
Copy link

damiel commented Jun 18, 2016

Would it be possible for you to try debug DarkRadiant when the segfault is happening and provide the backtrace to either here or Greebo?

@BielBdeLuna
Copy link
Member Author

BielBdeLuna commented Jun 18, 2016

I'll try to, but if I could get the 1.8 version to run then the error is generated in the commits inbetween october 2013 to july 2014, that is between 1.8 and two months before the next release (which is the one in OTE/Darkradiant)
--edit--
solved the error with a future commit form the past! great-scott Marty!

@BielBdeLuna
Copy link
Member Author

what is the way to compile it with the debug profile (grebbo's current commits, not the one in OTE repository)

@damiel
Copy link

damiel commented Jun 18, 2016

You should be able to compile it with ./configure --enable-debug.

@BielBdeLuna
Copy link
Member Author

BielBdeLuna commented Jun 18, 2016

Darkradiant 1.8 has the same error, I'm starting to hate Darkradiant with a passion!
It reminds me why I wanted to do a Blender editor for idTechX... and still makes it a sane idea despite the python implementation in Blender

@damiel thanks for the help! I'll try to compile the newest DR with the debug profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants