[ADMB Users] Mac OS 10.9.2 error compiling simple.tpl

Johnoel Ancheta johnoel at hawaii.edu
Thu Jun 26 12:11:01 PDT 2014


Try this

http://www.admb-project.org/buildbot/documentation/QuickStartMacOS.html


On Wed, Jun 11, 2014 at 11:35 AM, John Brandon <jbrandon at gmail.com> wrote:

> Nevermind, I figured this out. The problem had to do with having installed
> a prior version of ADMB on my machine. The “.bash_profile” file needed to
> be edited, after installing a new version, so that it points to the updated
> ADMB paths.
>
> For reference, the process I used:
> $ touch ~/ .bash_profile; open ~/ .bash_profile # to open .bash_profile
> file in text editor
> # Edited text in .bash_profile to update paths for ADMB_HOME and tpl2cpp —
> previously the paths (from the prior installation) were ‘usr/local/admb'
> # The first three lines of the .bash_profile file on my machine look like
> below (I didn’t edit the 2nd line), and now correspond to new version's
> directory
> # export ADMB_HOME=/Users/johnbrandon/admb/build/dist.
> # export PATH=$ADMB_HOME/bin:$PATH
> # alias tpl2cpp=‘/Users/johnbrandon/admb/build/dist/bin/tpl2cpp’
> $ source ~/ .bash_profile # loads the updated values in .bash_profile
> without having to reboot
>
> That was it.
> Best,
> John
>
>
> On Jun 10, 2014, at 2:34 PM, John Brandon <jbrandon at gmail.com> wrote:
>
> Hi Johnoel et al.
>
> This is a query about installing / running ADMB 11.1 on Mac OS 10.9.2
> (with Xcode 5.1.1). I’ve followed the instructions posted here:
> http://www.admb-project.org/buildbot/documentation/QuickStartUnix.html
>
> My first question has to do with step #2. After getting the most recent
> code through the ‘$ svn checkout ...’ command provided, I have tried
> running the command, '$ unzip admb.zip', but I get the message:
> unzip:  cannot find or open admb.zip, admb.zip.zip or admb.zip.ZIP
>
> Nevertheless, I went ahead and ran the '$ make’ and ‘$ make debug’
> commands, and I didn’t see any errors reported (there were some warnings
> about unused variables as things were compiling).
>
> I have an older version of ADMB installed under /usr/local/admb. I
> remembered as part of that installation (on an earlier version of Mac OS)
> that the ADMB_HOME path had been set. So, I reset ADMB_HOME to point to the
> new installation files by running ‘$ export
> ADMB_HOME=/Users/johnbrandon/admb/build/dist’, to point to the
> sub-directory where the most recent files were installed (thinking the
> ‘dist’ directory would help point to the *.h files for *.tpl compiling).
>
> When I try to compile the ‘simple.tpl’ file, I get the following error
> (screenshot attached):
> simple.cpp:37:3: error: use of undeclared identifier
> ‘admaster_slave_variable_interface’
>  admaster_slave_variable_interface(*this);
> ^
> 1 error generated.
>
> Does any of this suggest where I might correct things?
> If I can provide more information, let me know.
> Thanks,
> John Brandon
>
> <PastedGraphic-1.png>
>
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20140626/b9d6ffa1/attachment.html>


More information about the Users mailing list