try to build poco with premake4 from inside codelite
Posted: Tue Nov 26, 2013 4:51 pm
i try to build poco library 1.46p2 with codelite and premake 4 on windows/xp and the output is not good, something is missing.
i don't know what went wrong, however the gluescrpt is for poco 1.35, and maybe this is the problem.
this are the steps i did:
1.downloaded (for example into E:\):
poco
codelite
premake 4
luascript
scripts from http://gluescript.svn.sourceforge.net/v ... c/poco.zip
2.unzip the .zip files into E:\
3.define premake into the path of windows xp.
( advanced ---> environment variables: ;E:\premake-4.3\bin\release )
4.copy this files into poco directories:
E:\poco-premake\Foundation ---> E:\poco-1.4.6p2\Foundation
E:\poco-premake\Net ---> E:\poco-1.4.6p2\Net
E:\poco-premake\Util ---> E:\poco-1.4.6p2\Util
E:\poco-premake\Xml ---> E:\poco-1.4.6p2\XML
and:
E:\poco-premake premake4.lua ---> E:\poco-1.4.6p2
5.Run... ---> cmd
6.cd E:\poco-1.4.6p2
7.run: "premake4 codelite" inside: e:\poco-1.4.6p2
8.open codelite and using workspace from inside: e:\poco-1.4.6p2
( codelite ---> workspace ---> open workspace ---> E:\poco-1.4.6p2\POCO.workspace )
9.build project
10.if new project / file: workspace ---> new workspace
workspace ---> new project (add files .cpp)
+-+-+-+-+-+-+-+-+-+ The result +-+-+-+-+-+-+-+-+-+
i don't know what went wrong, however the gluescrpt is for poco 1.35, and maybe this is the problem.
this are the steps i did:
1.downloaded (for example into E:\):
poco
codelite
premake 4
luascript
scripts from http://gluescript.svn.sourceforge.net/v ... c/poco.zip
2.unzip the .zip files into E:\
3.define premake into the path of windows xp.
( advanced ---> environment variables: ;E:\premake-4.3\bin\release )
4.copy this files into poco directories:
E:\poco-premake\Foundation ---> E:\poco-1.4.6p2\Foundation
E:\poco-premake\Net ---> E:\poco-1.4.6p2\Net
E:\poco-premake\Util ---> E:\poco-1.4.6p2\Util
E:\poco-premake\Xml ---> E:\poco-1.4.6p2\XML
and:
E:\poco-premake premake4.lua ---> E:\poco-1.4.6p2
5.Run... ---> cmd
6.cd E:\poco-1.4.6p2
7.run: "premake4 codelite" inside: e:\poco-1.4.6p2
8.open codelite and using workspace from inside: e:\poco-1.4.6p2
( codelite ---> workspace ---> open workspace ---> E:\poco-1.4.6p2\POCO.workspace )
9.build project
10.if new project / file: workspace ---> new workspace
workspace ---> new project (add files .cpp)
+-+-+-+-+-+-+-+-+-+ The result +-+-+-+-+-+-+-+-+-+
Code: Select all
E:\WINDOWS\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f Makefile"
"----------Building project:[ Foundation - Debug ]----------"
mingw32-make.exe[1]: Entering directory `E:/poco-1.4.6p2/Foundation'
gcc -c "E:/poco-1.4.6p2/Foundation/src/AbstractObserver.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_AbstractObserver.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/ActiveDispatcher.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_ActiveDispatcher.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/ArchiveStrategy.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_ArchiveStrategy.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Ascii.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Ascii.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/ASCIIEncoding.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_ASCIIEncoding.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/AsyncChannel.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_AsyncChannel.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/AtomicCounter.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_AtomicCounter.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Base64Decoder.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Base64Decoder.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Base64Encoder.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Base64Encoder.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/BinaryReader.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_BinaryReader.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/BinaryWriter.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_BinaryWriter.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Bugcheck.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Bugcheck.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/ByteOrder.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_ByteOrder.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Channel.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Channel.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Checksum.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Checksum.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Condition.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Condition.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Configurable.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Configurable.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/ConsoleChannel.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_ConsoleChannel.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/CountingStream.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_CountingStream.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DateTime.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DateTime.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DateTimeFormat.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DateTimeFormat.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DateTimeFormatter.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DateTimeFormatter.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DateTimeParser.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DateTimeParser.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Debugger.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Debugger.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DeflatingStream.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DeflatingStream.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DigestEngine.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DigestEngine.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DigestStream.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DigestStream.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DirectoryIterator.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DirectoryIterator.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DirectoryWatcher.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DirectoryWatcher.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DynamicAny.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DynamicAny.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/DynamicAnyHolder.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_DynamicAnyHolder.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Environment.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Environment.o -I. -Iinclude
gcc -c "E:/poco-1.4.6p2/Foundation/src/Environment_VX.cpp" -DWIN32 -D_WINDOWS -DFoundation_EXPORTS -DPOCO_STATIC -DPCRE_STATIC -DWINVER=0x0500 -DPOCO_NO_FPENVIRONMENT -DMINGW32 -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG -o obj/Debug/src_Environment_VX.o -I. -Iinclude
E:/poco-1.4.6p2/Foundation/src/Environment_VX.cpp:40:21: fatal error: VxWorks.h: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [obj/Debug/src_Environment_VX.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
Foundation.mk:373: recipe for target `obj/Debug/src_Environment_VX.o' failed
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `E:/poco-1.4.6p2/Foundation'
Makefile:4: recipe for target `All' failed
1 errors, 0 warnings, total time: 00:00:53 seconds