LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2012, 11:51 AM   #16
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,545

Rep: Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840

Quote:
Originally Posted by c0d3d View Post
Can you tell me where python-config is located? When I run it directly, I get a "command not found" error.
Well that sounds like the problem then. I would guess it should be located somewhere in the python installation. If you can put the flags in yourself (see below) then you don't need to find it.

Quote:
When I run build, I would run it like this (that was the command on the webpage, the only thing being changed is "-lpython32" instead of "-python27"):
Code:
build -L$PYTHON_LIB -lpython32
-L$PYTHON_LIB -lpython32 should go inside build, after (or instead of) $(python-config --ldflags).
 
Old 08-14-2012, 05:17 PM   #17
c0d3d
Member
 
Registered: Aug 2012
Posts: 74

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by ntubski View Post
-L$PYTHON_LIB -lpython32 should go inside build, after (or instead of) $(python-config --ldflags).
When I run the command "g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt -L$PYTHON_LIB -lpython32 -o _mlt.so", I get:
Code:
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lpython32
collect2.exe: error: ld returned 1 exit status
Any ideas?
 
Old 08-14-2012, 08:05 PM   #18
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,545

Rep: Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840Reputation: 1840
The instructions are wrong, actually.
Quote:
3. set environment variables for PYTHON_INCLUDE and PYTHON_LIB per http://www.swig.org/Doc1.3/Windows.html#Windows_python

4. build manually using src/swig/python/build as a guide

need to add "-L$PYTHON_LIB -lpython27"
Looking at http://www.swig.org/Doc1.3/Windows.html#Windows_python, we see that $PYTHON_LIB is the path to the python library. The -L option is supposed to tell the linker which directory to find libraries in.

I believe -l$PYTHON_LIB would work. Alternatively, PYTHON_LIBDIR=D:\python21\libs, and -L$PYTHON_LIBDIR -lpython21, changing version numbers as appropriate.
 
Old 08-18-2012, 06:55 PM   #19
c0d3d
Member
 
Registered: Aug 2012
Posts: 74

Original Poster
Rep: Reputation: 12
Since compiling MLT has been very difficult for me, as a beginner, I am trying a new toolkit, SFML. I will see how that goes.
There are a lot of programming skills I am lacking, also, so I'm giving up for now.
Thank you for all the help you have given me.

Sincerely,
c0d3d
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
swfdec with firefox VisionIncision Slackware 6 02-07-2014 02:09 PM
MinGW/Msys: how to run PWD from Windows command line? Dims Other *NIX 0 06-29-2011 09:41 AM
Swfdec or Gnash coolgreen1 Linux - Software 3 05-03-2010 09:46 AM
swfdec player Ravi_ Linux - Software 0 04-19-2009 02:54 AM
MingW and Windows Libraries bobwall Programming 0 09-22-2004 04:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration