[SOLVED]Compiling a program from source (Tomoe)

I'm trying to compile Tomoe: http://tomoe.sourceforge.jp/cgi-bin/en/blog/index.rb
It is a handwriting recognition tool for East Asian languages. For those of you familiar with them, you'd know that there are some characters that are just so obscure you can't type them with your IME and the only way to input them is with a handwriting recognition program. (Browsing a unicode character map is only something a madman can do) MS has one built in their IME, but I've had to live by copying things from wiktionary up until now on Linux, and I think this program might be my saving grace if I can get it working.
I would want to make a PKGBUILD, but I really have no experiance with that kind of stuff at all, so I'm going to try to compile it from source the old fashioned way at least. I figured if it installs things into /usr/local/ by default it won't mess up with pacman too much.
However I'd need 3 packages. One for tomoe, another for tomoe-gtk, and another for scim-tomoe. And the 3rd depends on the 2nd which depends on the 1st. I installed tomoe fine with ./configure && make && make install, but when I try to install tomoe-gtk I get an error at ./configure:
checking for TOMOE... configure: error: Package requirements (tomoe >= 0.4.0) were not met:
No package 'tomoe' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables TOMOE_CFLAGS
and TOMOE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Of course I know that I installed tomoe, slocate gives me:
(It gave me more stuff too, but they are all in the build directory in my home so I excluded them.)
/usr/local/etc/tomoe
/usr/local/etc/tomoe/config
/usr/local/include/tomoe
/usr/local/include/tomoe/pytomoe-utils.h
/usr/local/include/tomoe/tomoe-candidate.h
/usr/local/include/tomoe/tomoe-char.h
/usr/local/include/tomoe/tomoe-config.h
/usr/local/include/tomoe/tomoe-context.h
/usr/local/include/tomoe/tomoe-dict.h
/usr/local/include/tomoe/tomoe-enum-types.h
/usr/local/include/tomoe/tomoe-module-impl.h
/usr/local/include/tomoe/tomoe-module.h
/usr/local/include/tomoe/tomoe-query.h
/usr/local/include/tomoe/tomoe-reading.h
/usr/local/include/tomoe/tomoe-recognizer.h
/usr/local/include/tomoe/tomoe-shelf.h
/usr/local/include/tomoe/tomoe-writing.h
/usr/local/include/tomoe/tomoe.h
/usr/local/lib/libtomoe.a
/usr/local/lib/libtomoe.la
/usr/local/lib/libtomoe.so
/usr/local/lib/libtomoe.so.0
/usr/local/lib/libtomoe.so.0.1.0
/usr/local/lib/tomoe
/usr/local/lib/pkgconfig/pytomoe.pc
/usr/local/lib/pkgconfig/tomoe.pc
/usr/local/lib/python2.6/site-packages/tomoe.a
/usr/local/lib/python2.6/site-packages/tomoe.la
/usr/local/lib/python2.6/site-packages/tomoe.so
/usr/local/lib/tomoe/module
/usr/local/lib/tomoe/module/dict
/usr/local/lib/tomoe/module/recognizer
/usr/local/lib/tomoe/module/dict/mysql.a
/usr/local/lib/tomoe/module/dict/mysql.la
/usr/local/lib/tomoe/module/dict/mysql.so
/usr/local/lib/tomoe/module/dict/unihan.a
/usr/local/lib/tomoe/module/dict/unihan.la
/usr/local/lib/tomoe/module/dict/unihan.so
/usr/local/lib/tomoe/module/dict/xml.a
/usr/local/lib/tomoe/module/dict/xml.la
/usr/local/lib/tomoe/module/dict/xml.so
/usr/local/lib/tomoe/module/recognizer/simple.a
/usr/local/lib/tomoe/module/recognizer/simple.la
/usr/local/lib/tomoe/module/recognizer/simple.so
/usr/local/share/tomoe
/usr/local/share/gtk-doc/html/tomoe
/usr/local/share/gtk-doc/html/tomoe/TomoeCandidate.html
/usr/local/share/gtk-doc/html/tomoe/TomoeChar.html
/usr/local/share/gtk-doc/html/tomoe/TomoeConfig.html
/usr/local/share/gtk-doc/html/tomoe/TomoeContext.html
/usr/local/share/gtk-doc/html/tomoe/TomoeDict.html
/usr/local/share/gtk-doc/html/tomoe/TomoeQuery.html
/usr/local/share/gtk-doc/html/tomoe/TomoeReading.html
/usr/local/share/gtk-doc/html/tomoe/TomoeRecognizer.html
/usr/local/share/gtk-doc/html/tomoe/TomoeShelf.html
/usr/local/share/gtk-doc/html/tomoe/TomoeWriting.html
/usr/local/share/gtk-doc/html/tomoe/home.png
/usr/local/share/gtk-doc/html/tomoe/index.html
/usr/local/share/gtk-doc/html/tomoe/index.sgml
/usr/local/share/gtk-doc/html/tomoe/ix01.html
/usr/local/share/gtk-doc/html/tomoe/left.png
/usr/local/share/gtk-doc/html/tomoe/right.png
/usr/local/share/gtk-doc/html/tomoe/style.css
/usr/local/share/gtk-doc/html/tomoe/tomoe-tomoe.html
/usr/local/share/gtk-doc/html/tomoe/tomoe.devhelp
/usr/local/share/gtk-doc/html/tomoe/tomoe.devhelp2
/usr/local/share/gtk-doc/html/tomoe/tomoe.html
/usr/local/share/gtk-doc/html/tomoe/up.png
/usr/local/share/locale/ja/LC_MESSAGES/tomoe.mo
/usr/local/share/tomoe/dict
/usr/local/share/tomoe/dict.dtd
/usr/local/share/tomoe/python
/usr/local/share/tomoe/recognizer
/usr/local/share/tomoe/xml2est.rb
/usr/local/share/tomoe/python/tomoe.defs
/usr/local/share/tomoe/recognizer/handwriting-ja.xml
/usr/local/share/tomoe/recognizer/handwriting-zh_CN.xml
I've tried:
export PKG_CONFIG_PATH=/usr/local/lib/tomoe:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
And neither of those seemed to work so I then set TOMOE_CFLAGS and TOMOE_LIBS and it indeed avoided the need to call pkg-config and the configure script went on, but I got the same problem for gucharmap, which I tried installing with pacman and then starting a new session, but it still didn't work so I had to set the environment variables to skip it and then the configure script finished, but make not so surprisingly failed.
So what should I do to get this to compile?
Last edited by sokuban (2008-11-24 02:48:46)

