Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
tpl2rem -dll broken
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arni Magnusson  
View profile  
 More options May 21 2009, 6:23 pm
From: Arni Magnusson <arn...@hafro.is>
Date: Thu, 21 May 2009 22:23:13 +0000 (GMT)
Local: Thurs, May 21 2009 6:23 pm
Subject: [Developers] tpl2rem -dll broken
I'm in the final phase of testing ADMB-IDE now, and discovered that
tpl2rem seems to be unable to produce C++ code for creating a DLL. Using
http://otter-rsch.com/admbre/examples/nbmm/nbmm.tpl as an example:

   tpl2rem nbmm

works and eventually builds successfully to an executable, but

   tpl2rem -dll nbmm

crashes after looking for a missing file seddf1b3dll:

   sed: couldn't open file /home/haf/arnima/admb/bin/seddf1b2dll:
   No such file or directory

The same error is reported by ADMB for GCC (Linux and Windows) and ADMB
for Borland.

Looking through the tpl2rem executable, it also mentions seddf1b3dll, so
these two files (seddf1b2dll, seddf1b3dll) are probably needed in the ADMB
bin directory.

Cheers,

Arni
_______________________________________________
Developers mailing list
Develop...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/developers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dave fournier  
View profile  
 More options May 21 2009, 8:18 pm
From: dave fournier <da...@otter-rsch.com>
Date: Thu, 21 May 2009 17:18:04 -0700
Local: Thurs, May 21 2009 8:18 pm
Subject: Re: [Developers] tpl2rem -dll broken

Arni Magnusson wrote:

Actually I gave up on the dll sutff as there seemed to be some kind of
subtle error and the R (and Gauss) people didn't seem to give a shit
about the effort anyway. So it was never extrended to tpl2rem.

    Dave

--
David A. Fournier
P.O. Box 2040,
Sidney, B.C. V8l 3S3
Canada
Phone/FAX 250-655-3364
http://otter-rsch.com

_______________________________________________
Developers mailing list
Develop...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/developers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arni Magnusson  
View profile  
 More options May 21 2009, 9:21 pm
From: Arni Magnusson <arn...@hafro.is>
Date: Fri, 22 May 2009 01:21:42 +0000 (GMT)
Local: Thurs, May 21 2009 9:21 pm
Subject: Re: [Developers] tpl2rem -dll broken

On Thu, 21 May 2009, dave fournier wrote:
> Actually I gave up on the dll sutff as there seemed to be some kind of
> subtle error and the R (and Gauss) people didn't seem to give a shit
> about the effort anyway. So it was never extrended to tpl2rem.

Well, wasn't glmmADMB
(http://otter-rsch.com/admbre/examples/nbmm/nbmm.dll) created with
tpl2rem, though? And Microsoft Visual C++, as far as I can tell. Does
anyone know whether seddf1b2dll and seddf1b3dll existed back then, or was
the mechanism different?

I think DLLs are worthwhile. ADMB-IDE provides a GUI option to create DLL,
and does so successfully for plain (non-RE) models in Windows. It loads
and runs smoothly in R, so I haven't noticed the subtle error that Dave
mentioned, but maybe that's because I'm only using the minimalistic
simpdll.tpl example.

I have not been able to build a working simpdll.so in Linux, on the other
hand. The current version of ADMB is not built with -fPIC, so the linker
complains about libadmod.a:

$ g++ -s -shared -L$ADMB_HOME/lib simpdll.o -ldf1b2stub -ladmod -ladt
-lado -ldf1b2stub -ladmod -ladt -lado -o simpdll.so
/usr/bin/ld: /home/arnima/admb/lib/libadmod.a(admodel.obj): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/home/arnima/admb/lib/libadmod.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

If I rebuild ADMB after inserting -fPIC into the makefiles, I can build
the simpdll.so, but R can't load it:

> dyn.load("~/simpdll/simpdll.so")

Error in dyn.load("~/simpdll/simpdll.so") :
   unable to load shared library '/home/arnima/simpdll/simpdll.so':
   /home/arnima/simpdll/simpdll.so: undefined symbol:
_ZN7ad_comm21get_slave_assignmentsEv

All the best,

Arni
_______________________________________________
Developers mailing list
Develop...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/developers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »