Troubles with SDL image library

Hi, my goal is to port SuperTux - a 2D platform game to browser using crossbridge. I currently work on OS X Maverics if thats important. I'm very new to this area - I have some small experience with C++ after colege, but in work I work with web technologies - so Im some sort of noob with that - especially with Crossbridge.
I followed install instruction and crossbridge itself works fine - Hello World compiles well. Now that I try to compile supertux proccess fails on ./configure level.
$ export PATH=~/crossbridge/sdk/usr/bin:$PATH
$ ./configure
checking build system type... AVM2-unknown-freebsd8.2
checking host system type... AVM2-unknown-freebsd8.2
checking target system type... AVM2-unknown-freebsd8.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/Users/zzz/Projekty/supertux13/missing: Unknown `--is-lightweight' option
Try `/Users/zzz/Projekty/supertux13/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for gprof mode... disabled
checking for debug mode... disabled
checking wether OpenGL should be used... yes
checking for sdl-config... /Users/zzz/crossbridge/sdk/usr/bin/sdl-config
checking for SDL - version >= 1.2.4... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for IMG_Load in -lSDL_image... no
configure: error: SDL_image library required
And with the config.log:
configure:5390: checking for IMG_Load in -lSDL_image
configure:5415: gcc -o conftest -g -O2 -I/Users/zzz/crossbridge/sdk/usr/include/SDL -D_GNU_SOURCE=1   conftest.c -ltiff -ljpeg -lpng -lz -lSDL_image -lSDL_mixer  -L/Users/zzz/crossbridge/sdk/usr/lib -Wl,-rpath,/Users/zzz/crossbridge/sdk/usr/lib -lSDL -lm -lvgl >&5
/Users/zzz/crossbridge/sdk/usr/bin/ld: error: cannot find -ltiff
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_calc_output_dimensions'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_CreateDecompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_destroy_decompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_finish_decompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_read_header'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_read_scanlines'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_resync_to_restart'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_start_decompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_std_error'
At the moment I start to think that this maight be problem related to crossbridge itself. Lib SDL_image came with basic instalation - I also tried to compile it myself, but without any help. Some googling showed up that this problem was affecting some cygwin users, but I didn't give nay clues how ti fix that. I tried to skip SDL_image in configure - and that is the only problem I have with libraries.
Also If want to compile it in a normal way - without Crossbridge, it works well.
Anyone might be able to help with that? I already lost a lot of time facing this bug, but I couldn't make it work. I would really apprecieate any help.

ziemovitto wrote:
... And with the config.log:
configure:5390: checking for IMG_Load in -lSDL_image
configure:5415: gcc -o conftest -g -O2 -I/Users/zzz/crossbridge/sdk/usr/include/SDL -D_GNU_SOURCE=1   conftest.c -ltiff -ljpeg -lpng -lz -lSDL_image -lSDL_mixer  -L/Users/zzz/crossbridge/sdk/usr/lib -Wl,-rpath,/Users/zzz/crossbridge/sdk/usr/lib -lSDL -lm -lvgl >&5
/Users/zzz/crossbridge/sdk/usr/bin/ld: error: cannot find -ltiff
This means you don't have a static library called "tiff" (at least in the library paths). I'm guessing you can live without TIFF (.tif) image support so you probably need to modify configure or it's arguments to reflect this (if the game has any TIFF image resources you will need to convert these to another format...)
ziemovitto wrote:
... And with the config.log:
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_calc_output_dimensions'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_CreateDecompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_destroy_decompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_finish_decompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_read_header'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_read_scanlines'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_resync_to_restart'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_start_decompress'
/Users/zzz/crossbridge/sdk/usr/lib/libSDL_image.a: error: undefined reference to '_jpeg_std_error'
Pretty sure this means the jpeg library you have doesn't have the functions listed... but this error is stopping you from compiling conftest.c (ie. not the game) which is trying to see if your SDL_image library is up to it's standards...
Porting doesn't mean compiling. You suggest that you can skip the tests on the SDL_image library and configure without further errors so that gives you a way forward. You may be lucky and find that the game doesn't call the missing JPEG functions, or if it does you may be able to work around what's missing, if the JPEG library is complete enough to load JPEG images then this might just mean replacing the function calls with their equivalents from the library which you have. Do remember though that as SuperTux is GPL you need to ensure that if you change anything your modify source code is made available to at least the same people as the compiled SWF.

