Different behaviors of NSTask within Debug and Release configuraton

Hey there,
I am writing my first OSX application. It will be a starter helper for some daemons.
In order to start the daemons I am using NSTask but this class behaves completely different within the two build configurations (Debug and Release).
If I choose Debug - everything works fine, my daemon (apache) gets started. But if I choose Release, I get this error message in the log console:
Jan 11 22:50:49 Synthomat [0x0-0x682682].com.yourcompany.PAMP[24421]: httpd (no pid file) not running
I know, this is an apache specific error message. But why does it not appear when I choose the Debug environment? Are in Release some environment variables missing or so?
Here is my code part:
// get bundle path
binDir = [NSString stringWithFormat:@"%@/Library/bin", [[NSBundle mainBundle] bundlePath]];
// compose command path
NSString *command = [NSString stringWithFormat:@"%@/apachectl", binDir];
// run command
[NSTask launchedTaskWithLaunchPath: command
arguments:[NSArray arrayWithObjects:@"start", nil]];
Any idea, anyone? - Thanks in advance

synthomat wrote:
My idea was to distribute a full web stack within my application. Thus there should't be touched other system directories or files except the ones in my application bundle.
Launchctl is similar to xinetd. You can run it in user space out of your own directories.
Its not the apache which comes with osx!
Is it the same one in XAMPP?

