Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » vlle
  • » Profile

Posts

Posts

spinnau wrote:


The best thing is to use the package manager of your linux distribution to install the dependency packages. On openSUSE the needed packages might be lpsolve and/or liblpsolve55-0 and can be installed e.g. from the terminal with zypper

Code:

$ zypper install lpsolve

Thanks,

Indeed, I don't have root privileges on my machine. So I cannot use zypper for installing packages. That is why i tried to install all Dependencies on the local directories and then set PATH environment in .bashrc.

Hello spinnau,

Thank you very much for your quick reply. I also thought that I missed lpsolve55.

Indeed, I tried to download lpsolve55 from http://sourceforge.net/projects/lpsolve/. Then I unzipped this tar.gz file and set LD_LIBRARY_PATH to the directory of lpsolve in .bashrc. However, it didn't work. So I don't know if I didn't install correctly lpsove. Do you have any idea on this?

The folder lpsolve contains the following files:

liblpsolve55.a  liblpsolve55.so  lp_Hash.h  lp_lib.h  lp_matrix.h  lp_mipbb.h  lp_SOS.h  lp_types.h  lp_utils.h

Thanks.

Could anyone tell me how to solve this error pls? I tried to make -j8 (on opensuse 1.32) and that is what i received. Thanks in advance

In file included from System_omc.c:54:
./systemimpl.c:1796:10: error: empty filename
#include CONFIG_LPSOLVEINC
         ^
./config.unix.h:32:27: note: expanded from macro 'CONFIG_LPSOLVEINC'
#define CONFIG_LPSOLVEINC ""
                          ^
In file included from System_omc.c:54:
./systemimpl.c:1802:3: error: use of undeclared identifier 'lprec'
  lprec *lp;
  ^
./systemimpl.c:1802:10: error: use of undeclared identifier 'lp'
  lprec *lp;
         ^
./systemimpl.c:1811:3: error: use of undeclared identifier 'lp'
  lp = make_lp(sz, sz);
  ^
./systemimpl.c:1811:8: error: implicit declaration of function 'make_lp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  lp = make_lp(sz, sz);
       ^
./systemimpl.c:1812:3: error: implicit declaration of function 'set_verbose' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  set_verbose(lp, 1);
  ^
./systemimpl.c:1812:15: error: use of undeclared identifier 'lp'
  set_verbose(lp, 1);
              ^
./systemimpl.c:1813:9: error: implicit declaration of function 'get_infinite' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  inf = get_infinite(lp);
        ^
./systemimpl.c:1813:22: error: use of undeclared identifier 'lp'
  inf = get_infinite(lp);
                     ^
./systemimpl.c:1816:5: error: implicit declaration of function 'set_lowbo' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    set_lowbo(lp, i+1, -inf);
    ^
./systemimpl.c:1816:15: error: use of undeclared identifier 'lp'
    set_lowbo(lp, i+1, -inf);
              ^
./systemimpl.c:1817:5: error: implicit declaration of function 'set_constr_type' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    set_constr_type(lp, i+1, EQ);
    ^
./systemimpl.c:1817:21: error: use of undeclared identifier 'lp'
    set_constr_type(lp, i+1, EQ);
                    ^
./systemimpl.c:1817:30: error: use of undeclared identifier 'EQ'
    set_constr_type(lp, i+1, EQ);
                             ^
./systemimpl.c:1820:7: error: implicit declaration of function 'set_mat' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      set_mat(lp, i+1, j+1, mmc_prim_get_real(MMC_CAR(tmp)));
      ^
./systemimpl.c:1820:15: error: use of undeclared identifier 'lp'
      set_mat(lp, i+1, j+1, mmc_prim_get_real(MMC_CAR(tmp)));
              ^
./systemimpl.c:1823:5: error: implicit declaration of function 'set_rh' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    set_rh(lp, i+1, mmc_prim_get_real(MMC_CAR(lB)));
    ^
./systemimpl.c:1823:12: error: use of undeclared identifier 'lp'
    set_rh(lp, i+1, mmc_prim_get_real(MMC_CAR(lB)));
           ^
./systemimpl.c:1828:45: error: implicit declaration of function 'set_int' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (MMC_UNTAGFIXNUM(MMC_CAR(ix)) != -1) set_int(lp, MMC_UNTAGFIXNUM(MMC_CAR(ix)), 1);
                                            ^
./systemimpl.c:1828:45: note: did you mean 'set_mat'?
./systemimpl.c:1820:7: note: 'set_mat' declared here
      set_mat(lp, i+1, j+1, mmc_prim_get_real(MMC_CAR(tmp)));
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Makefile.common:132: recipe for target 'System_omc.o' failed
make[4]: *** [System_omc.o] Error 1
make[4]: *** Waiting for unfinished jobs....
unitparser.cpp:45:10: error: empty filename
#include CONFIG_LPSOLVEINC
         ^
./config.unix.h:32:27: note: expanded from macro 'CONFIG_LPSOLVEINC'
#define CONFIG_LPSOLVEINC ""
                          ^
unitparser.cpp:412:3: error: unknown type name 'lprec'
  lprec *lp = make_lp(0, 2 * NU);
  ^
unitparser.cpp:412:15: error: use of undeclared identifier 'make_lp'
  lprec *lp = make_lp(0, 2 * NU);
              ^
unitparser.cpp:447:23: error: use of undeclared identifier 'TRUE'
  set_add_rowmode(lp, TRUE);
                      ^
unitparser.cpp:483:46: error: use of undeclared identifier 'EQ'
    if (!add_constraintex(lp, j, row, colno, EQ, b)) {
                                             ^
unitparser.cpp:490:23: error: use of undeclared identifier 'FALSE'
  set_add_rowmode(lp, FALSE);
                      ^
unitparser.cpp:569:24: error: use of undeclared identifier 'FALSE'
    set_int(lp, v + 1, FALSE);
                       ^
unitparser.cpp:571:24: error: use of undeclared identifier 'TRUE'
    set_int(lp, v + 1, TRUE);
                       ^
unitparser.cpp:573:24: error: use of undeclared identifier 'FALSE'
    set_int(lp, v + 1, FALSE);
                       ^
unitparser.cpp:575:24: error: use of undeclared identifier 'TRUE'
    set_int(lp, v + 1, TRUE);
                       ^
10 errors generated.
Makefile.common:134: recipe for target 'unitparser.o' failed
make[4]: *** [unitparser.o] Error 1
make[4]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler/Compiler/runtime'
Makefile.common:95: recipe for target 'compilerruntime' failed
make[3]: *** [compilerruntime] Error 2
make[3]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler/Compiler/boot'
Makefile.common:89: recipe for target 'runtime-depends' failed
make[2]: *** [runtime-depends] Error 2
make[2]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler/Compiler/boot'
Makefile:88: recipe for target 'omc-bootstrapped' failed
make[1]: *** [omc-bootstrapped] Error 2
make[1]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler'
Makefile:6: recipe for target 'omc' failed
make: *** [omc] Error 2

  • Index
  • » Users
  • » vlle
  • » Profile
You are here: