MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

Compilation with Ubuntu fails #32

Open chraibi opened 7 years ago

chraibi commented 7 years ago

I think the relevant infos are summed up in this screenshot.

screen shot 2016-11-02 at 14 14 45
MengeCrowdSim commented 7 years ago

What version of g++ is this? I've encountered this before as well. This is something I could hope to address.

Oops. Scrolling the screen showed me the version number. :)

chraibi commented 7 years ago

👍

chraibi commented 7 years ago

Some news about this issue?

FYI I just got a clean version of Ubuntu installed. I want to compile Menge.

Following remarks:

On Branch Master:

Problem

screen shot 2017-02-13 at 10 55 59

The compiler has C++11 support g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

I checked in the Cmakefiles. The c++11 flag for debug and release are there.

Solution

The solution was to specify the cmake_build_type to Debug or Release. What happens if you don't?

curds01 commented 7 years ago

The way to build it is to simply go to the projects/g++ directory and type make. Did you do that or did you do the cmake stuff yourself? (And this is very relevant to issue #40 and the erratically documented build process.)

chraibi commented 7 years ago

I cmake and then make

curds01 commented 7 years ago

There's a Makefile in projects/g++ who wraps up the cmake stuff and make all in one fell swoop. I'd suggest cleaning out your build artifacts and simply call make.

chraibi commented 7 years ago

The Makefile works. I just wanted to go in two steps. But this is not necessary, only a habit.

Sometimes the 2 steps method is handy if you want to pass some other parameters like -D CMAKE_MACOSX_RPATH=1. Surely, this can be also done in the Makefile.

curds01 commented 7 years ago

It's probably worth setting things up so that those more familiar with CMake and have good CMake reflexes like you do don't suffer.