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 - kaeptmblaubaer1000

Pages: [1]
1
General / Re: problem compiling SFML 2.0 in cygwin
« on: June 10, 2016, 11:33:29 am »
I also have a
#define _beginthreadex CreateThread
in the Config.hpp,
without it the error message is
$ make
Scanning dependencies of target sfml-system
make[2]: Warnung: Datei „src/SFML/System/CMakeFiles/sfml-system.dir/depend.make“ hat hat in der Zukunft liegende Änderungszeit 0,65
[  1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[  2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.o
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.o
[  4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[  5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[  6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp.o
[  7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLocal.cpp.o
[  8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Time.cpp.o
[  9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/MemoryInputStream.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ClockImpl.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/MutexImpl.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/SleepImpl.cpp.o
[ 14%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In Konstruktor »sf::priv::ThreadImpl::ThreadImpl(sf::Thread*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:42:111: Fehler: »_beginthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
     m_thread = reinterpret_cast<HANDLE>(_beginthreadex(NULL, 0, &ThreadImpl::entryPoint, owner, 0, &m_threadId));
                                                                                                               ^
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In statischer Elementfunktion »static unsigned int sf::priv::ThreadImpl::entryPoint(void*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:86:19: Fehler: »_endthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
     _endthreadex(0);
                   ^
make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/build.make:399: src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:119: src/SFML/System/CMakeFiles/sfml-system.dir/all] Fehler 2
make: *** [Makefile:128: all] Fehler 2
 

2
General / Re: problem compiling SFML 2.0 in cygwin
« on: June 10, 2016, 11:22:46 am »
Cygwin is not explicitely supported, but I thought it would just work fine, either as a Linux or as a Windows platform. It seems that it doesn't map to any of them.

You can add an issue in the task tracker, or directly provide a patch if you know how to correctly handle it.

It doesn`t works.
$ make
Scanning dependencies of target sfml-system
[  1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[  2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.o
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.o
[  4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[  5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[  6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp.o
[  7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLocal.cpp.o
[  8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Time.cpp.o
[  9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/MemoryInputStream.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ClockImpl.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/MutexImpl.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/SleepImpl.cpp.o
[ 14%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In Konstruktor »sf::priv::ThreadImpl::ThreadImpl(sf::Thread*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:42:111: Fehler: ungültige Umwandlung von »unsigned int (__attribute__((__stdcall__)) *)(void*)« in »LPTHREAD_START_ROUTINE {aka long unsigned int (__attribute__((__stdcall__)) *)(void*)}« [-fpermissive]
     m_thread = reinterpret_cast<HANDLE>(_beginthreadex(NULL, 0, &ThreadImpl::entryPoint, owner, 0, &m_threadId));
                                                                                                               ^
In file included from /usr/include/w32api/winbase.h:29:0,
                 from /usr/include/w32api/windows.h:70,
                 from /home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.hpp:32,
                 from /home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:28:
/usr/include/w32api/processthreadsapi.h:160:28: Anmerkung:   Argument 3 von »void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)« wird initialisiert
   WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
                            ^
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:42:111: Fehler: ungültige Umwandlung von »unsigned int*« in »LPDWORD {aka long unsigned int*}« [-fpermissive]
     m_thread = reinterpret_cast<HANDLE>(_beginthreadex(NULL, 0, &ThreadImpl::entryPoint, owner, 0, &m_threadId));
                                                                                                               ^
In file included from /usr/include/w32api/winbase.h:29:0,
                 from /usr/include/w32api/windows.h:70,
                 from /home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.hpp:32,
                 from /home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:28:
/usr/include/w32api/processthreadsapi.h:160:28: Anmerkung:   Argument 6 von »void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)« wird initialisiert
   WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
                            ^
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In statischer Elementfunktion »static unsigned int sf::priv::ThreadImpl::entryPoint(void*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:86:19: Fehler: »_endthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
     _endthreadex(0);
                   ^
make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/build.make:399: src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:119: src/SFML/System/CMakeFiles/sfml-system.dir/all] Fehler 2
make: *** [Makefile:128: all] Fehler 2
 

I have wrote a
#define __Linux__
but it tries to accesss an MSVC function named _beginthreadex.

Pages: [1]