Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Building & using U++ without TheIDE
Re: Building & using U++ without TheIDE [message #11415 is a reply to message #11360] |
Wed, 12 September 2007 02:25   |
sergei
Messages: 94 Registered: September 2007
|
Member |
|
|
OK, I see that I've sounded a bit too ignorant and stubborn. Sorry for that. To clarify things:
1) I'm not afraid of TheIDE, I just don't like it. I just got myself comfortable with Code::Blocks, so I don't want to move to a new IDE to use a new library. I used it a bit, and found it less comfortable than Code::Blocks.
2) I want to build U++ without TheIDE not only for the reason that I don't want to use TheIDE. I want to ensure the library code is not tied to the development environment, and is pretty much standalone. In the hypotetical case of TheIDE ceasing to function, I want to still be able to build whatever I write with U++.
3) I've built UWord with TheIDE, with verbose. It just seemed that it included too few packages, so I guessed others also might be needed in other applications. Currently, apart from packages that are used in UWord, I added GLCtrl and GridCtrl (I hope none of these can cause trouble). I also added more plugins
Command line in TheIDE:
c++ -c -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGUI -DflagGCC -DflagDEBUG -DflagDEBUG_FULL -DflagBLITZ -DflagW
IN32 -DbmYEAR=2007 -DbmMONTH=9 -DbmDAY=12 -DbmHOUR=0 -DbmMINUTE=30 -DbmSECOND=10 -g2 -static -fexceptions -D_DEBUG -O0 -x c++ "C:\up
p\uppsrc\CtrlLib\ChWin32.cpp" -o "C:/upp/out/CtrlLib/MINGW.Debug_full.Gui\ChWin32.o"
I don't know what -D means (doesn't appear in c++ --help), but if these are defines, I need to define: flagGUI, flagGCC, flagDEBUG, flagDEBUG_FULL, flagBLITZ, flagWIN32. Should've done this last time (got overhauled with info due to verbose and missed these defines).
wchar problem is now gone (phew). Got some wrong stuff in Locale.cpp (I'm using dev2b from sourceforge, it might be outdated by now - there was and extra */ and missing :: to call Win32 functions). t.h is really weird. I've removed namespace from it, got back to the compiler error. Writing UPP::LngEntry__ solved the problem, but I still don't understand how INITBLOCK_ is defined there (t.h is included outside UPP namespace). Well, actually I don't understand how INITBLOCK works at all, it looks like some kind of lambda for C++, does it actually execute the code (register) upon program loading, without calling anything?
I'm getting closer to building U++. It took 43 minutes to get to the first error, which is in RichText (last package to be built). What bothers me is that the build time is so long, and that I get the same warnings over and over again. It's as if Core.h gets re-included for every CPP, and warnings from all its includes repeat (impossible since Core.h has include guards). I might later try to set Core.h to get precompiled and see if it helps.
The RichText error was in Para.cpp. It included an NText.h (non-existant file), and also used Paragraph (non-existant class). On second look, TheIDE used RichText in UWord, but that particular file wasn't used. I wonder how TheIDE knew it wasn't necessary, especially since Para.h is used. Removed the file, compilation continued.
#ifndef USE_MSDOS_MEMMGR /* make sure user got configuration right */
You forgot to define USE_MSDOS_MEMMGR in jconfig.h. /* deliberate syntax error */
#endif
That's a funny way to say something's wrong
Defined USE_MSDOS_MEMMGR in jconfig.h, got an error in jmemansi.c:
METHODDEF(void)
read_backing_store (j_common_ptr cinfo, backing_store_ptr info,
void FAR * buffer_address,
long file_offset, long byte_count)
{
if (fseek(info->temp_file, file_offset, SEEK_SET))
ERREXIT(cinfo, JERR_TFILE_SEEK);
if (JFREAD(info->temp_file, buffer_address, byte_count)
!= (size_t) byte_count)
ERREXIT(cinfo, JERR_TFILE_READ);
}
Structure has no temp_file member.
OK, I made some progress, time to sleep 
Accumulating changes to the original sources package (half of it, actually):
In all icpps using INITBLOCK, replace it with INITBLOCK_(BLK_###) - unique ### for every INITBLOCK.
In t.h, replace LngEntry__ with UPP::LngEntry__
In Locale.cpp, add NAMESPACE_UPP and END_UPP_NAMESPACE, define LOG(x) (what is this?), remove extra */, add :: to some Win32 function calls.
And add main.cpp with :
#include "Core/Core.h"
#include "Core/Core_init.icpp"
#include "CtrlCore/CtrlCore.icpp"
#include "RichEdit/RichEdit.icpp"
#include "CtrlLib/CtrlLib.icpp"
#include "RichText/RichImage.icpp"
#include "PdfDraw/PdfReport.icpp"
#include "plugin/bmp/BmpReg.icpp"
#include "plugin/gif/gif.icpp"
#include "plugin/jpg/jpgreg.icpp"
#include "plugin/png/pngreg.icpp"
#include "plugin/tif/tifreg.icpp"
void LinkUppInit() {}
P.S. I've found: http://en.wikipedia.org/wiki/Single_Compilation_Unit
Pros: only 1 file to compile, probably faster static lib compiling, also icpp issue solution
Cons: INITBLOCK-s will have to be replaced with unique INITBLOCK_(X)-s, possibly other similar changes, every new CPP will have to be added to that file that is compiled (it could be auto-generated, though).
P.S.2 Thinking of it now, RichImage.icpp has 2 INITBLOCK-s, how can TheIDE compile these in one source file? It's redefined in Code::Blocks, unless I replace it with INITBLOCK_(X) with different X.
|
|
|
 |
 |
Building & using U++ without TheIDE
By: sergei on Sun, 09 September 2007 22:03
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 09 September 2007 23:47
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 01:48
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:16
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:30
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 12:25
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 13:56
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 15:53
|
 |
|
Re: Building & using U++ without TheIDE
By: Ulti on Mon, 10 September 2007 16:56
|
 |
|
Re: Building & using U++ without TheIDE
By: Zardos on Mon, 10 September 2007 17:17
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 17:57
|
 |
|
Re: Building & using U++ without TheIDE
By: Zardos on Tue, 11 September 2007 09:25
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:22
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 17:57
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:09
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:12
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:15
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 20:59
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 21:31
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 22:35
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:16
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 11 September 2007 02:21
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:21
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 02:25
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 09:20
|
 |
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:20
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 18:47
|
 |
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 20:04
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 22:01
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 12:31
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 14:25
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 15:22
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 17:34
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 18:00
|
 |
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:31
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 01:19
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 05:45
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 02:21
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 15:43
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 23:58
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 14 September 2007 02:21
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 20:11
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 21:22
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:00
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 22:16
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:48
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 16 September 2007 01:43
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:55
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:58
|
 |
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 07:53
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 10:10
|
 |
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 10:53
|
 |
|
Re: Building & using U++ without TheIDE
By: tvanriper on Tue, 18 September 2007 02:35
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 18:57
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:06
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 11:07
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 11:22
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 13:50
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 15:46
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 18:33
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:20
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:28
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 23:47
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 00:08
|
 |
|
Re: Building & using U++ without TheIDE
By: unodgs on Tue, 18 September 2007 08:30
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 00:32
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 03:04
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 18:05
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 19:04
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 00:43
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 09:34
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 10:12
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 10:45
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:18
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:33
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:39
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 12:22
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 12:39
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:40
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 14:22
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 23:06
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 23:56
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 05:39
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 13:29
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 14:51
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 15:11
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 21:57
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 03:36
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Fri, 21 September 2007 09:49
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 13:41
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 22 September 2007 00:16
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 22 September 2007 00:18
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 23 September 2007 10:54
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 16:22
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 20:51
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 11:44
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 25 September 2007 16:18
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 23:07
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 00:52
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 13:41
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 15:13
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 18:25
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 18:44
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 19:26
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 21:01
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 22:56
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 09 October 2007 19:14
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 09 October 2007 23:39
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 10 October 2007 00:02
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 10 October 2007 00:51
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 11 October 2007 05:40
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 00:35
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 07:27
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 10:48
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 12:18
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 19:12
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 17 October 2007 21:58
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 22:54
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 01:34
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 18 October 2007 14:44
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 17:49
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 21 October 2007 02:54
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 21 October 2007 22:26
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 22 October 2007 01:39
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 27 October 2007 19:40
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 28 October 2007 02:04
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 29 October 2007 00:38
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 01 November 2007 12:30
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 04 November 2007 12:34
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 09:06
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 11:10
|
 |
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 06 November 2007 14:07
|
 |
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 06 November 2007 21:19
|
Goto Forum:
Current Time: Thu Jul 03 07:14:27 CEST 2025
Total time taken to generate the page: 0.03505 seconds
|