Unable to compile SpringServer (0.40b2_src)

Unable to compile SpringServer (0.40b2_src)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
adeveloper.clan-sy
Posts: 24
Joined: 28 Apr 2005, 00:26

Unable to compile SpringServer (0.40b2_src)

Post by adeveloper.clan-sy »

When I try to compile SpringServer project I get the following error:

error: taspring_0.40b2_src\server\Log.h(5): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
adeveloper.clan-sy
Posts: 24
Joined: 28 Apr 2005, 00:26

SpringServer work-arounds (taspring_0.40b2_src)

Post by adeveloper.clan-sy »

I was able to create two work-arounds to get the DEBUG SpringServer project to compile and link:


A) Compiling with the latest Pthreads and latest mySQL for Win32

1) Download Pthreads-win32 release 2.4.0 from http://sourceware.org/pthreads-win32
2) Extract PThreads-win32 into c:\pthreads-win32-240\
3) Open and build pthread.dsw using MSVC++ .NET 2003 (you may have to convert into a Solution).
4) Download the mysql-4.1.11 source code from http://www.mysql.com
5) Extract the mysql source into c:\mysql-4.1.11
6) Open and build mysql.dsw using MSVC++ .NET 2003 (you may have to convert into a solution). You may link errors, but that's OK since we are just interested in the headers and the libmysql.dll and libmysql.lib files
7) Open the SpringServer project (SpringServer.sln) in MSVC++ .NET 2003 and set the include path and lib path
7a) Open Tools|Options|Projects|VC++ Directories| then select "Include Files" in the "Show directories for:" drop down box and add "c:\pthread-win32-240"
7b) Open Tools|Options|Projects|VC++ Directories| then select "Library Files" in the "Show directories for:" drop down box and add "c:\pthread-win32-240"
7c) Open Tools|Options|Projects|VC++ Directories| then select "Include Files" in the "Show directories for:" drop down box and add "c:\mysql-4.1.11\include"
7d) Open Tools|Options|Projects|VC++ Directories| then select "Library Files" in the "Show directories for:" drop down box and add "c:\mysql-4.1.11\lib_debug"
8 ) Build the SpringServer.sln and SpringServer.exe should successfully compile and link


B) Compiling with the Pthread headers and mySQL headers included with the taspring_0.40b2_src distribution

1) Open the SpringServer project (SpringServer.sln) in MSVC++ .NET 2003 and set the include path and lib path
1a) Open Tools|Options|Projects|VC++ Directories| then select "Include Files" in the "Show directories for:" drop down box and add "taspring_0.40b2_src\server\pthread\include"
1b) Open Tools|Options|Projects|VC++ Directories| then select "Library Files" in the "Show directories for:" drop down box and add "taspring_0.40b2_src\server\pthread\lib"
1c) Open Tools|Options|Projects|VC++ Directories| then select "Include Files" in the "Show directories for:" drop down box and add "taspring_0.40b2_src\server\mysql\include"
1d) Open Tools|Options|Projects|VC++ Directories| then select "Library Files" in the "Show directories for:" drop down box and add "taspring_0.40b2_src\server\mysql\lib"
2) Build the SpringServer.sln and SpringServer.exe should successfully compile and link
Post Reply

Return to “Engine”