try to build poco with premake4 from inside codelite

CodeLite installation/troubleshooting forum
meirab100
CodeLite Curious
Posts: 3
Joined: Sun Nov 17, 2013 1:11 am
Genuine User: Yes
IDE Question: c++
Contact:

try to build poco with premake4 from inside codelite

Post by meirab100 »

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

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
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: try to build poco with premake4 from inside codelite

Post by Jarod42 »

The error seems to be more related to poco instead of codelite.

Do the 'missing file' (VxWorks.h) exists ? Are the Include directories correct ?
Do you have to customize the premake script or give some argument to it to reflect your configuration ?
meirab100
CodeLite Curious
Posts: 3
Joined: Sun Nov 17, 2013 1:11 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: try to build poco with premake4 from inside codelite

Post by meirab100 »

The file: VxWorks.h can not be found, what do i have to do ?

is there a need to correct gluescript files or download a missing library from poco?
is there a way to build a big library like "poco" without gluescript (in codelite)?
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: try to build poco with premake4 from inside codelite

Post by Gibbon1 »

One notes that a bunch of files compile without warnings before you hit the error. So it's very unlikely to be codelite, since make is working, gcc is working, and we bomb on an missing include.

Looking about VXWorks is an light to heavy RTOS made by Wind River Systems. I'm assuming VxWorks.h has something to do with that. So I'm suspecting the problem might be that the build system wasn't configured correctly (or at all) before you tried to build the poco library. Somewhere in the makefile the build target is set for VXWorks instead of Win32.

If it helps a lot of open source libraries have a './configure options' step that needs to be run to configure the makefile for the build platform (your computer) and the target (computer the code will run on). You do this once after you checkout the project.
Post Reply