Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 19th, 2012, 07:45 AM
moushakes12 moushakes12 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 6 moushakes12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 16 sec
Reputation Power: 0
Cannot open -lglpk: No such file or directory

Hello,

While building the glpk module , i got the following error:


C:\Python27\cvxopt-1.1.5\src>python setup.py build --compiler=mingw32
running build
running build_py
running build_ext
building 'glpk' extension
C:\G77\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I/usr/include -IC:\Python27\cvxop
t-1.1.5\src\include -IC:\Python27\cvxopt-1.1.5\src\PC -c C/glpk.c -o build\temp.
win32-2.7\Release\c\glpk.o
In file included from C:\Python27\cvxopt-1.1.5\src\include\pyport.h:312,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:58,
from C\cvxopt.h:22,
from C/glpk.c:22:
C:\Python27\cvxopt-1.1.5\src\include\math.h:256: warning: conflicting types for
built-in function 'scalb'
writing build\temp.win32-2.7\Release\c\glpk.def
C:\MinGW\bin\dllwrap.exe -mno-cygwin -mdll -static --output-lib build\temp.win32
-2.7\Release\c\libglpk.a --def build\temp.win32-2.7\Release\c\glpk.def -s build\
temp.win32-2.7\Release\c\glpk.o -L/usr/lib -LC:\Python27\cvxopt-1.1.5\src\libs -
LC:\Python27\cvxopt-1.1.5\src\PCbuild -lglpk -lpython27 -lmsvcr90 -o build\lib.w
in32-2.7\cvxopt\glpk.pyd
ld: cannot open -lglpk: No such file or directory
dllwrap: gcc exited with status 1
error: command 'dllwrap' failed with exit status 1


It seems that it is looking for the glpk directory, i have the glpk file but don't know where the system is looking for?

Any suggestion?

Thank you.

Reply With Quote
  #2  
Old October 19th, 2012, 08:39 AM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,368 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 11 h 16 m 11 sec
Reputation Power: 383
Is the equivalent of libglpk.a (maybe named glpk.lib on a DOS system) on your system?

You could put a copy of it into the build directory
or include the option
-Lpath\of\directory\containing\it
into this command. The option must precede the -lglpk option.

(following is messed up. I hope you figure out which command from your post I mean)
Code:
C:\MinGW\bin\dllwrap.exe -mno-cygwin -mdll -static --output-lib build\temp.win32
-2.7\Release\c\libglpk.a --def build\temp.win32-2.7\Release\c\glpk.def -s build temp.win32-.7\Release\c\glpk.o -L/usr/lib -LC:\Python27\cvxopt-1.1.5\src\libs -LC:\Python27\cvxopt-1.1.5\src\PCbuild -lglpk -lpython27 -lmsvcr90 -o build\lib.w
__________________
[code]Code tags[/code] are essential for python code!

Last edited by b49P23TIvg : October 19th, 2012 at 08:41 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Cannot open -lglpk: No such file or directory

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap