|
From: Michael M. <mic...@su...> - 2009-03-19 19:47:26
|
Thanks Fred,
I'll try and create the Jira issue.
Maven version: 2.0.8
Java version: 1.6.0_06
<packaging>uexe</packaging>
We're thinking about removing the main() and creating a .a instead.
Here's the POM fragment: (you may want to remove the -m64 option for
testing)
<build>
<sourceDirectory>src/main/native</sourceDirectory>
<testSourceDirectory>src/test/native</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.jfrog.jade.plugins.build</groupId>
<artifactId>jade-native-plugin</artifactId>
<version>1.4-alpha1</version>
<extensions>true</extensions>
<configuration>
<deployInclude>true</deployInclude>
<linkerStartOptions>
<linkerStartOption>-g -m64</linkerStartOption>
</linkerStartOptions>
<linkerEndOptions>
<linkerEndOption>-lpthread -lnsl -lsec -lz
-lsocket</linkerEndOption>
</linkerEndOptions>
<compilerStartOptions>
<compilerStartOption>-g -m64</compilerStartOption>
</compilerStartOptions>
<compilerExecutable>g++</compilerExecutable>
<linkerExecutable>g++</linkerExecutable>
</configuration>
</plugin>
</plugins>
</build>
freddy33 wrote:
>
> What packaging type are you using?Which maven version?
> I'm afraid the list of *.o is kept in the plugin and got clean-up by
> maven.
> I'll try to reproduce that, if you create a nice Jira issue it will help,
> thanks.
>
> Fred.
>
> On Thu, Mar 19, 2009 at 11:42 AM, Michael Maven
> <mic...@su...>wrote:
>
>>
>> Does anyone have an example POM for linking and running cppunit tests?
>>
>> -Michael
>>
>> Michael Maven wrote:
>> >
>> > I'm trying to link my cppunit tests and the linker isn't picking up the
>> .o
>> > files from the source build.
>> > I would expect all the .o files to be specified in the linker statement
>> > with a -L. Here's the output:
>> >
>> > [INFO] g++ -g -m64 -o ./target/test-tefwfp
>> > ./target/obj/tefwfp-3.5/test/ExtractorTest.o
>> > ./target/obj/tefwfp-3.5/test/Log4CppTest.o
>> > ./target/obj/tefwfp-3.5/test/MainTest.o -L /opt/mysql/mysql/lib -L
>> > ../3rdparty/log4cpp-1.0/src/.libs -L ../3rdparty/cppunit-1.12.1/lib -l
>> > mysqlclient -lpthread -lnsl -lsec -lz -lsocket -llog4cpp -lcppunit-1.12
>> > Undefined first referenced
>> > symbol in file
>> > tef::wfp::FileFilter::FileFilter(std::basic_string<char,
>> > std::char_traits<char>, std::allocator<char> >
>> > const&)./target/obj/tefwfp-3.5/test/ExtractorTest.o
>> >
>> > needs a -L .\target\obj\tefwfp-3.5\debug\FileFilter.o
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/jade-native%3Atest-link-not-using-built-products-tp22582140p22606848.html
>> Sent from the Jade Plugins Users mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
>> easily build your RIAs with Flex Builder, the Eclipse(TM)based
>> development
>> software that enables intelligent coding and step-through debugging.
>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
>> _______________________________________________
>> Jade-plugins-users mailing list
>> Jad...@li...
>> https://lists.sourceforge.net/lists/listinfo/jade-plugins-users
>>
>
>
>
> --
> http://www.jfrog.org/
> http://freddy33.blogspot.com/
> http://nothingisinfinite.blogspot.com/
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Jade-plugins-users mailing list
> Jad...@li...
> https://lists.sourceforge.net/lists/listinfo/jade-plugins-users
>
>
--
View this message in context: http://www.nabble.com/jade-native%3Atest-link-not-using-built-products-tp22582140p22608018.html
Sent from the Jade Plugins Users mailing list archive at Nabble.com.
|