continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schneider" <schna...@gmx.net>
Subject Continuum build with native plugin failed
Date Mon, 31 Mar 2008 07:01:31 GMT
Hi,

I am trying to build a c++ project with continuum. When I build it without continuum it works
perfect. But building in continuum I get the following error:

[INFO] cl.exe /nologo /MT /W3 /O2 /GX /D '&quot;NDEBUG&quot;' /D '&quot;WIN32&quot;'
/D '&quot;_USRDLL&quot;' /D '&quot;CPPTRACE_EXPORTS&quot;' /FD /c -ID:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10\src\main\cpp\cpptrace
-ID:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10\src\main\cpp\cpptrace\include
-IL:\RAS_NVH_309\commons\logging-log4cpp\src\main\cpp\log4cpp\include -ID:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10\src\main\cpp\cpptrace
&quot;-IC:\Program Files\Java\jdk1.5.0_14\jre\..\include&quot; &quot;-IC:\Program
Files\Java\jdk1.5.0_14\jre\..\include\win32&quot; /FoD:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10\target\Log4cppTraceImpl.obj
-c D:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10\src\main\cpp\cpptrace\Log4cppTraceImpl.cpp
Log4cppTraceImpl.cpp
D:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10\src\main\cpp\cpptrace\Log4cppTraceManager.h(9)
: fatal error C1083: Cannot open include file: 'log4cpp/Category.hh': No such file or directory

This missing header file is in the directory L:\RAS_NVH_309\commons\logging-log4cpp\src\main\cpp\log4cpp\include.
Is it a problem when this include directory is outside the WEB-INF directory? I tried to build
the project from command line in the directory D:\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\10
and it works. Can anybody help me with that?

Here the native configuration in my pom.xml:

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>native-maven-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <compilerProvider>msvc</compilerProvider>
          <envFactoryName>
            org.codehaus.mojo.natives.msvc.MSVC6EnvFactory
          </envFactoryName>
          <compilerStartOptions>
            <compilerStartOption>/nologo</compilerStartOption>
            <compilerStartOption>/MT</compilerStartOption>
            <compilerStartOption>/W3</compilerStartOption>
            <compilerStartOption>/O2</compilerStartOption>
            <compilerStartOption>/GX</compilerStartOption>
            <compilerStartOption>/D "NDEBUG"</compilerStartOption>
            <compilerStartOption>/D "WIN32"</compilerStartOption>
            <compilerStartOption>/D "_USRDLL"</compilerStartOption>
            <compilerStartOption>/D "CPPTRACE_EXPORTS"</compilerStartOption>
            <compilerEndOption>/FD</compilerEndOption>
            <compilerEndOption>/c</compilerEndOption>
          </compilerStartOptions>

          <!-- 
            | Add jdk include directories to system include path
            | Override ${jkdIncludePath} If your jdk does not conform to Sun JDK layout
          -->
          <javahOS>win32</javahOS>

          <sources>
            <source>
              <directory>src/main/cpp/cpptrace</directory>
              <includes>
                <include>*.cpp</include>
              </includes>
            </source>
            <source>
              <directory>src/main/cpp/cpptrace/include</directory>
            </source>
            <source>
              <directory>${include.log4cpp}</directory>
            </source>
          </sources>
          <!-- deploy the accompany .lib file as well -->
          <linkerSecondaryOutputExtensions>
            lib
          </linkerSecondaryOutputExtensions>

          <linkerStartOptions>
            <linkerStartOption>
              kernel32.lib user32.lib gdi32.lib winspool.lib
              comdlg32.lib advapi32.lib shell32.lib ole32.lib
              oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll
              /machine:I386
            </linkerStartOption>
          </linkerStartOptions>
        </configuration>

        <executions>
          <execution>
            <id>javah</id>
            <phase>generate-sources</phase>
            <configuration>
              <outputDirectory>src/main/cpp/cpptrace</outputDirectory>
              <outputFileName>TraceManagerJniAccess.h</outputFileName>
              <classNames>
                <className>
                  com.rieter.commons.logging.cpp.CPPTraceManager
                </className>
              </classNames>
            </configuration>
            <goals>
              <goal>javah</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free

Mime
View raw message