Zoulnix wrote:
Hello there, sokuban... just wanted to tell you that i have uploaded
scim-tomoe, tomoe, tomoe-gtk and uim-tomoe-gtk PKGBUILD's to the AUR.
... would be good if someone could test  the pkgbuilds
out to see so everything works as it should.
tomoe-gtk had to be compiled without gucharmap. from what i could see the tomoe-gtk is not compatible with the latest version of gucharmap...
Thanks! The tomoe packages installs and works perfectly.
But now I've got another little problem. For some strange reason they decided that it would only load a dictionary when the locale is set to Chinese or Japanese. My computer currently runs on a ms_MY.utf-8 locale and while I wouldn't really mind putting it to ja_JP.utf-8 I'd prefer it if there is a way I can make it so that tomoe is always run with a Japanese locale no matter what locale the rest of my system is because I often randomly change it.
While I can directly run:
$ LANG=ja_JP.UTF-8 scim-tomoe
from a terminal and the dictionaries are loaded fine, I'd end up only being able to write in the terminal itself which is pretty useless. Right clicking on the scim icon and selecting handwriting recognition will give me the ms_MY version which doesn't have any dictionaries loaded.
Anyone know a way to do it?
EDIT: So I tried setting my whole locale to Japanese. Only problem is, Thunar has a bug with Japanese. Maybe its because the Japanese name for filesystem is too long, but the sidebar is stuck out too much and cannot be pushed in. Also since it is so long my filesystem icon on my desktop can't display its whole name, I wouldn't really call that a bug, but it isn't pretty to look at.
And I just noticed but xfce terminal fonts are messed up too. I'm too lazy to fix all this so I'm going back to English now. It would probbably be much easier to find a way to always run only this program with a Japanese locale than fix all the problems I'm getting with the whole system in a Japanese locale.
EDIT2: Solved by running scim itself in ja_JP.UTF-8 (why didn't I think of this earlier?).
Last edited by sokuban (2008-11-24 02:49:24)

Similar Messages

  • Compile a package from source...

    I'm trying to learn how to compile a package from source code.
    I choose bfgminer as my example. I know there's already a pre-built package.
    # Get bfgminer-3.3.0
    wget http://luke.dashjr.org/programs/bitcoin … 3.3.0.tbz2
    tar -Jxvf bfgminer-3.3.0.tar.bz2
    cd bfgminer-3.3.0
    pacman -S uthash    # Required Dependencies
    pacman -S lm_sensors
    # I want to be able to remove unnecessary modules, so I defined CFLAGS:
    CFLAGS="--disable-avalon --disable-opencl --disable-bitfury --disable-littlefury --disable-bitforce --disable-modminer --disable-x6500 --disable-ztex"
    ./configure
    # The package compiles successfully, but It seems to have ignored the CFLAGS.
    Configuration Options Summary:
      Enabled..Drivers.....: avalon bigpic bitforce bitfury_gpio cairnsmore erupter icarus littlefury modminer opencl opencl:adl opencl:sensors x6500 ztex
      Disabled.Drivers.....: bfsb cpu metabank proxy
        To enable proxy, install libmicrohttpd 0.9.5+ (getwork) or libevent 2.0.3+ (stratum)
      Enabled..Algorithms..: SHA256d
      Disabled.Algorithms..: scrypt
      Enabled..Options.....: ncursesw5
      Disabled.Options.....:
    Compilation............: make (or gmake)
      CFLAGS...............:    -pthread -g -O2 -I/usr/include/libusb-1.0    -pthread -Ilibblkmaker
      LDFLAGS..............:   -pthread -Llibblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs,-zorigin  -lpthread  -ldl -lcurl  -ljansson  -L/usr/lib -lncursesw   -lm -ludev -lusb-1.0   -lsensors -lblkmaker_jansson-0.1 -lblkmaker-0.1
    Installation...........: make install && ldconfig #(as root if needed, with 'su' or 'sudo')
      prefix...............: /usr/local
    What did I do wrong?

    cfr wrote:
    ThinkFast wrote:Well you may have misread it at first, but I am running as root. For me, after building a system it seems hard to know when to create a standard user. And it's easy to just continue as root. Most tutorials don't mention it at all.
    Can it be done after the first login as root and changing the root password?
    Easy it may be, but it is also incredibly dangerous. I find it terrifying that people even think of doing this.
    I don't know which tutorials you are reading but the Beginners' Guide clearly includes this step as the first one to complete after rebooting into your new system:
    https://wiki.archlinux.org/index.php/Be … management
    You should do the minimum necessary as root. You should only ever perform a task as root if (1) the task cannot be performed with less privileges, (2) you understand exactly what the task is designed to accomplish AND (3) you understand why it needs to be performed with root privileges.
    While I admit that most do not go this far, I do not compile code with an account which is even in wheel. That means I don't compile even as my regular user - let alone root.
    I guess I have just gotten lucky so far. Thanks for your advise.

  • Compiling a package from source files

    I am trying to install a package from source files. The installation instructions for this package say that I should just download the scripts to one directory, enter the correct paths in the Makefile (which comes with the package) and run "make".
    The problem is that while the g++ compiler is there on my computer
    (there is a binary called g++ located at
    /Developer/usr/bin/g++
    I am not sure if that is the real compiler. Or where the c header files are, for instance, I can't find math.h, or stdio.h or any of the other standard files.
    Any help will be greatly appreciated. I am very new to command lines, so please explain as you would to a five year old.
    To help with specifics, I edited the Makefile so that the first part looks like:
    #MATLABDIR ?= /usr/local/matlab
    # for Mac
    MATLABDIR ?= /Applications/MATLAB_R2008b.app
    CXX ?= g++
    #CXX = g++-4.1
    CFLAGS = -Wall -Wconversion -O3 -fPIC -I$(MATLABDIR)/extern/include
    Thanks a ton for the help

    Your compiler program is gcc. (/usr/bin/gcc).
    http://gcc.gnu.org/
    in terminal type (at the prompt):
    gcc --version
    (press return)
    should output the following:
    i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
    Copyright (C) 2007 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    If it does, your compiler is alive and kicking and ready for action, if not, reinstall developer tools
    package from your SL install DVD.
    The usual ritual for compiling is to drag the directory containing the source code to your desktop,
    then, in terminal, change terminal path to the source directory using the change directory command
    "cd".
    example; say I have a program called cdrtools 2.0.1 and the source is in a folder I dragged to my
    desktop called cdrtools_2.0.1:
    In terminal i would type:
    cd /Users/kj/Desktop/cdrtools_2.0.1
    Follow the instructions that come with the package. Typically they will tell you to:
    ./configure
    ( Many packages have a configure script which will query your system and configure themselves
    appropriately. Not supported by all software).
    make
    ( Compile the software. Some require a file name to build such as make foo. make reads a file
    normally called Makefile for what commands to run).
    make install
    ( Install the software. Typically packages will put themselves in /usr/local. Run as root).
    That is the usual ritual, but you must follow the instructions that come with the software, as they
    may vary.
    Read documentation!
    Look for files called: INSTALL, README, SETUP, or similar.
    For more information see the following:
    http://luv.asn.au/overheads/compile.html
    Now beware that some source code written before Snow Leopard was released may not compile
    properly on SL, because of SL's 64Bit gcc extensions. If the source has not been updated to run
    under the Snow Leopard compiler, then the compilation may fail.
    IF the program fails to compile, or fails to run after compiling, then most likely, then the source
    may need updating.
    good luck, and don't pull all your hair out at once. Save some for later.
    The guys in the 'NIX forum can help you with all the grizzly details as you go on your quest.
    http://discussions.apple.com/forum.jspa?forumID=735
    Good luck,
    Kj ♘

  • Idoc sending program from source port

    Hi Experts,
      I am sending the Idoc through customized program. I am getting the status 03 & 30. successfully sent to external system.
    Is there any standard program to send the Idoc from source port to destination port.
    Thanks and regards,
    Venkatraman.N

    Run RBDMOIND, then idoc will get the status 12 -Dispatch ok. status 12 is the confirmation that idoc was reached target system.
    Reddy

  • [SOLVED} How to install from source

    Hi,
    I'm trying to install Wittfella's qtfm from source and I have no idea how to do it. Previously I've used ./configure and make install.
    What is the install process for Arch?
    Last edited by guriinii (2010-09-25 13:09:18)

    guriinii wrote:What do you mean buy "an AUR helper"?
    This http://wiki.archlinux.org/index.php/AUR_Helpers
    If you look into PKGBUILDs you see the good old './configure && make install' but by using pacman you don't have to worry about dependencies and if you remove the installed app, it gets removed all the way, no garbage left behind.
    Last edited by karol (2010-09-24 18:03:07)

  • [Solved] Launching Graphical Programs From The Terminal

    Occasionally I launch graphical programs from the terminal and they usually spit out what they're doing in the background, I know you can send this output to /dev/null but is there a way to have that is the default setting (ex. not having to type &> /dev/null each time) and then somehow turn console output back on when I want to debug something? I tried creating an alias but that didn't work.
    Last edited by brando56894 (2011-07-26 04:17:11)

    brando56894 wrote:
    I put it in my .bashrc and when I reload .bashrc I get this:
    bash: /home/bran/.bashrc: line 12: syntax error near unexpected token `;'
    bash: /home/bran/.bashrc: line 12: `no() { "$1"&>/dev/null & ;}'
    Remove that '&' and try again. (remember to reload the .bashrc)
    jasonwryan wrote:What, exactly, did you put in your .bashrc?
    He used your function but with "my" '&' - w/o 'nohup'.
    Last edited by karol (2011-07-26 04:25:55)

  • [SOLVED] Compiling kernel PKGBUILD from ABS (2.6.34)

    So I'm currently compiling a kernel from ABS, and its been running som docbook stuff for 2-3 hours now which I've never seen before when compiling a kernel with ABS.
    I commented out the line that allowed me to edit the config with make menuconfig. I tweaked the kernel to 1000hz and set up my cpu family.
    Is this normal? Im pretty sure this didnt happen when I compiled 2.6.33.4 from ABS
    This is what its been spamming for the past ~2 hours:
    Note: Writing struct_usb_host_ss_ep_comp.9
    Warn: meta author : no refentry/info/author struct usb_host_endpoint
    Note: meta author : see http://docbook.sf.net/el/author struct usb_host_endpoint
    Warn: meta author : no author data, so inserted a fixme struct usb_host_endpoint
    Note: Writing struct_usb_host_endpoint.9
    Warn: meta author : no refentry/info/author struct usb_interface
    Note: meta author : see http://docbook.sf.net/el/author struct usb_interface
    Warn: meta author : no author data, so inserted a fixme struct usb_interface
    Note: Writing struct_usb_interface.9
    Warn: meta author : no refentry/info/author struct usb_interface_cache
    Note: meta author : see http://docbook.sf.net/el/author struct usb_interface_cache
    Warn: meta author : no author data, so inserted a fixme struct usb_interface_cache
    Last edited by XAM (2010-06-29 06:19:50)

    Coacher wrote:Since 2.6.34 there is also kernel26-manpages and kernel26-docs packages that also placed in kernel26 PKGBUILD.
    I've never compiled that docs stuff for myself so cant say how long it takes, but if you need only new kernel26 package you can safely wipe out that lines from PKGBUILD.
    wow, thats good to hear. Took ages compiling with it there.

  • Compiling Java program from other java program

    Hi,
    How can I compile and capture the compilation result from another java program?
    Thanks

    As if I had seen somewhere a hint about being able to
    programatically compile with the help of the class
    sun/tools/javac/Main found in the tools.jar.I saw that article, too, but when I took a look at the JDK's source code, it became apparent that none of the classes in tools.jar are supported. Your program could break with any new version of the JDK.
    If you're still interested, here's the URL:
    http://java.sun.com/developer/JDCTechTips/2003/tt0722.html

  • Compiling a program from a Java application

    Hello,
    I'm new to Java and i'm developing an application which takes in a Java source code (.java) and compiles (to create the '.class' file. However I dont know HOW i could use my Java program to compile the source code file.
    I did a google search and found out that there is a com.sun.tools.javac.Main.Compile method to compile the source code. When i put this line into my code and i compile it, it says:
    package com.sun.tools.javac.Main doesn't exist (assuming i need to have a package for it).
    Does anyone know how I can resolve this? or know any good useful references I can read on the web?
    note that i'm using Java 6.
    Any help would be good. Thanks.

    Hi,
    Note that your question was posted in the wong forum. It's not related to reflection.
    What you tried to use is JDK version dependent, you should instead use the new Compiler API that's available if you are using Java 6.
    [http://www.juixe.com/techknow/index.php/2006/12/13/java-se-6-compiler-api/]
    Kaj

  • Error while compiling a program from api....URGENT

    i am trying to use a api for apell checking, and their is one program that i am trying to compile using command
    javac -Xlint org\tiling\didyoumean\DidYouMeanIndexer.java
    and it gives me an error like this
    org\tiling\didyoumean\DidYouMeanIndexer.java:36: cannot find symbol
    symbol  : method indexDictionnary(org.apache.lucene.search.spell.Dictionary)
    location: class org.apache.lucene.search.spell.SpellChecker
                            spellChecker.indexDictionnary(dictionary);
                                        ^
    org\tiling\didyoumean\DidYouMeanIndexer.java:54: warning: [deprecation] getDirectory(java.lang.String,boolean) in org.apache.lucene.store.FSDirectory
    has been deprecated
                            FSDirectory origDir = FSDirectory.getDirectory(origIndex, false);
                                                             ^
    org\tiling\didyoumean\DidYouMeanIndexer.java:55: warning: [deprecation] getDirectory(java.lang.String,boolean) in org.apache.lucene.store.FSDirectory
    has been deprecated
                            FSDirectory spellDir = FSDirectory.getDirectory(spellIndex, true);
                                                              ^
    1 error
    2 warningshere is the code for the program
    package org.tiling.didyoumean;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import java.io.File;
    import java.io.IOException;
    import java.io.FileReader;
    import java.util.Date;
    * This code was originally written for
    * Erik's Lucene intro java.net article
    public class Indexer {
         public static void main(String[] args) throws Exception {
              if (args.length != 2) {
                   throw new Exception("Usage: java " + Indexer.class.getName()
                             + " <index dir> <data dir>");
              File indexDir = new File(args[0]);
              File dataDir = new File(args[1]);
              long start = new Date().getTime();
              int numIndexed = index(indexDir, dataDir);
              long end = new Date().getTime();
              System.out.println("Indexing " + numIndexed + " files took "
                        + (end - start) + " milliseconds");
         public static int index(File indexDir, File dataDir) throws IOException {
              if (!dataDir.exists() || !dataDir.isDirectory()) {
                   throw new IOException(dataDir
                             + " does not exist or is not a directory");
              IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(),
                        true);
              writer.setUseCompoundFile(false);
              indexDirectory(writer, dataDir);
              int numIndexed = writer.docCount();
              writer.optimize();
              writer.close();
              return numIndexed;
         private static void indexDirectory(IndexWriter writer, File dir)
                   throws IOException {
              File[] files = dir.listFiles();
              for (int i = 0; i < files.length; i++) {
                   File f = files;
                   if (f.isDirectory()) {
                        indexDirectory(writer, f); // recurse
                   } else if (f.getName().endsWith(".txt")) {
                        indexFile(writer, f);
         private static void indexFile(IndexWriter writer, File f)
                   throws IOException {
              if (f.isHidden() || !f.exists() || !f.canRead()) {
                   return;
              System.out.println("Indexing " + f.getCanonicalPath());
              Document doc = new Document();
              doc.add(Field.Text("contents", new FileReader(f)));
              doc.add(Field.Keyword("filename", f.getCanonicalPath()));
              doc.add(Field.Keyword("name", f.getName()));
              doc.add(Field.Keyword("url", f.toURI().toURL().toExternalForm()));
              writer.addDocument(doc);

    ping.sumit wrote:
    ok.........thank you so much....
    any idea about other errors??There telling you that getDirectory(boolean) has been replaced
    getDirectory(String, boolean) - Static method in class org.apache.lucene.store.FSDirectory
    Deprecated. Use IndexWriter's create flag, instead, to create a new index. Found on [http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//core/index-all.html]

  • Calling an ABAP Program from source system in a process chain

    Hi,
    I need to call an ABAP program (Extract program RMBWV308) from R/3 within a Process Chain in BW 3.5
    Your urgent advice please

    Hi,
    check the following link:
    Start an ABAP program in R/3 from a process chain in BW
    regards,
    raju

  • Compiling java program from cygwin

    I have to compile a java code fromcygwin...how to do that
    JAVA cmd workd but for javac its tells command not found

    Moreover this has absolutly nothing to do with Socket Programming -> Compiling

  • Problem when compiling C program from RFC SDK with Unicode on AIX 5.3

    hi friends.
    I try RFC with UNICODE.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90313271-2311-2a10-c495-c20199d1d821
    This simple code compiled.
    #include <saprfc.h>
    #include <sapuc.h>
    #include <sapucx.h>
    int mainU(int argc, SAP_UC* argv[] )
        const SAP_UC* s1 = cU("Hello");
        SAP_UC s2[100];
        strcpyU( s2, s1);
        printfU(cU("%s
    "),s2);
        return 0;
    The compiling command is
    cc -DSAPwithUNICODE -I ../rfcsdkU/include -L ../rfcsdkU/lib sample.c -o sample -lrfcu -lC
    to compile.
    Then the error information comed:
    "sample.c", line 7.24: 1506-045 (S) Undeclared identifier U16LIT_cU.
    "sample.c", line 7.27: 1506-275 (S) Unexpected text string literal encountered.
    "sample.c", line 10.16: 1506-276 (S) Syntax error: possible missing ')'?
    I hope someone can tell me how I can get it through.
    Edited by: sakamoto shouichi on Apr 16, 2008 11:02 AM
    Edited by: sakamoto shouichi on Apr 16, 2008 11:03 AM

    hi friends. I'm having same problem.
    i speak english just a little.sorry.
    see this command line.
    AIX5.3
    cc -I ../rfcsdk/include -L ../saprfc/rfcsdk/lib sapinfo.c -o sapinfo -lrfc -lC
    add -lC .
    i fnish this problem. thnx!
    Edited by: sakamoto shouichi on Apr 7, 2008 5:32 AM

  • [solved]Problem compiling alsa from source

    I'm trying to install alsa-driver-1.0.18a from source because I need to compile it with snd-virtuoso.  So I run "./configure --with-cards=virtuoso --with-sequencer=yes" then when I run "make" I get this at the end of it.
    make -C /lib/modules/2.6.27-ARCH/build SUBDIRS=/usr/src/alsa/alsa-driver-1.0.18a CPP="gcc -E" CC="gcc" modules
    make[1]: Entering directory `/usr/src/linux-2.6.27-ARCH'
    CC [M] /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.o
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:282:1: warning: "GFP_DMA32" redefined
    In file included from include/linux/kmod.h:22,
    from include/linux/module.h:13,
    from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:57,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/linux/gfp.h:105:1: warning: this is the location of the previous definition
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:831: error: static declaration of 'jiffies_to_msecs' follows non-static declaration
    include/linux/jiffies.h:286: error: previous declaration of 'jiffies_to_msecs' was here
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:850: error: static declaration of 'msecs_to_jiffies' follows non-static declaration
    include/linux/jiffies.h:288: error: previous declaration of 'msecs_to_jiffies' was here
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:948,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/linux/pci.h:627: error: expected identifier or '(' before numeric constant
    In file included from include/asm/pci.h:4,
    from include/linux/pci.h:989,
    from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:948,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/linux/mm.h:261: error: conflicting types for 'snd_compat_vmalloc_to_page'
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:752: error: previous declaration of 'snd_compat_vmalloc_to_page' was here
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h: In function 'snd_pci_orig_save_state':
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:1197: error: too many arguments to function 'pci_save_state'
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h: In function 'snd_pci_orig_restore_state':
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:1201: error: too many arguments to function 'pci_restore_state'
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:1598:1: warning: "page_to_pfn" redefined
    In file included from include/asm/page.h:196,
    from include/asm/pda.h:8,
    from include/asm/current.h:19,
    from include/asm/processor.h:15,
    from include/linux/prefetch.h:14,
    from include/linux/list.h:6,
    from include/linux/module.h:9,
    from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:57,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/asm-generic/memory_model.h:78:1: warning: this is the location of the previous definition
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c: In function 'snd_compat_vmalloc_to_page':
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:44: error: implicit declaration of function 'VMALLOC_VMADDR'
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:49: error: incompatible type for argument 1 of 'pud_val'
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:50: error: implicit declaration of function 'pte_offset'
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:50: warning: assignment makes pointer from integer without a cast
    make[3]: *** [/usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.o] Error 1
    make[2]: *** [/usr/src/alsa/alsa-driver-1.0.18a/acore] Error 2
    make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.18a] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.27-ARCH'
    make: *** [compile] Error 2
    edit: I tried compiling it on another computer and it was able too...not sure why mine wont.  Although I do seem to remember possibly forgetting to uninstall it before making it again (after kernel upgrade)...I've tried multiple times to compile so far.  Is there someway I can get a list of things to delete to manually remove all remnants of a previous install of alsa-driver?
    Last edited by Gauvenator (2008-12-13 19:48:11)

    Ok I ended up compiling the kernel from source for something else, so I tried compiling the alsa driver from source and it worked...maybe something was leftover in the previous kernel source directory that was causing problems.

  • Installing Software from Source

    This question might sound a little bit retarded, but I'm just starting out, so I'd appreciate a little bit of help. I'm trying to install software from source, but it does not seem to work. Or at least, not for lynx, so I'm wondering if pacman is the only way of installing software on Arch (which I pretty much doubt).
    I've downloaded lynx, unarchived it, went into its directory, and typed ./configure, followed by make and make check. Everything seemed OK, as I have even got the "Welcome to Lynx!" message. So I went on and typed sudo make install, and no errors occurred. But when I tried launching it with lynx, it said the command is not found. What am I doing wrong?
    Also, one more thing: when I loose the prompt, how do I get it back? I mean, like this (http://bit.ly/4tkurS)
    Thanks in advance!
    Last edited by XLR3204S (2009-12-01 15:01:04)

    XLR3204S wrote:Thing is, I'm trying to learn my way around Linux, not specifically Arch Linux. I've got lynx through pacman before, but this time I wanted to get my foot wet with installing programs from source, as, in fact, I don't need lynx at all. I'll look more into it as soon as I get other things I want to built from source.
    This isn't really arch specific. Installing from source without using the package system is a bad idea(tm) on (almost) any distro. Only the method used to create a package differs.
    Edit: not that you "learn GNU/Linux" by compiling anyway. The best way to learn GNU/Linux is just to use it, and to read. There are several good books on the kernel, init systems, userland basics and so on.
    Last edited by Mr.Elendig (2009-12-01 17:30:51)

Maybe you are looking for

  • Creation of Daemon for the DTO  for the real time data aquisition

    Hi i need help how to create a daemon for the DTP in the real time data aquisition.i'm learning now Sap and practicing a lot to be professional but i need a bit of hel.Can you please give me some details how to create it? I have to access the RSRDA T

  • Need a external HD 40% bigger than internal for Time Machine backups??

    I've heard that using Time Machine as my backup program I need a hard drive that's about 40% bigger than the source (internal) hard drive I want to backup. Some in these forums have said I need a external HD 2x or 3x as big as the internal hard drive

  • Matrix Reports in R12

    Hi All, I'm using oracle 11g and EBZ 12.1.3. i want to deploy report in matrix format in R12. i create report in report builder but i dont knw how to deploy in r12 please help Thanks & regards, Macks

  • ApplicationUpdater issue

    Hi, I want to show updation on my client when i do update on my AIR application. Using the "ApplicationUpdater" i am able to see the update dialog box and i can update the .air file. But when i install my application with .exe file those update are n

  • Z77A-G43 drivers from MSI website not working

    Hi, I've just built a new computer on a Z77A-G43, running Windows 7 Ultimate 64-bit. Specs: i5-3570K 8GBs of Corsair RAM MSI 7850 120GB Intel 330 SSD - system 1TB WD Green - secondary Instead of installing drivers from the supplied CD (except for eth