Similar Messages

  • Trouble with opening images from dreamweaver cs6(64bit) to photoshop cs6(64bit).

    Hi guys i need help! I have trouble with opening images from dreamweaver cs6(64bit) to photoshop cs6(64bit). I uninstalled and went to preferences/file types editors to set up ps6 as primary but I still get some error.After i click image in dreamweaver,I get this message-Unable to launch...Please be sure that application exists and that there is enough memory to run it..

    Can you Launch Photoshop normally from your desktop shortcuts?
    I usually keep DW and PS open at all times so I can switch back & forth.
    Nancy O.

  • Trouble with "body" images lining up at the top

    Hi, I am having troubles with the #body style in my web page. I have inserted a table into the #body area and the the body editable region will not line up on the top with the sideBar editable region when I add text and apply my css to it. Can you look at the code and let me know what I am doing wrong? Thanks!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Ram Restaurant &amp; Brewery</title>
    <!-- TemplateEndEditable -->
    <meta name="keywords" content="Ram Restaurant, The Ram restaurant, Ram Restaurant and brewpub, Ram Restaurant Group, Ram International" />
    <meta name="description" content="Welcome to The Ram!  Your stomach wants food.  Your tastebuds want beer.  Satisfy them both at the Ram Restaurant & Brewery." />
    <style type="text/css">
    <!--
    body {
    background-color: #333;
    margin: 0 auto;
    padding: 0px;
    margin-left: 0px;
    margin-right: 0px;
    .navbar_center {
    text-align: center;
    -->
    </style>
    <link href="/RamWebsite_NEW/cssstyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    color: #F00;
    margin: 0px;
    padding: 0px;
    a:link {
    color: #666;
    text-decoration: none;
    h1 {
    font-size: 36px;
    color: #000;
    h2 {
    font-size: 24px;
    color: #000;
    h3 {
    font-size: 18px;
    color: #000;
    h4 {
    font-size: 12px;
    color: #000;
    a:visited {
    text-decoration: none;
    color: #000;
    a:hover {
    text-decoration: underline;
    a:active {
    text-decoration: none;
    -->
    </style>
    <!--[if lte IE 8]>
    <style type="text/css">
    ul.MenuBarHorizontalul  li ul li ul li.MenuBarHorizontal, ul.MenuBarHorizontal li ul li.MenuBarHorizontal {
    width:100px;
    height:23px;
    </style>
    <![endif]-->
    <script src="/RamWebsite_NEW/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="/RamWebsite_NEW/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body link="#000000" topmargin="0" onload="MM_preloadImages('/RamWebsite_NEW/images/Menu_rollover.jpg','/RamWebsite_NEW/imag es/EventsLink2_rollover.jpg','/RamWebsite_NEW/images/GiftCards_rollover.jpg','/RamWebsite_ NEW/images/BeerLink2_rollover.jpg')">
    <div id="wrapper">
    <div id="header">
        <table width="900" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <th width="200" height="36" rowspan="2" align="center" valign="middle" scope="col"><a href="http://www.theram.com"><img src="/RamWebsite_NEW/images/Ram-Logo-red.gif" alt="Ram Restaurant &amp; Brewery Logo" width="175" height="69" border="0" /></a></th>
            <th width="350" height="50" align="center" valign="middle" scope="col"> </th>
            <th width="200" align="center" valign="middle" scope="col"> </th>
            <th width="150" align="right" valign="middle" scope="col"><a href="http://www.facebook.com/home.php?#!/theramrestaurant?ref=ts"><img src="/RamWebsite_NEW/images/FacebookBox.gif" alt="Becoma a Facebook Fan!" width="40" height="40" border="0" /></a><a href="http://www.twitter.com/theram"><img src="/RamWebsite_NEW/images/TwitterBox.gif" alt="Follow Us on Twitter" width="40" height="40" hspace="30" border="0" /></a></th>
          </tr>
          <tr>
            <th colspan="3" align="right" scope="col"><ul id="MenuBar1" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="#">MENU</a>
                <ul>
                  <li><a href="#" class="MenuBarItemSubmenu">Idaho</a>
                    <ul>
                      <li><a href="/menus/idaho/boise.shtml">Boise</a></li>
                      <li><a href="/menus/idaho/meridian.shtml">Meridian</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Illinois</a>
                    <ul>
                      <li><a href="/menus/illinois/rosemont.shtml">Rosemont</a></li>
                      <li><a href="/menus/illinois/schaumburg.shtml">Schaumburg</a></li>
                      <li><a href="/menus/illinois/wheeling.shtml">Wheeling</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Indiana</a>
                    <ul>
                      <li><a href="/menus/indiana/fishers.shtml">Fishers</a></li>
                      <li><a href="/menus/indiana/indianapolis.shtml">Indianapolis</a></li>
    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Oregon</a>
                    <ul>
                      <li><a href="/menus/oregon/clackamas.shtml">Clackamas</a></li>
                      <li><a href="/menus/oregon/salem.shtml">Salem</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Washington</a>
                    <ul>
                      <li><a href="/menus/washington/kent.shtml">Kent</a></li>
                      <li><a href="/menus/washington/lacey.shtml">Lacey</a></li>
                      <li><a href="/menus/washington/lakewood.shtml">Lakewood</a></li>
                      <li><a href="/menus/washington/puyallup.shtml">Puyallup South Hill Mall</a></li>
                      <li><a href="/menus/washington/puyallup2.shtml">Puyallup Sunrise Village</a></li>
                      <li><a href="/menus/washington/northgate.shtml">Seattle Northgate</a></li>
                      <li><a href="/menus/washington/seattle.shtml">Seattle University Village</a></li>
                      <li><a href="/menus/washington/tacoma.shtml">Tacoma</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a href="#" class="MenuBarItemSubmenu">LOCATIONS</a>
                <ul>
                  <li><a href="#" class="MenuBarItemSubmenu">Idaho</a>
                    <ul>
                      <li><a href="/idaho/boiseNew.html">Boise</a></li>
                      <li><a href="/idaho/meridianNew.html">Meridian</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Illinois</a>
                    <ul>
                      <li><a href="/illinois/rosemontNew.html">Rosemont</a></li>
                      <li><a href="/illinois/schaumburgNew.html">Schaumburg</a></li>
                      <li><a href="/illinois/wheelingNew.html">Wheeling</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Indiana</a>
                    <ul>
                      <li><a href="/indiana/fishersNew.html">Fishers</a></li>
                      <li><a href="/indiana/indianapolisNew.html">Indianapolis</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Oregon</a>
                    <ul>
                      <li><a href="/oregon/clackamasNew.html">Clackamas</a></li>
                      <li><a href="/oregon/salemNew.html">Salem</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Washington</a>
                    <ul>
                      <li><a href="/washington/kentNew.html">Kent</a></li>
                      <li><a href="/washington/laceyNew.html">Lacey</a></li>
                      <li><a href="/washington/lakewoodNew.html">Lakewood</a></li>
                      <li><a href="/washington/puyallup-southHill-NEW.html">Puyallup South Hill Mall</a></li>
                      <li><a href="/washington/puyallup-Sunrise-New.html">Puyallup Sunrise Village</a></li>
                      <li><a href="/washington/northgateNew.html">Seattle Northgate</a></li>
                      <li><a href="/washington/seattleNew.html">Seattle University Village</a></li>
                      <li><a href="/washington/tacomaNew.html">Tacoma</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a class="MenuBarItemSubmenu" href="#">PROMOS</a>
                <ul>
                  <li><a href="/drink_specials.shtml">Drink Promos</a>              </li>
                  <li><a href="/food_specials.shtml">Food Promos</a></li>
    </ul>
              </li>
              <li><a href="/news.shtml">RAM NEWS</a></li>
              <li><a href="/about.shtml">ABOUT US</a></li>
              <li><a href="#" class="MenuBarItemSubmenu">CONTACT US</a>
                <ul>
                  <li><a href="/contact.shtml">General Info</a></li>
                  <li><a href="/employment.shtml">Careers</a></li>
                  <li><a href="/comments.shtml">Comments</a></li>
                </ul>
              </li>
              <li><a href="/banquets.shtml" class="MenuBarItemSubmenu">BANQUETS</a>
                <ul>
                  <li><a href="/banquets.shtml">Banquets</a></li>
                  <li><a href="/banquets-catering.shtml">Off-Site Catering</a></li>
                </ul>
              </li>
            </ul></th>
          </tr>
          <tr>
            <th colspan="4" align="center" valign="middle" scope="col"><img src="/RamWebsite_NEW/images/redbar.gif" width="900" height="11" /></th>
          </tr>
        </table>
    </div>
    <div id="body">
      <table width="900" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <th height="300" valign="top" scope="col"><table width="900" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <th width="225" align="center" valign="top" bgcolor="#000000" scope="col"><!-- TemplateBeginEditable name="sideBar" -->adfadsfds<!-- TemplateEndEditable --></th>
              <th width="675" align="left" valign="top" bgcolor="#FFFFFF" scope="col"><!-- TemplateBeginEditable name="body" -->
                <p><img src="/images/aboutus2.jpg" width="675" height="300" /></p>
                <p class="foodNameDesc">adfadslkj</p>
              <!-- TemplateEndEditable --></th>
            </tr>
          </table></th>
        </tr>
      </table>
    </div>
    <div id="bottomMenuSubPg">
      <table width="900" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Menu','','/RamWebsite_NEW/images/Menu_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/Menu.jpg" alt="Menu" name="Menu" width="212" height="125" hspace="6" border="0" id="Menu" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Big Horn Beer','','/RamWebsite_NEW/images/BeerLink2_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/BeerLink2.jpg" alt="Big Horn Beer" name="Big Horn Beer" width="212" height="125" hspace="6" border="0" id="Big Horn Beer" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Events','','/RamWebsite_NEW/images/EventsLink2_rollover.jpg',1 )"><img src="/RamWebsite_NEW/images/EventsLink2.jpg" alt="Events at the Ram" name="Events" width="212" height="125" hspace="6" border="0" id="Events" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Gift Cards','','/RamWebsite_NEW/images/GiftCards_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/GiftCards.jpg" alt="Gift Cards" name="Gift Cards" width="212" height="125" hspace="6" border="0" id="Gift Cards" /></a></th>
        </tr>
      </table>
    </div>
    <div id="bottommenu2"></div>
    <map name="Map" id="Map">
      <area shape="poly" coords="16,103" href="#" />
      <area shape="poly" coords="49,71,102,58,158,73,191,113,180,141,151,161,109,169,65,162,31,141,18,112" href="http://theram.fbmta.com/members/UpdateProfile.aspx?Action=Subscribe&amp;InputSource=W" target="_blank" />
    </map>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/RamWebsite_NEW/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"/RamWebsite_NEW/SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </div>
    </body>
    </html>

    You have your image in the 'body editable region' wrapped in <p></p> tags (paragraph tags). <p> tags have padding and margin set on them by default.
    <p><img src="/images/aboutus2.jpg" width="675" height="300" /></p>
    You can either just remove the <p></p> tags or you can zero out the padding and margin:
    p {
    padding: 0;
    margin: 0;
    Unfortuanately the above will target every paragraph on your page which might not be desirable so I would just remove the <p> tags as it is not necessary to wrap an image in them.
    If you do want to keep the <p> tags then use some inline css to specifically remove the padding and margin on that particular one:
    <p style="padding: 0; margin: 0;"><img src="/images/aboutus2.jpg" width="675" height="300" /></p>

  • Trouble with rollover image in div

    Hello there,
    I am having some trouble with the following.
    I want to create a rollover image 90 pxl x 90 pxl and put it inside a div 90 pxl x 90 pxl.
    The div is inside other divs and makes up a kind of a table. I checked that all the div and image sizes are the same but when I place the cursor inside the div and select 'insert rollover image', my images are all squashed up and don't appear normal size. Very odd.
    Here is some of my code:
    CSS of div (I want to put my image inside smallBox01a)
    #Header #rightColumn #smallBox01 {
        height: 90px;
        width: 270px;
    #Header #rightColumn #smallBox01 #smallBox01a {
        float: left;
        height: 90px;
        width: 90px;
    HTML
          <div id="smallBox01a"><a href="tobi.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('tobi','','Images/TobiOver.jpg',1)"><img src="Images/TobiOff.jpg" alt="Tobi" name="tobi" width="90" height="90" border="0" id="tobi" /></a></div>
    Poor old Tobi cat's face is all squashed up. Any idea what is going wrong? I don't have any padding within the div either.
    Thanks!
    PS I also should add that when I tried to simply add in one of the Tobi images instead of the rollover image, it appeared perfectly fine within the div. It is only the rollover that is getting vertically squashed up.

    So, I've been playing around with your page in dreamweaver and I put a <div> container around your entire web page and then set the width to 1200px. That contained all the contents so that when you re-size the web page the contents don't colapse.
    Not sure if that's what Murray or Nancy mean and am curious if their is a better way.
    That would work although 1200px is too wide.  Something along the lines of 1000px would be better, since you want the page to display in a maximized browser viewport on a 1024 screen without dropping horizontal scrollbars.  I still use 960px as a maximum width....
    Re the centering of the page: Good question I would like to know how to do it "properly"
    In the CSS body rule I put:  margin-left: 20%;
                                                margin-right: 20%;
    Again, I'm not sure if that's the correct way to center the page, and would like to know a better way.
    It's not the best way to do this, which would be to use a fixed width container (as you have done) and just assign it left/right margin settings of 'auto', e.g.,
    #container { width:960px; margin:0 auto; }
    You can center *any* block element within its container with this method.

  • I am new to Mac and am having trouble with uploading images from my pictures folder to Facebook and other share sites- some of my images are accessible while others are seemingly locked....

    I am new to Mac and am having trouble up loafing images from my pictures folder to photography sites and Facebook. Some of the saved images are accessible, while others are not, ( they are light colored and cannot be uploaded) I am not saving them any differently.

    Hi Robodisko,
    Thanks for your prompt reply...... 
    I often proof my work in preview then edit images in photoshop and rename from there.  The dsc images are renamed to correlate the name of the class etc.  i.e. dcs_001 is saved as the file name required 7A.jpeg etc.
    The file names are required to correlate what is what and so on..........

  • Having trouble with Aperture images in a slideshow in iMovie

    I've searched for answers to this but can't seem to find out what I'm doing wrong....
    I'm trying to put together a slideshow in iMovie with my images from Aperture. They look horrible, color is way off and they're grainy. It was my understanding that iMovie uses the preview images from Aperture for making the movie so I have my settings in Aperture set to the best quality for previews. Is that right? Is there something else I should be doing?
    Thanks for any help.

    No, thats the right way I do it with my images. I use iMovie 09 and the preview size of my iLife previews are set to 1680 pixel. I do mostly some slideshows in iMovie for displaying on the web and for iPhone, so the output from iMovie will be most times at 480 pixel wide. The colors are fine and images look best as in Aperture.
    What I found sometimes is, some outwashed colors - unsaturated - after I export my movie from iMovie. This comes when I use other settings for exporting the movie than the presets for iPhone or Apple TV. The same behavoir did I recognize when exporting a movie from Final Cut Express or Keynote. This behavoir may be outdated in Snow Leopard, because Quicktime X should use Colormanagement the first time.

  • Big Problem With Corrupted Image Library - Need Help Please

    I recently updated my Aperture 2 (2.1) with the latest update. Upon doing so, most images in my library now show up in the 'ole maroon box with the message "Unsupported Image Format." This only began after the update. I've spent hours reading threads on here, but no real solution can be found. I've spent a few hours on the phone with Apple Support and in my local store at the Genius Bar. What they're telling me is that my library file has become corrupted. That my preview/thumbnails have become "diconnected" from the actual full size image file. I've tried holding down option + command while starting Aperture in order to "rebuild" it. That's made matters worse in that most, but not all, of my previews/thumbnails now are not showing up. When I go into my home folder and right click on the aperture library icon and keep burrowing in until I get to each image folder, everything seems to be there: the original RAW file, the preview file, the thumbnail file, the edits/changes files. I can even drag the original RAW file out and re-import it and then its fine. But I can't seem to also drag out the edits/retouching/changes. So even if I take each of my 1,300 images out one by one and reimport them, I still lose some 300+ hours of retouching. I can't even bare the thought of this. Does anyone know what the heck is really going on and whether there is some kind of fix for this? I'm just trying to get my library back to where it was before all the trouble started. Unfortunately, I do not have a back up from before I updated the software. Oh, we also tried removing Aperture and reinstalling to go back to 2.0, but the same problem is still there. Lastly, I cannot export any "versions" or "masters" in order to print, upload or email the images. So I'm really stuck here.

    Welcome to club. This just happened to me also in a very similar fashion: Upgrade - upgrade works for awhile - and then the maroon screen and unsupported file message.
    At least you are still somewhat functional. Very quickly the problem spread to my non Aperture JPEGS (I use Canon software to download from two Canon Cameras and then import into Aperture). At first all was ok with these files despite the issue with Aperture. Then they are started having the same problem once I shutdown the computer and restarted. This quickly spread to killing Aperture where it would not start at all. Then I lost Microsoft Entourage due to a corrupted data base. Rebuilding this data base via Disk Utility Verify and Repair Permissions made Entourage workable (but I lost my data and setup - it created a new instance.
    Two calls to Apple made everything worse as every time we went back into Disk Utility, we would only fix problems to have them re-appear when the laptop was restarted.
    Went to Genius Bar (twice). They archived and did a reinstall. They had to do this twice. Everything now works except for Aperture which will not launch at all.
    Genius Bar told me to use Time Machine to reload Aperture. Three tries using three different backups have now resulted in nothing. I am about to try a clean install using my Aperture Disk. I will report back on this.
    One thing I noticed before all this started - I had done a bunch of usual weekly software updates about two weeks ago. I was going on a trip so I let everything run (no issues). Time Machine did all the usual things including giving me the really useful message that my BackUp Disk was now full (meaning it is wiping old versions out). However, I then went to shutdown the machine and FileVault whirled for over 30 minutes before it allowed the machine to shutdown. Usually this is under 3-5 minutes if that long. FileVault has yet to make a re-appearance on any shutdown I have had in past two weeks regardless of changes on HD. Therefore I am wondering if there is a connection here.
    I use a MacBook Pro with upgraded memory and HD.

  • Trouble with sharing iPhoto library among multiple users

    I followed the directions in this guide to share my iPhoto library between two accounts. However, it does not allow both users to open the library. One user gets a message that it is locked. I have ensured that the disk image and the library give everyone read/write access and that ownership of the volume is ignored. I've also ensured that the other user is logged out of iPhoto. However, I still get the error.
    http://support.apple.com/kb/HT1198?viewlocale=en_US
    I am, however, able to share the iPhoto library if I don't use the disk image and if I just store the library in the Shared folder and by giving both users read/write access. However, I'm afraid that this will someday crash on me based on this article.
    Does anyone have any experience with this??

    The disk image approach looks complex. I'd avoid it. Note that all the users need to have read/write access to the disk image plus the folder that it's inside of  ...
    The use of an external disk looks simplest and I've done that myself so I know that it works.
    Also, here is another solution: http://www.fatcatsoftware.com/iplm/Documentation/iPLM/pgs/sharing.html

  • I am having trouble with .pdf image

    When I want to print a bill online that I have received, I only get half of the image of the bill on the right-hand side and on the left-hand side, I get a picture or image of my e-mail program with personal folder names. I don't want the e-mail image at all.
    How can I straighten out this problem.
    My O/S is Windows 7, 64-bit, 8 gb
    Thank you.
    Respectfully yours,
    Mimi Mansky
    [email protected]

         Inserting this image on behalf of Mimi because she was facing problem doing that
    Adobe Reader X 10.1.1012
    OS: Windows 7, 64-bit, 8 GB.

  • Trouble with adding images from database

    So I have created this nice little table and want to populate it with an test row and I cant seam to get it to work. I have neber delt with BLOB before and maybe its with that. Well here is the sql code that I am using
    CREATE TABLE Product (name VARCHAR2 (60), price INTEGER,discrip VARCHAR2(100),photo BLOB, quantity INTEGER)
    INSERT INTO Product VALUES ('Inuyasha Final Act', 39.52, 'Join Inuyasha and Kagome as they continue their quest to find the jewel of the four souls and defeat Naraku.', 'INUFinalAct.JPG');
    Did I not put in the images right? how should I load this into the database?
    It creates the table nice and dandy, but it will not populate the table at all. What am I doing wrong here?
    Thanks for any help

    850673 wrote:
    Thanks for the advice I went and changed thing around a bit
    CREATE TABLE Product (name VARCHAR2 (60), price INTEGER,discrip VARCHAR2(500),photo BLOB, quantity INTEGER);
    INSERT INTO Product(name, price,discrip,photo, quantity )
    VALUES ('Inuyasha Final Act', 39.52, 'Join Inuyasha and Kagome as they continue their quest to find the jewel of the four souls and defeat Naraku.', 'INUFinalAct.JPG', 15);
    This seams to have no SQL error, but when I try to put it into the oracle server, it gave this problem
    ERROR at line 2:
    ORA-01465: invalid hex number
    Is this because it does not know where the image is? If that is so how do I get it to know where the image is?It's worse than that... Oracle doesn't even know it's an image.
    All Oracle knows is that you have a column of BLOB datatype, which can be used for storing any type of binary data, not just images, and you are trying to insert something of datatype VARCHAR2 into it (a string with some characters in). That string may be the name of the image to you, but to Oracle it's just a string.
    Follow hoek's link for good examples of how to do it, as it involves you using other functionality first to read the binary file from the file system into a BLOB variable, before you then insert that BLOB variable into your table.

  • Trouble with the image quality when viewing under 100%. First time posting on the forum.

    Hello everyone. I am sorry we have the get acquainted this way but I am having some issues and this is one of my last options of getting help.   Allow me to explain the problem.    When viewing a file under 100% zoom, everything looks jagged like the anti aliasing is missing.  Once I zoom in to 100%, everything looks the way it should. The saved file ( jpeg format for instance) is okay. I can zoom out and it still looks true to the image. The problem is related to photoshop. I installed my latest GPU drivers twice just to be sure and it was not from that.   This problem started last night and I don`t quite know how to solve it.  If I work on small resolution images, it isn`t such a bad problem because I will be working on 100% zoom, but I am working on high resolution images/ paintings. Somewhere around 8000x5000 pixels thus, working at 100% is not that doable. I attached an image that shows this issue. The one on the right is the zoomed out version and the one on the left is the zoomed in version.  Yes, the noise is affected by this, badly, but this started last night. up until then everything looked good even with noise or an out of this world sharpness. I can`t imagine what I could have done to trigger this.
       This being said, I am at the mercy of the more knowledgeable folks from around here. I do hope I posted this question in the right section. This is my first post here so sorry if I messed something up.   Looking forward to your replies.

    Here is a simplistic view that I feel may help you understand reality.
    The only time you're looking at your image pixels in Photoshop is when you're zoomed in to 100%,   There your look at the actual image pixels Photoshop has for your image at your displays resolution.
    At any other zoom level you are looking a scaled image that  has more or less pixels than your actual image these too are displayed at your display resolution.
    The scaling done by Photoshop is done for displaying your image is done for good performance not for the best image quality a quick interpolation.   Therefore at some zoom levels image quality looks poorer  than at other zoom levels.
    High resolution Display have now add a new wrinkle.   User interfaces were designed for displays  with resolutions around 100 PPI elements like text, icon, and other things like checkboxes, buttons etc. were created so there size would be useable are this more or less fixed 100 PPI resolution.   While Photoshop was designed to scale your images so you can work well on it is was not designed with a scalable UI.  Photoshop can not scale its user interface independently from its image display display window for you displays high resolution.  Photoshop's Image display area has the same resolution as the rest of Photoshop User Interface.  Just like there is only one resolution in all layers in a document. CC 2014 2xUI changes that.  PS UI is scaled to 1/2 resolution the image Area is at the displays actual resolution.
    Photoshop CC 2014 2x UI scales all of Photoshop User Interface including the image display to 200% which is 1/2 your display resolution effectively cutting you display pixel count to 1/4 its actual pixel count.   Your once again running on a low resolution display.     If your display has a native resolution  200 PPI you're running it at 100 ppi if your display has a 300 PPI resolution  you're running it at 150ppi.    Which defeats the reason of having high resolution.  Which is you would like to be able to edit your images at print resolution.  Adobe cc2x UI scales the UI but not the image window soa inage is 216ppi on the Surface Pro 3 the UI is large and dpoes not fit. screen
    To be able to edit your images at print resolution  you need a display the has a print resolution and you need and application the can scale its image display  and its UI independently.
    Current there is no OS interface for having multiple resolutions areas on  a display  and applications like Photoshop can not scale UI and Image independently.  OS and Photoshop can scale what is displayed.  Adobe Photoshop executable is coded in a way that it tell Microsoft Windows OS that it will handle display scaling so it can using your displays native resolution.  Currently Only  Photoshop CC 2014  Provides you with the option of running you display at half resolution.
    Windows can scale you display to many resolution and as several presets.  like 100%, 125%, 150% and like Adobe 200% half resolution.    You can make a Windows Registry and add an External Photoshop  Manifest file the tell's Microsoft Windows to handle display scaling.  I have a  Microsoft Surface Pro 3 m windows machine. Its LCD has a 216PPI resolution.  Windows 8.1 had 4 preset for scaling its LCD.
    Surface Pro 3 LCD Display 12"  IPS display 3:2 aspect ratio 9.984603532054124" Wide, 6.656402354702749" High 216.3330765278394  PPI
    Microsoft Preset Display scaling
    100% 2160x1440   216 PPI
    125% 1728x1152   173 PPI
    150% 1440x960    144 PPI SP3 Default setting
    200% 1080x720    108 PPI
    Most user these days has 1024x768 or better displays and Web pages are often authored for 800x600 pixels pages. So the give you a better handle on Resolution and scaling I have edit a 800x600 document with 25x25 px grid one my Surface pro 3
    using Windows 4  scaling presets and captured the 2160x1140 scaled screens  Only at the 100% preset does the image window have a 216ppi Also note  @ 2x UI Photoshop UI doe not fit on screen
    Adobe Photoshop  CC 2014 2xUI Scales the UI  to a display 1/2 resolution but does not scale the Image area  uses actual screen resolution. Photoshop  Help system info show the screen i 1/2 resilution 1080x720 but scalet the imase to the real resolution 2160x1440. however the image window is the 216ppi the ui 108ppi via scaling

  • Having trouble with spry image slide show

    Im new to dw and i inserted a image slide show into my index.htm file, it works fine when i preview it in dw cs5.5.  When I try it on a web browser I get a dialog box that says that the spry panel selector .js requires spry widget.js and continues thru several other dialog boxes until my website loads only to see my image slideshow as a list.  Im not sure if its in the code or the support files can anyone help?  I would greatly appreciate it if someone can set me on the right path with this, Thank you in advance.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Pats IGA Supermarket</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SprySliderPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFilmStrip.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageLoader.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageSlideShow.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryThumbnailFilmStripPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryTitleSliderPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryPanAndZoomPlugin.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
        background-color: #9D5F16;
    </style>
    <link href="Spry-UI-1.7/css/ImageSlideShow/basicFS/basic_fs.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2141543: #frontpageslideshow */
    #frontpageslideshow {
        width: 951px;
        margin: 0px 0px 0px 0px;
        border: solid 0px #aaaaaa;
        background-color: #FFFFFF;
        padding-top: 0px;
    #frontpageslideshow .ISSName {
        top: -24px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 18px;
        text-transform: uppercase;
        color: #AAAAAA;
    #frontpageslideshow .ISSSlideTitle {
        top: -18px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 12px;
        overflow: hidden;
        color: #AAAAAA;
        text-transform: none;
    #frontpageslideshow .ISSClip {
        height: 361px;
        margin: 0 0px 0px 0px;
        border: solid 0px #ffffff;
        background-color: #ffffff;
    #frontpageslideshow .ISSControls {
        top: 0px;
        height: 361px;
    #frontpageslideshow .FilmStrip {
        height: 0px;
        background-color: #CCCCCC;
    #frontpageslideshow .FilmStripPreviousButton, #frontpageslideshow .FilmStripNextButton {
        width: 10px;
        height: 0px;
    #frontpageslideshow .FilmStripTrack {
        height: 0px;
    #frontpageslideshow .FilmStripContainer {
        height: 0px;
    #frontpageslideshow .FilmStripPanel {
        height: 0px;
        padding-left: 10px;
        margin-right: 0px;
    #frontpageslideshow .FilmStripPanel .ISSSlideLink {
        margin-top: 10px;
        border: solid 1px #AAAAAA;
        background-color: #FFFFFF;
    #frontpageslideshow .FilmStripPanel .ISSSlideLinkRight {
        border: solid 1px #AAAAAA;
        width: 56px;
        height: 47px;
        margin: 4px 4px 4px 4px;
    #frontpageslideshow .FilmStripCurrentPanel .ISSSlideLink {
        background-color: #ffffff;
        border-color: #000000;
    #frontpageslideshow .FilmStripCurrentPanel .ISSSlideLinkRight {
        border-color: #AAAAAA;
    /* EndOAWidget_Instance_2141543 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141543" binding="#frontpageslideshow" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="index.html"><img src="images/logoimg.jpg" width="259" height="136" alt="logo" /></a><img src="images/topheader.jpg" width="701" height="136" alt="header_logo" /><!-- end .header --></div>
      <div class="content">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Weekly Ad</a>      </li>
          <li><a href="#">Recepies</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">Entertaining</a>
            <ul>
              <li><a href="#">Bakery Brochure</a></li>
              <li><a href="#">Deli Platters</a></li>
              <li><a href="#">Catering Planner</a></li>
            </ul>
          </li>
          <li><a href="#">Pat's Best</a></li>
          <li><a href="#">Organics</a></li>
          <li><a href="#">Gift Cards</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">Departments</a>
            <ul>
              <li><a href="#">Meats</a></li>
              <li><a href="#">Deli</a></li>
              <li><a href="#">Prepared Foods</a></li>
              <li><a href="#">Seafood</a></li>
              <li><a href="#">Produce</a></li>
              <li><a href="#">Bakery</a></li>
            </ul>
          </li>
        </ul>
        <p> </p>
        <ul id="frontpageslideshow" title="">
          <li><a href="images/fall.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-1.jpg" alt="fall.jpg" /></a></li>
          <li><a href="images/apples.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-10.jpg" alt="apples.jpg" /></a></li>
          <li><a href="images/applepie.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-11.jpg" alt="applepie.jpg" /></a></li>
          <li><a href="images/pumpkinsoup.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-12.jpg" alt="pumpkinsoup.jpg" /></a></li>
          <li><a href="images/roast.jpg" title="r"><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-13.jpg" alt="roast.jpg" /></a></li>
        </ul>
        <script type="text/javascript">
    // BeginOAWidget_Instance_2141543: #frontpageslideshow
    var frontpageslideshow = new Spry.Widget.ImageSlideShow("#frontpageslideshow", {
        widgetID: "frontpageslideshow",
        widgetClass: "BasicSlideShowFS",
        injectionType: "replace",
        autoPlay: true,
        displayInterval: 4500,
        transitionDuration: 2000,
        componentOrder: ["name", "title", "view", "controls", "links"],
        sliceMap: { BasicSlideShowFS: "3slice", ISSSlideLink: "3slice" },
        plugIns: [ Spry.Widget.ImageSlideShow.ThumbnailFilmStripPlugin ],
        TFSP: { pageIncrement: 4, wraparound: true }
    // EndOAWidget_Instance_2141543
        </script>
    Since this is a one-column layout, the .content is not floated.
        Logo Replacement
        An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo.
        Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes.    To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.) <!-- end .content --></div>
      <div class="footer">
        <p>About us  Other Services Employment Contacy us Terms of use Privacy Policy</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    Your spry assets folder MUST be in the same folder as that of your webpage with the slideshow (html, php... whatever)
    Check your folder configuration on the server by clicking on the "Remote Button" on the DW Assets Tab.
    Example 1:  This will not work:
    WEBPAGE HERE:    /server/public/myfolder/slideshow.html
    SPRY ASSETS HERE:  /server/public/SpryAssets/....your javascript files
    Example 2: This will work:
    WEB PAGE HERE:  /server/public/myfolder/slideshow.html
    SPRY ASSETS HERE:  /server/public/myfolder/SpryAssets/....your javascript files
    Hope this helps.

  • I'm having trouble with saving images to contacts

    When I go into edit a contact and choose an image from my camera roll, it saves ok and I press done. Then the next time that person calls their image doesn't come up. When I go back into their contact, their image is gone. Is there any reason why the images wouldn't be saving correctly? Any help greatly appreciated.

    I am also having this same issue. I've had the problem both with Lion and now Lountain Lion. It's very frustrating. I'm using iCloud to sync contacts so I'm not sure if that is the problem.

  • Having trouble with including JNI library in netbeans

    [Sorry a newbie question - I am more used to writing large amounts of Solaris kernel and writing a JNI for the first time]
    Guys,
    I have a C library that needs to hook into the Java bean. I created a JNI library wrapper around the C library using swig/javah
    and that went fine (using some of the examples/ref in this forum). The JNI library contains classes like SysInfoJNI created
    by swig.
    class SysInfoJNI {
    public final static native int NAME_LEN_get();
    public final static native int NAME_LEN_set();
    I quickly wrote a standalone test program where I did
    public class test {
    // Load JNI Library
    static {
    System.loadLibrary("SysInfo");
    public static void main(String[] args) {
    SysInfoJNI siJNI = new SysInfoJNI();
    I can compile and run this on command line doing
    javac *.java
    java -Djava.library.path=./ Sysinfotest
    and it all works fine. Now I move this code to netbeans since I need to add some more code
    and create a java->web project and pretty much transfer the code there. I add the libSysinfo.so
    using the property->library->create option but netbeans still can't see the symbols coming
    out of Sysinfo JNI library. I suspect it wants the class definitions. My question is how do I
    supply that? swig didn't really crate a header file but it did create Sysinfo.java file. Do I
    just copy Sysinfo.java in the src directory (ugly?) or is there a convention of keeping the
    *.java files in some standard place (like /usr/include for C headers) and then what would be
    the method to include SysInfo.java to my netbeans src so that symbols can be found.
    Thanks,
    Sunay

    OK, seems like I had some kind of mismatch between the library & classes.
    The loadLibrary only had the name and I had the library in /usr/lib. After running
    truss -f -t open /usr/tomcat6/bin/startup.sh >& tomcat.out
    I could see the tomcat was finding the library but still reporting link error.
    Recompiling the library and classes again and then placing the library
    in /usr/lib and classes in the right directory resolved the issue.
    So I guess the answer to my original question is that classes need to
    be delivered as a jar along with the rest of the distribution while the
    library can be delivered in /usr/lib as part of the system.
    Appreciate the help and quick responses.
    Sunay

  • Troubles with linking images

    hi guys, I would need a help with making a link. I positioned a new div tag, insert an image into it and now I need to link this image (the div tag and image have the same size) but when I link it in a "Property" panel DW moves the image a few tens of pixels to the right from its position. moreover the link is as if only at the bottom of the image - when I go over the image the pointer to link doesn't show up, only at the bottom of the image. I need the whole image to be active for linking. can you help me in some way? thanks

    Do it in code view. Just wrap your image in an anchor tag (see below)
    <a href="yourLink.html" style="display: block;">
    <img src="blah.jpg" width="150" height="150" border="0" alt="An Image" />
    </a>

Maybe you are looking for

  • How is it possible for Adobe Support to be so bad ?

    I mean really ! For a multi billion dollar company, support is worse than Microsoft ! And that speaks heaps ! I had the worst customer experience throughout the day with people that have no grasp over the english language and moreso, no technical ski

  • Xfce shortcut problems after today's updates

    Xfce shortcuts defined in keyboard settings doesn't work at all, even the default ones like alt+f2. They were still working in the morning, but they stopped after today's updates. I think it has something to do with kbd package, but I can't honestly

  • If I turn off Mac Mini Mid2011, LED doesn't turn black.

    I turned off the Mac Mini Mid 2011. BUT, the Mac Mini's Light(White LED) doesn't want to turn off and the only way to COMPLETELY shut down is to force shut down.I'm worrying about bad sectors so I'm asking. Is there any way to solve?

  • How to change sales order collectively

    Hii, I'm looking for the way how to change some field of sales order collectively, such as VKBUR, VKGRP and any fields. I'm checking VA05, but which seemed only new material, new pricing, new plant and currency could be changed. Any alternative? or i

  • How to make the workflow available for Contract Template ? CLM

    Hi expert, It seems that no workflow can be defined in the Library Item Phase Configuration . The customer needs the approval workflow for the contract template also ,so does anyone know how to make it possible with configuration or Dev ? Your help i