Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pedrolino

Pages: [1]
1
SFML projects / Re: Thor 2.0
« on: January 30, 2014, 07:56:04 pm »
Hello :)

Quote
Either set it to "Release" or "Debug"

This worked!
Thank you very much.

Quote
Does the original Thor configuration work at you (when you build Thor with CMake, choose to build the examples)?

Yes it works, that's why I thought it was a problem in my CMakeLists script.

Thanks again! :D

2
SFML projects / Re: Thor 2.0
« on: January 30, 2014, 02:42:07 pm »
Hello :)
I want to try to use thor, but I have problems :
I tried to use triangulation, but I have a segmentation fault when I call


OutputIterator thor::triangulate   (   InputIterator    verticesBegin, InputIterator    verticesEnd, OutputIterator    trianglesOut )   


To be sure that I did not make mistakes in my code, I tried to compile the triangulation example with my compiler settings : I copy paste the main function in my main.cpp, but keep my CMakeLists.txt as I am used to write it.

So in my opinion the problem is here : I probably forgot an option in my cmake file, but I don't understand cmake enough to find what is wrong in my file compared to the lib file.

So I ask you for help :)

Here is my CMakeLists.txt :

cmake_minimum_required(VERSION 2.6)

#Project name
project(Projet)

SET(CMAKE_CXX_FLAGS "-std=c++11")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

find_package(SFML COMPONENTS graphics window system REQUIRED)
find_package(Thor REQUIRED)

include_directories(${SFML_INCLUDE_DIRS})
include_directories(${THOR_INCLUDE_DIRS})

file(
    GLOB_RECURSE
    source_file
    src/*
)

#Executable
add_executable(
    exe
    ${source_file}
)

target_link_libraries(
    exe
    ${SFML_LIBRARIES}
    ${THOR_LIBRARY}
)
 

I hope you will be able to help me, and I apoligize if my question is stupid.

Thank you :)

(And please excuse my english : I am french and I did not practice for a while  :-[)

Pages: [1]