Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#39408 closed defect (fixed)

plplot @5.9.9_12+aquaterm+python27+x11: build failure

Reported by: rms414@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager)
Port: plplot

Description (last modified by larryv (Lawrence Velázquez))

I am having some issues with compiling plplot and cannot figure out how to solve it. There were some changes made to the portfile which was necessary for the compilation. This could potentially be the source of the problem. I have attached both the log file for the plplot compilation and the portfile. To save some time reading through the portfile, the changes made were the following:

1.) Replacing the post-patch section with:

post-patch {
#    reinplace "s|-framework AquaTerm|-F${prefix}/Library/Frameworks -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
    reinplace "s|-ObjC|-ObjC -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
    reinplace "s|-framework AquaTerm|-F${frameworks_dir} -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
    if {[variant_isset python]} {
        reinplace "s|find_package(PythonLibs)||" ${worksrcpath}/cmake/modules/python.cmake
        reinplace "s|get_python_lib\(1,0,prefix='$\{CMAKE_INSTALL_EXEC_PREFIX\}'\)|get_python_lib()|" ${worksrcpath}/cmake/modules/python.cmake
    }
}

2.) Adding a new variant

variant python27 description {Add support for python27} {
    depends_lib-append      port:python27 \
                            port:py27-numpy \
                            port:swig-python
    configure.args-delete   -DENABLE_python=OFF
    configure.args-append   -DENABLE_python=ON \
                            -DHAVE_NUMPY:BOOL=ON \
                            -DPYTHON_INCLUDE_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/Current/include/python2.7 \
                            -DPYTHON_LIBRARIES=/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/libpython2.7.dylib
}

If anyone has any idea on what can potentially be the problem, it will be greatly appreciated.

Attachments (4)

main.log (480.0 KB) - added by rms414@… 11 years ago.
Make Log File
Portfile (14.7 KB) - added by rms414@… 11 years ago.
Plplot Portfile
InstalledPorts.txt (2.8 KB) - added by rms414@… 11 years ago.
Installed Ports
main.2.log (480.9 KB) - added by rms414@… 11 years ago.
Updated Log File

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by rms414@…

Attachment: main.log added

Make Log File

Changed 11 years ago by rms414@…

Attachment: Portfile added

Plplot Portfile

comment:1 Changed 11 years ago by rms414@…

I forgot to add, in order to compile plplot with Macports, I used the command "sudo port -v install plplot +python27"

comment:2 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Keywords: Compile Error removed
Owner: changed from macports-tickets@… to takeshi@…
Priority: HighNormal
Summary: Problems with Compiling Plplotplplot @5.9.9_12+aquaterm+python27+x11: build failure

Thanks. In the future, please Cc relevant port maintainers, use WikiFormatting in ticket descriptions, avoid setting the Priority field, include port version information in the ticket summary, and attach unified diffs instead of whole portfiles.

Changed 11 years ago by rms414@…

Attachment: InstalledPorts.txt added

Installed Ports

comment:3 Changed 11 years ago by rms414@…

Ok thank you, I will make sure to do that. Just in case its useful I attached the ports currently installed on my MacBook Pro

comment:4 Changed 11 years ago by tenomoto (Takeshi Enomoto)

It seems that you need some improvement to python27 variant but got into a trouble. What is the problem with the current python27 variant? It is up to you to modify Portfile to make it suit your needs, but in that case you're on your own.

comment:5 in reply to:  4 Changed 11 years ago by rms414@…

Sorry for the delayed response. To be honest, I am not sure why the python27 varient was changed, I was told to change the Portfile to the one attached because it has been shown to work in the past. Just out of curiosity I changed everything back to the original Portfile and tried to recompile the same way as before (sudo port -v install plplot +python27), but it seems like the same error occurred. I have attached the log file again in case it is helpful.

Changed 11 years ago by rms414@…

Attachment: main.2.log added

Updated Log File

comment:6 Changed 11 years ago by rms414@…

I found out the main reason for making these changes in the Portfile was because plplot will not be able to be imported into the current version of python on my laptop (2.7.5). Is there possibly another way to do to this?

comment:7 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Your build failed because CMake found QT_MAC_USE_COCOA against -DENABLE_pyqt4=OFF -DENABLE_qt=OFF and try to use QtSvg framework but not found. I'll see if I could fix this, but in the mean time you could deactivate your Qt installation and install plplot +python27. If you have non-MacPorts Qt, you might have to uninstall it or need to find a way to hide it from CMake.

comment:8 Changed 11 years ago by rms414@…

Ok thanks I will try that. How exactly do I deactivate the Qt installation?

comment:9 Changed 11 years ago by rms414@…

I looked through all of my installed ports, and as of now I do not have any Qt ports. I do have Qt installed outside of Macports, maybe this is the cause of the problem?

comment:10 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

I think I made a progress with Qt4 and plplot in r108177.

comment:11 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Similar problems in #38688 and #39673

comment:12 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.