Re: Using VC6 on XP to build log4cxx from latest trunk [was Re: Status of log4cxx under Windows using VS 2010]

2014-09-02 Thread Thorsten Schöning
Guten Tag ToddA,
am Dienstag, 2. September 2014 um 06:13 schrieben Sie:

 8. The steps at http://ant-contrib.sourceforge.net/ say to, See the cc
 tasks for installation instructions for cpptasks. When I go to the link for
 'cc' (http://ant-contrib.sourceforge.net/cpptasks/index.html) it says,
 Place cpptasks.jar into Ant's classpath by placing in Ant's lib 
 directory...

 But now I'm stuck because there is no cpptasks.jar in cpptasks-1.0b5.zip.

Use maven, it's easy to install as well and will download cpptasks
form a maven repository as Jar, else you might download it manually
form whatever source you like. But I would prefer using maven, that's
what I did as well.

http://mvnrepository.com/artifact/ant-contrib/cpptasks/1.0b5

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow



Using VC6 on XP to build log4cxx from latest trunk [was Re: Status of log4cxx under Windows using VS 2010]

2014-09-01 Thread ToddA
Thorsten Schöning tschoening at am-soft.de writes:

 
 Guten Tag ToddA,
 am Donnerstag, 28. August 2014 um 07:28 schrieben Sie:
 
  Can you clarify what you mean by shouldn't be necessary?
 
 It shouldn't be necessary to use ANT to create VS project files
 because ANT can directly build your project using VS. You don't need
 the intermediate step of the VS project files.
 
  If ANT is not necessary
 
 It is. 
 
  what are the proper steps to build log4cxx from trunk?
 
 Follow the docs using ANT and optionally Maven, because Maven is
 currently just used as a frontend to the build logic implemented in
 ANT, and ask again if things don't work.
 
 http://logging.apache.org/log4cxx/building/index.html
 
  I'm
  attempting to build log4cxx using VC6 to integrate it with a VC6 project 
I'm
  working on.
 
 You have the option of creating the project files for VS, but I guess
 you don't need to, because ANT builds the project with my VS 2013
 Express directly.
 
 Mit freundlichen Grüßen,
 
 Thorsten Schöning
 

Hi Thorsten,

Thanks for your help. So far I've done the following:

1. Downloaded latest (as of 08/26/2014) log4cxx from trunk and put it in 
directory called: apache-log4cxx-from-svn

2. Installed jdk-8u20-windows-i586

3. Went here http://logging.apache.org/log4cxx/building/ant.html

4. Downloaded and extracted apache-ant-1.9.4-bin.zip.

5. Followed the steps in my extracted copy of apache-ant-
1.9.4/manual/index.html for Windows to set ANT_HOME and JAVA_HOME, and added 
%ANT_HOME%\bin to PATH.

6. Changed to %ANT_HOME% and ran: ant -f fetch.xml -Ddest=system
This resulted in a successful build message.

7. Downloaded and extracted cpptasks-1.0b5.zip.

8. The steps at http://ant-contrib.sourceforge.net/ say to, See the cc 
tasks for installation instructions for cpptasks. When I go to the link for 
'cc' (http://ant-contrib.sourceforge.net/cpptasks/index.html) it says, 
Place cpptasks.jar into Ant's classpath by placing in Ant's lib 
directory...

But now I'm stuck because there is no cpptasks.jar in cpptasks-1.0b5.zip.

What is my next step?



Re: Status of log4cxx under Windows using VS 2010

2014-08-28 Thread Thorsten Schöning
Guten Tag ToddA,
am Donnerstag, 28. August 2014 um 07:28 schrieben Sie:

 Can you clarify what you mean by shouldn't be necessary?

It shouldn't be necessary to use ANT to create VS project files
because ANT can directly build your project using VS. You don't need
the intermediate step of the VS project files.

 If ANT is not necessary

It is. ;-)

 what are the proper steps to build log4cxx from trunk?

Follow the docs using ANT and optionally Maven, because Maven is
currently just used as a frontend to the build logic implemented in
ANT, and ask again if things don't work.

http://logging.apache.org/log4cxx/building/index.html

 I'm
 attempting to build log4cxx using VC6 to integrate it with a VC6 project I'm
 working on.

You have the option of creating the project files for VS, but I guess
you don't need to, because ANT builds the project with my VS 2013
Express directly.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow



Re: Status of log4cxx under Windows using VS 2010

2014-08-27 Thread ToddA
Thorsten Schöning tschoening at am-soft.de writes:

 
 Guten Tag Joseph Fradley,
 am Dienstag, 18. März 2014 um 18:11 schrieben Sie:
 
  Thank you. Is Ant the preferred way to build log4cxx? I don't see the VS 
project files any more.
 
 The project files are only part of a release, you can create those
 with ANT on your own but shouldn't be necessary. At least ANT works
 with VS 2013 Express for me.
 
 Mit freundlichen Grüßen,
 
 Thorsten Schöning
 


Can you clarify what you mean by shouldn't be necessary? If ANT is not 
necessary, what are the proper steps to build log4cxx from trunk? I'm 
attempting to build log4cxx using VC6 to integrate it with a VC6 project I'm 
working on.




Re: Status of log4cxx under Windows using VS 2010

2014-03-21 Thread Oscar Pernas
Hi,

I've compiled log4cxx in vs2010 following the same HOW-TO. Everything went
fine, dll was generated. My problem started when I was linking with my app,
I had some weird errors like already defined object std::vector, resolved
including log4cxx.h in my files that was failing.

Now, If I start debugging, when I call to log4cxx configure method, an
std::length_error is thrown only in debug.
Could be a project configuration problem? When are you planning to release
a version with vs2010 support?

Thanks a million!





2014-03-18 19:30 GMT+01:00 Thorsten Schöning tschoen...@am-soft.de:

 Guten Tag Joseph Fradley,
 am Dienstag, 18. März 2014 um 18:11 schrieben Sie:

  Thank you. Is Ant the preferred way to build log4cxx? I don't see the VS
 project files any more.

 The project files are only part of a release, you can create those
 with ANT on your own but shouldn't be necessary. At least ANT works
 with VS 2013 Express for me.

 Mit freundlichen Grüßen,

 Thorsten Schöning

 --
 Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
 AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

 Telefon...05151-  9468- 55
 Fax...05151-  9468- 88
 Mobil..0178-8 9468- 04

 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
 AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow




-- 
Óscar Pernas Plaza.


Re: Status of log4cxx under Windows using VS 2010

2014-03-21 Thread Thorsten Schöning
Guten Tag Oscar Pernas,
am Freitag, 21. März 2014 um 10:19 schrieben Sie:

 I've compiled log4cxx in vs2010 following the same HOW-TO.

I would suggest using a current trunk with ANT following the official
docs, there shouldn't be any changes to the code necessary anymore to
successfully compile. If your errors still persists, we can dig into
those further. The ANT build provides running of some tests as well to
see if the created lib is generally usable.

http://logging.apache.org/log4cxx/source-repository.html
http://logging.apache.org/log4cxx/building/ant.html

 Now, If I start debugging, when I call to log4cxx configure method,
 an std::length_error is thrown only in debug. 

If this error persists with trunk, a stack trace would be helpful.

 Could be a project configuration problem? When are you planning to
 release a version with vs2010 support?   

There's no release date yet.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow



Re: Status of log4cxx under Windows using VS 2010

2014-03-18 Thread Joseph Fradley
I hit another roadblock. I'm trying to create an AsyncAppender with a
ConsoleAppender attached (programatically for now). Once I call
logger-addAppender(asyncAppender) I get an access violation exception:

Unhandled exception at 0x0fd39f81 (log4cxx.dll) in ...

My code looks like this:
defaultLayout = new log4cxx::SimpleLayout();
asyncAppender = new log4cxx::AsyncAppender();
consoleAppender = new log4cxx::ConsoleAppender(defaultLayout);
asyncAppender-addAppender(consoleAppender);
logger-addAppender(asyncAppender);   // crashes here


The exception occurs here in log4cxx:

void AsyncAppender::addRef() const {
ObjectImpl::addRef();  // crashes here
}



Now I'm worried the work around instructions I used to compile log4cxx
under VS 2010 might have messed something up. It works if I just use the
ConsoleAppender.

Does anybody have any experience using the AsyncAppender? Am I missing a
step?

Thank you for any help. I'm probably going to have to punt using log4cxx
now.

Joe



On Tue, Mar 18, 2014 at 10:17 AM, Joseph Fradley joe.frad...@fradeng.comwrote:

 Hello,

 FWIW, this guy had the best HOW-TO to compile log4cxx on Windows using VS
 2010.


 http://www.codeproject.com/Tips/492585/How-to-build-log4cxx-with-Visual-Studio-2010

 I'm going to be evaluating with my C/C++ app. Is there any known show
 stoppers that I should know about (under Windows with VS 2010)?

 Thank you,
 Joe





Re: Status of log4cxx under Windows using VS 2010

2014-03-18 Thread Thorsten Schöning
Guten Tag Joseph Fradley,
am Dienstag, 18. März 2014 um 15:17 schrieben Sie:

 http://www.codeproject.com/Tips/492585/How-to-build-log4cxx-with-Visual-Studio-2010

The code changes should no longer be necessary if you use trunk, we
had some bugs for those changes and already applied them. though I
don't know the numbers anymore.
Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow



Re: Status of log4cxx under Windows using VS 2010

2014-03-18 Thread Thorsten Schöning
Guten Tag Joseph Fradley,
am Dienstag, 18. März 2014 um 18:11 schrieben Sie:

 Thank you. Is Ant the preferred way to build log4cxx? I don't see the VS 
 project files any more.

The project files are only part of a release, you can create those
with ANT on your own but shouldn't be necessary. At least ANT works
with VS 2013 Express for me.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow