Hi,
I’m having trouble when building samples in debug using Eclipse on Linux. Here’s what I get with CrowdNavigation:
And here’s what a release build looks like:
I built and installed Urho in debug by following these steps:
./cmake_generic.sh build_debug/ -URHO3D_LUA=1 -URHO3D_SAMPLES=1 -URHO3D_EXTRAS=1 -URHO3D_DOCS_QUIET=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=D
cd build_debug
make -j8
sudo make install
Then I created an Eclipse project using CrowdNavigation.cpp and CrowdNavigation.h from Urho’s “Source/Samples/39_CrowdNavigation” folder and Sample.inl and Sample.h from “Source/Samples” folder.
I set my project’s debug configuration to use these build and link settings:
-I (include paths)
[ul]/usr/include/bullet
/usr/include[/ul]
-L (library search paths)
[ul]/usr/local/lib/Urho3D[/ul]
-l (libraries)
[ul]Urho3DD
dl
pthread
GL[/ul]
I built the project’s debug config and got this ouput, which looks just fine:
[code]21:24:25 **** Build of configuration Debug for project UrhoDemo ****
make -j4 all
Building file: …/CrowdNavigation.cpp
Invoking: GCC C++ Compiler
g++ -I"WORKSPACE_LOCATION/UrhoDemo" -I/usr/include/bullet -I/usr/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"CrowdNavigation.d" -MT"CrowdNavigation.o" -o “CrowdNavigation.o” “…/CrowdNavigation.cpp”
Finished building: …/CrowdNavigation.cpp
Building target: UrhoDemo
Invoking: GCC C++ Linker
g++ -L/usr/local/lib/Urho3D -o “UrhoDemo” ./CrowdNavigation.o -lUrho3D -ldl -lpthread -lGL
Finished building target: UrhoDemo[/code]
Finally, I copied “CoreData” and “Data” folders into my executable’s folder and ran it.
If I link Urho3D (release) instead of Urho3DD, it solves my problem. I thought that there might be a problem with my debug build of Urho3D. But, at the same time, the sample executables generated when building the debug library (located in build_debug/bin) work fine.
Any idea?
Thanks.
Additional information:
OS: Ubuntu 15.10
Eclipse 4.5.1
g++ 5.2.1
Urho3D 1.5