Similar Messages

  • Compiling differently for debug and release

    I want to produce slightly different .class files for my debug and release compilations. For debug, methods like toString() should return rich information which should not be present in the release version. In fact, I want most of my debug specific code to not be included in the final release to keep ti's file size down.
    I realise I can do this by creating something like
    public interface MyGlobals {
        static final boolean DEBUG = false;
    }and implementing this on any class that needs to do debug specific work. However, I'm in a bit of a chicken and egg scenerio. This file needs to exist during development time so that every class that needs it can implement it - however, this would prevent me from dynamically changing it based on whether I'm doing a debug or release build. On the other hand, if the file is generated automatically at compile time, all the classes that need to refer to it will need to refer to a non-existant source file, which will cause problems in my NetBeans IDE.
    Is there a way around this? It would be nice if there was some sort of a configuration file you could specify to to alter how the code is generated. Something similar to C++ #ifdef.

    I realise I can do this by creating something like
    public interface MyGlobals {
    static final boolean DEBUG = false;
    /code]You should be careful about this, by the way, rember that this kind of constant value gets compiled in to classes that reference it, and java doesn't always pick up the need to recompile when the source of MyGlobals changes.
    On the other hand, if you don't declare it final then the compiler can't optimise out code that you want it to exclude for you.

  • Different environments created for Debug and Release libraries

    Environments created in Debug mode cannot be read by software compiled in release mode. The same is true for the reverse.
    Both libraries compiled with VS.NET 2005 (C++). The environment created in Debug mode is slightly different than the library created in the Release mode. I would assume that this is a bug?
    __db.001 - no change
    __db.002 - DIFFERENT
    __db.003 - no change
    __db.004 - no change
    __db.005 - DIFFERENT
    __db.006 - no change
    Aeronautical.dbxml - no change
    log.0000000001 - no change
    The environments are created using the following flags:
    // Flags required when opening the XmlDB Environment
    m_environmentFlags =      DB_CREATE |     // If the environment does not exist, create it.
                             DB_INIT_LOCK |     // Initialize the locking subsystem
                             DB_INIT_LOG |     // Initialize the logging subsystem
                             DB_INIT_MPOOL |     // Initialize the cache
                             DB_INIT_TXN |     // Initialize transactions
                             DB_THREAD;          // Ensure Environment is
                                                 // free-threaded
    The database contains a single XML document.
    An attempt to open() fails with the following error message:
    DbEnv::open: No such file or directory

    Hey Ron,
    Thanks for answering so quickly. Having release and debug builds able to manipulate the same environments is a requirement of convenience. Our project builds both release and debug versions of our software and distributes both versions to the development team daily. The team is encouraged and expected to run both debug and release builds to test their contributions and because the system opens the database (which is distributed with the build) upon startup, one of the two will always fail to load. That leaves us with two obvious solutions/workarounds. The first being to distribute the build with 2 environments and ensure that the build chooses the correct environment based on whether it is debug or release. The second is to rebuild the debug library without the --enable-diagnostic switch.
    We have no immediate need to enable the diagnostic information (that I am aware of...in fact I don't even know what types of checks are put in that would be helpful).
    Do you have an alternative solution that others have used as a work around for this?

  • What is the primary difference between Debug and Release build?

    I'm coming from the world of VS, where there's a clear distinction between a Release and Debug builds. In Xcode I can't seem to see how two are different and how would I benefit from, say, a Debug build. Can someone explain this for me?

    The differences between the Xcode debug and release builds are similar to the differences you'll find on any other system, though the Xcode interface might not present them as obviously. Basically, a debug build preserves all kinds of information that was developed during compilation but is no longer necessary at runtime. The presence or absence of this information (e.g. symbol tables and mappings which provide the original name of each source code variable and the source code line number corresponding to each instruction), becomes increasingly obvious as you use gdb and other debugging tools.
    We normally would never want to release a debug version (in the iOS case, of course, it would never be accepted) because the binary is usually much larger and the performance will probably be compromised as well. For example, a typical debug build will have many perfomance optimizations turned off because these can make debugging more difficult. It's also common to enable "assert" statements in a debug version. These will bring the program down rather than giving the user any options or attempting recovery.
    For more info specific to Xcode, see [Build Configurations|http://developer.apple.com/library/ios/documentation/DeveloperTo ols/Conceptual/XcodeBuildSystem/400-BuildConfigurations/build_configs.html#//appleref/doc/uid/TP40002692-SW7] in the +Xcode Build System Guide+. To get into lower level details, refer to the gcc docs, maybe starting with [3.9 Options for Debugging Your Program or GCC|http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html]. You might also want to take a look at your Target Build Options for the Debug configuration (Project->Set Active SDK->Use Base SDK and Project->Edit Active Target->Build). There's a one-to-one mapping between many of these settings and the gcc options.
    \- Ray
    p.s.: Didn't mean to repeat Xnav's points. As usual, I was still editing long after he posted! To clarify one difference: Selecting the Edit Active Target menu item gets you to the same place as double clicking on the icon for the active target in the Targets group of the Groups & Files tree. - R
    Message was edited by: RayNewbie

  • Difference between debug and release

    Hallo,
    I'm in trouble with sending CAN-Message to servo-controllers (Lust).  In debug -mode all works fine, but in release it seem's that there some leaks in the message.
    I've already added some delays between send-orders, but it doesn't help.
    the CAN is a USB-adapter from PEAK.
    1. Does CVI make some changes as I include the peak.dll (included in my project) from debug to release?
    2. Is there some alternative of using the Delay-Command in windows?.
    greetings
    F.A.

    Debug mode and Release mode are different configurations for building your .Net
    project. Programmers generally use the Debug mode for debugging step by step
    their .Net project and select the Release mode for the final build of Assembly
    file (.dll or .exe). follow link for more information
    http://net-informations.com/faq/net/debug-release.​htm
    cros.
    http://net-informations.com

  • Different behaviors of Ant's MappingToolTask and "Refresh Mappings" in eclipse

    Hello
    I'm using KodoJDO 3.0 rc2.
    I tried two different ways, to generate the mappings file and update the
    tables in the database.
    Strangely, they both behave differently:
    1. using ant with the task: kodo.jdbc.ant.MappingToolTask -a refresh
    does ignore all fields of type java.util.Calendar
    2. using "Refresh Mappings" from the eclipse plugin
    adds the Calendar fields correctly to the mappings file and the DB
    tables,
    but raises an exception, with an inverse-owner field (in 1:m) , which is
    mapped correctly by the ant tasks
    Do this two tools use different classes to generate the mappings and the
    tables?
    Is the Calendar datatype natively supported by Kodo?
    Best regards
    -- Pat

    Patrick-
    Is the Calendar datatype natively supported by Kodo?JDO does not offer native support for java.util.Calendar. You should be
    able to easily support it using the externalization metadata extensions:
    http://www.solarmetric.com/Software/Documentation/3.0.0/docs/manual.html#ref_guide_mapping_fieldmapping_extern
    Please let us know if you are still experiencing the problems you
    describe with the 3.0.0 final release of Kodo.
    In article <bntvlu$k9q$[email protected]>, Patrick Sager wrote:
    Hello
    I'm using KodoJDO 3.0 rc2.
    I tried two different ways, to generate the mappings file and update the
    tables in the database.
    Strangely, they both behave differently:
    1. using ant with the task: kodo.jdbc.ant.MappingToolTask -a refresh
    does ignore all fields of type java.util.Calendar
    2. using "Refresh Mappings" from the eclipse plugin
    adds the Calendar fields correctly to the mappings file and the DB
    tables,
    but raises an exception, with an inverse-owner field (in 1:m) , which is
    mapped correctly by the ant tasks
    Do this two tools use different classes to generate the mappings and the
    tables?
    Is the Calendar datatype natively supported by Kodo?
    Best regards
    -- Pat
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Debug and release desktop app as mobile

    I built an app in Flash Pro where I could easily export an AIR app for desktop and an Android app.
    I have now moved it to Flash Builder and am not sure how to accomplish this.
    It is currently a Desktop app that bilds a release fine.
    Now, how to get an Android version from it?

    The difference between an AIR application and a browser
    application is very small. Take a look at the Adobe training video
    on this subject.
    http://www.adobe.com/devnet/flex/videotraining/?sdid=DYOCT
    In particular, the last part of day three. It's quite clear
    and you can download the test setup for free. Be careful! I believe
    that the Flex Builder configuration info is out of date, because
    the paths for installation of LCDS have changed. I found a fix.
    My notes, maybe a bit cryptic:
    Make sure when you install LCDS, choose the Tomcat option.
    This will install the server application.
    If you're using the new version LiveCycle Data Services ES
    2.6, you'll have to adjust a few things:
    When you install LCDS, click the Tomcat option and continue
    with the installation.
    Instead of unzipping to C:\lcds\jrun4\servers\default.. use
    this folder to unzip the server.zip file instead to
    C:\lcds\tomcat\webapps\odt
    Original adobe forum post:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=833&threadid =1387349&enterthread=y
    Also, instead of using port 8700, the new version uses 8400.
    1. Start the Server: Programs > LiveCycle Data Services ES
    2.6 > Start LiveCycle Data Services Server. Allow the server to
    start up.
    2. Point your browser to
    http://localhost:8400/ to test
    the start page.
    3. Your URL for this example will be
    http://localhost:8400/odt/
    Flex
    I found that in many places you cannot use $(ENV_VARIABLE)
    successfully.
    Enter the exact string.
    c:/lcds/tomcat/webapps/odt - for the training apps
    Always, instead of /lcds/jrun4/servers/default/odt, use
    /lcds/tomcat/webapps/odt
    Start the data base
    cd c:/lcds/sampledb
    startdb.bat
    LCDS local URL
    http://localhost:8400/odt/adobeODT-debug/AdobeODT.html
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=833&threadid =1387349&enterthread=y
    He knew what he was talking about. Thanks to rsadwick.

  • Different behavior when running in Eclipse and on Tomcat

    I am having a problem because the program that I wrote, tested, and work fine on Eclipse doesn't have the same behavior when I convert it to a Web Service and called by a client.
    I have not this strange behavior. See this code:
    NamedNodeMap attrs = node.getAttributes();
    System.out.println(attrs.getNamedItem("performance"));When I run it on exist I got something like this:
    org.apache.crimson.tree.AttributeNode1@11bed71which should be correct since attrs.getNamedItem() return a Node.
    But! When I run it as a web service on Axis hosted on Tomcat I got
    performance="3758.0"???!!!
    Also, when I do something like
    System.out.println(node)In Eclipse I got the whole XML file like this:
    <root><sequence name="main" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
              <switch name="switch-1" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
                   <case condition="bpws:getVariableData('i') = 0" performance="3425.0" cost="77.0" reliability="1.0" availability="1.0" integrity="1.0" security="128.0">
                        <invoke name="invoke-2" partnerLink="HotelBooking" portType="nsxml2:HotelBooking" operation="searchHotel" inputVariable="searchHotelParam" outputVariable="searchHotelResult" serviceKey="95EDCDE0-46F6-11DA-BEB0-90CACF0DCD6A" />
                   </case>
                   <otherwise performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                        <while name="while-1" condition="bpws:getVariableData('i') > 0" performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                             <sequence performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                                  <invoke name="invoke-1" partnerLink="FlightBooking" portType="nsxml0:FlightBooking" operation="searchFlight" inputVariable="searchFlightParam" outputVariable="searchFlightResult" serviceKey="AD5A1880-46EC-11DA-B399-97115D85E15E" />
                             </sequence>
                        </while>
                   </otherwise>
              </switch>
         </sequence></root>but on Axis I got:
    [root: null]I'm confused. I think it might be because of the different version of the library between eclipse environment and axis environment. But the problem is, I can't figure out what JAR should I change. Can you give me a clue??

    DOM doesn't specify what the toString() method of Node etc. should return. So each implementation of DOM chooses something that seems reasonable to the implementers. If this isn't suitable for you then don't use the toString() method. (That's what System.out.println calls when you pass it an Object, in case you didn't know.)

  • Why are my pages different in browser from within muse and preview

    this is how it looks in browser.this is how it looks in muse.

    Hi
    Does this happens with any browser you check ? without site url it would be difficult to check , but can you try to copy the text and in a new page with a larger text frame try the same text with browser preview, this would isolate if you have used spacing in between lines or if the text frame is stretched.
    Thanks,
    Sanjit

  • CMake behaves differently from within PKGBUILD and from command line

    Hi,
    I am currently struggling with an issue which I cannot find a solution. The problem is, I am trying to create a PKGBUILD for the CasADi code. The following is the PKGBUILD file written. My problem is the cmake configuration part. When the code is configured from the command line, without PKGBUILD, camke detects the -fopenmp flag for C and C++ compilers. For exactly the same compilers, cmake detects openmp for C compiler but fails to do so for the C++ compiler, when configuration is done from within the PKGBUILD file using makepkg.
    My question is, why different behaviors? Any suggestions on what is wrong?
    pkgname=casadi-git
    pkgver=0
    pkgrel=1
    pkgdesc="A symbolic framework for automatic differentiation and numeric optimization"
    arch=('i686' 'x86_64')
    url=""
    license=('GPL')
    groups=()
    depends=('sundials' 'ipopt' 'blas' 'lapack' 'python2')
    makedepends=('cmake' 'swig')
    checkdepends=()
    optdepends=()
    provides=('casadi')
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    changelog=
    source=('casadi::git+https://github.com/casadi/casadi.git')
    md5sums='SKIP'
    build() {
    cd "$srcdir/casadi"
    sed -i 's/PythonLibs/PythonLibs 2.7/g' ./cmake_modules/FindNUMPY.cmake ./swig/CMakeLists.txt
    cmake . -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
    -DWITH_DL:BOOL=ON \
    -DWITH_LLVM:BOOL=OFF \
    -DWITH_PYTHON_INTERRUPTS:BOOL=ON \
    -DWITH_OPENMP:BOOL=ON \
    -DWITH_OOQP:BOOL=ON \
    -DWITH_DOC:BOOL=ON \
    -DWITH_OPENCL:BOOL=OFF
    make
    package() {
    cd "$srcdir/casadi"
    make DESTDIR="$pkgdir/" install
    Output when cmake is run from command line
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Found OpenMP: -fopenmp
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /home/hamid/bin/python
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /home/hamid/bin/python (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * OpenMP
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done
    Output when running makepkg
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [/openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-Qopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [ ]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-xopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [+Oopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-qsmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-mp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /usr/bin/python2
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * OpenMP
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • Is there any actual difference between Release, Debug and Debug Local configurations in SSRS project?

    Is there any actual difference between Release, Debug and Debug Local configurations in SSRS project?
    For example in VC++ Debug build would have all optimization turned off (by default) and included additional Debug information in executable.
    Since there is no executable produced for SSRS - is there any actual difference between configurations? Or are they only for the purpose of deploying to different destination servers?

    Hi JoeSchmoe115,
    The Project Configuration and Configuration Manager is a feature supported by Visual Studio, on which Business Intelligence Development Studio or SQL Server Data Tools is based. We can use Configuration Manager to create and manage sets of project properties
    in project configurations. You are right that the project configurations is only for deployment purpose in a Report Server project.
    Reference:
    http://technet.microsoft.com/en-us/library/ms155802.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • CK24 - mark and release with different costing version

    Hi,
    We are currently using standard costing variant PPC1 and costing version 1 to mark and release the standard costs. However when we try to recost the material cost due to price changes, system does not allow to mark & release revised standard cost if we try to mark & release on same day. pls note standard cost estimate is already released for the month. And we do not want to delete existing standard cost estimate. Instead we want to explore other options. We are using 4.7.
    My questions are :
      a) Can recost using costing version 2? CK11N allows to save the costing result. However in CK24 Marking allowance, system does not allow to change Costing Version. is there any config option to change this.
    b) If  we cannot use different cost version, can we update material cost with same costing variant (PPC1) and costing version (1) in this case. However when we tried to do recost with same costing variant & verison on same day, system gives an error 'Material AAAA in plant MMM has a released cost estimate.'
    Any inputs on above issue highly appreciated.
    thanks
    Sunil

    Hi,
    While, you can use any of the Costing versions to mark & release Standard cost estimate, you can release Cost estimate only once in a fiscal period. If you want to release correct prices, then you have delete existing released cost estimates using CKR1 transaction and then re-run CK40N to release.
    Hope this helps.

  • Different behavior from the PRE function based on BMRS and WMRS

    Hi All,
    We are seeing different behavior from the PRE function based on whether the type is Before Modified Record Saved or When Modified Record Saved. Should the PRE function work the same for both as long as there is not a Wait action in the WMRS workflow?
    (((PRE('<plTier_ITAG>') <> [<plTier_ITAG>]) AND ([<plTier_ITAG>] = '2 - BA')) AND [<IndexedPick4>] = 'FSCM')
    Explaination: The Tier field changes AND now equals Tier 2, AND Application is equal to 'FSCM'
    The same expression fires only as designed in BRMS, but in WMRS it fires every time a SR is in Tier 2 and IndexedPick4 = 'FSCM', regardless of whether a change was made to the Tier field.

    Try changing your syntax around to something like -:
    PRE('<plTier_ITAG>') {NOT EQUAL} '2 - BA' AND [<plTier_ITAG>] = '2 - BA' AND [<IndexedPick4>] = 'FSCM'
    +i.e. Previous value of Tier is not equal to "2 - BA" and current value of Tier equals "2 - BA" and IndexedPick4 equals "FSCM". Replace {NOT EQUAL} with the appropriate syntax+
    Regards,
    Cam

  • Performance Diference between debug mode and release mode

    Hi ,
    I have been running an C++ multithreaded application with below technical specification on Production for more than an year.
    OS - Solaris 10 , Opteron
    Compiler - Sun Studio 11
    Bit Mode - 64
    I wanted to know what is the difference in the debug mode of an C++ application compiled with -g option and a release mode compiled with an optimization apart from the size of the binary and availability of debug information in case of a crash.
    1) Does it degrade the performance of the application? If yes by what extent?
    2) Does it use more memory?
    3) Will switching from Debug to Release mode with some optimization coupled with any kind of risk like byte guard etc which could lead to dumps and all? If yes what could those be?
    4) Which optimization level should be used?
    Regards,
    Ankur Verma

    If you compile without any optimization (with or without -g), you will see a noticeable difference in performance in most programs compared to compiling with a reasonable level of optimization. How much difference depends on the nature of the program, and what percentage of time is spent in code regions that can benefit from the code improvements.
    If you add -g, function inlining is disabled, which can dramatically reduce program performance. You can't debug a function that is generated inline, which is why this option disables inlining. (The +d option also disables inlining.)
    If you use -g0 instead of -g, function inlining is preserved.
    If you use -g0 with optimization, you get the advantages of optimization while still allowing limited debugging. (Local variables are not visible.) Beginning with Sun Studio 12 update 1, the current release, -g with optimization enables function inlining, so the effect of (for example) "-O -g" becomes the same as "-O -g0".
    A few optimizations are disabled with -g or -g0, the exact difference depending on the compiler release and patch level. Most programs won't see a difference in performance.
    Since you are running on Solaris 10, you should upgrade to the current release, Sun Studio 12 update 1. You will get many improvements and some new diagnostic tools. The new release is a drop-in replacement for Studio 11. You don't have to recompile any existing binaries, but you will want to recompile to get improved performance.
    [http://developers.sun.com/sunstudio/]

  • Block and release vendors at different level

    Hi experts,
    I'm working on a workflow who can block and release vendor after creation or modification. The problem is that I want block, first, the vendor for purchase and after, for the payment.
    So I need two level of validation : the first for purchasing and the second for finance. So I need to create one event with the transaction MK01 or MK02 and after the validation I have to call the transaction FK01 or FK02.
    I use the BOR LFA1 with specific method to block and release one of this views (purchase or financial) but when a vendor is saved, there is no distinction between the purchase view and the financial view. I can not distinguish the transaction who call the event.
    So if there is someone who can help me quickly, it will be great!
    Thank you
    Benjamin

    Thank you for the help.
    Regarding the event condition in SWEC, it doesn't correspond to my situation so I will try the FM but I don't really how to do : I mean which condition I can put, or which action I can put for check the transaction.
    The thing is that I'm not really good in FM cause I'm more functional.
    So if someone could help me on the code to check transaction before block a vendor, it could be great.
    Thank You

Maybe you are looking for

  • Help need to display record in same line

    Hi all, Correct output is not coming.  Movement type u2018261u2019 is material of type raw material. Movement type u2018101u2019 is material of type finished prodcut. I need to display finished product material details & beside that raw materials in

  • Stream from PC to Box

    The vision box is connected to the home network so I was wondering is it possible to stream something from my pc to my vision box so I can watch something from my PC on my TV? If its not possible now I think it would be a great feature to have at som

  • Custom Function

    I am trying to create a custom function to include in the Functions, and under the Custom Function I want to have the currency format: "cdCurrencyScalerChoice" which I found in the Crystal Report sample: "Order PRocessing Efficiency" Jack..

  • Photo stream taking all memory.

    Even after deleting all photos and deactivating the photo stream, it is still taking up 6.1GB of memory on my phone. How do I fix this?

  • Installer "error encountered while writing receipt"

    I'm running off 10.4.10, and have been trying to install updates for months now, unsuccessfully. When I try to install off of the automatic updating system, it simply tells me the installation has failed and to try again later. When I download update