Opened 8 years ago

Last modified 4 years ago

#51950 reopened defect

gnuplot unable to find wx/wxprec.h

Reported by: skymoo (Adam Mercer) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: gnuplot

Description (last modified by skymoo (Adam Mercer))

:info:build In file included from wxterminal/wxt_gui.cpp:97:
:info:build wxterminal/wxt_gui.h:75:10: fatal error: 'wx/wxprec.h' file not found
:info:build #include <wx/wxprec.h>
:info:build          ^

Attachments (1)

main.log (153.2 KB) - added by skymoo (Adam Mercer) 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by skymoo (Adam Mercer)

Description: modified (diff)
Owner: changed from macports-tickets@… to mojca@…
Port: gnuplot added

Changed 8 years ago by skymoo (Adam Mercer)

Attachment: main.log added

comment:2 Changed 8 years ago by skymoo (Adam Mercer)

I see the following in the log:

:info:configure checking for wx-config... /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config
:info:configure 
:info:configure           Warning: No config found to match: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --release
:info:configure                    in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/config
:info:configure           If you require this configuration, please install the desired
:info:configure           library build.  If this is part of an automated configuration
:info:configure           test and no other errors occur, you may safely ignore it.
:info:configure           You may use wx-config --list to see all configs available in
:info:configure           the default prefix.
:info:configure 
:info:configure expr: syntax error
:info:configure expr: syntax error
:info:configure 
:info:configure           Warning: No config found to match: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --basename
:info:configure                    in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/config
:info:configure           If you require this configuration, please install the desired
:info:configure           library build.  If this is part of an automated configuration
:info:configure           test and no other errors occur, you may safely ignore it.
:info:configure           You may use wx-config --list to see all configs available in
:info:configure           the default prefix.
:info:configure 
:info:configure expr: syntax error
:info:configure checking for CAIROPANGO... yes
:info:configure checking for PANGO_1_10_2... no
:info:configure 
:info:configure           Warning: No config found to match: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --cxxflags
:info:configure                    in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/config
:info:configure           If you require this configuration, please install the desired
:info:configure           library build.  If this is part of an automated configuration
:info:configure           test and no other errors occur, you may safely ignore it.
:info:configure           You may use wx-config --list to see all configs available in
:info:configure           the default prefix.
:info:configure 
:info:configure 
:info:configure           Warning: No config found to match: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --libs
:info:configure                    in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/config
:info:configure           If you require this configuration, please install the desired
:info:configure           library build.  If this is part of an automated configuration
:info:configure           test and no other errors occur, you may safely ignore it.
:info:configure           You may use wx-config --list to see all configs available in
:info:configure           the default prefix.
:info:configure 

Is something wrong with wxWidgets-3.0

comment:3 Changed 8 years ago by mojca (Mojca Miklavec)

I'm clueless. I would suspect that something is wrong with wxWidgets-3.0 indeed. Here's what I get:

checking how to run the C++ preprocessor... /usr/bin/clang++ -E
checking for wx-config... /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config
checking for CAIROPANGO... yes
checking for PANGO_1_10_2... no

Please note the expr: syntax error in your output. I have no better suggestion than to try to force removal of wxWidgets-3.0 and then install it again. Perhaps include the build log of wxWidgets if gnuplot configuration will still "fail" after that.

comment:4 Changed 8 years ago by skymoo (Adam Mercer)

Resolution: invalid
Status: newclosed

That was the problem, removing and reinstalling wxWidgets-3.0 did the trick.

comment:5 Changed 4 years ago by vallon (Justin)

Resolution: invalid
Status: closedreopened

I just encountered this.

:info:configure checking for wx-config... /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config
:info:configure           Warning: No config found to match: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --release
:info:configure                    in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/config
:info:configure           If you require this configuration, please install the desired
:info:configure           library build.  If this is part of an automated configuration
:info:configure           test and no other errors occur, you may safely ignore it.
:info:configure           You may use wx-config --list to see all configs available in
:info:configure           the default prefix.
:info:configure expr: syntax error
:info:configure expr: syntax error

wx-config --list seems confused:

$ /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --list

    Default config is osx_cocoa-unicode-3.0

          No config found to match: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --list
          in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/config

          Please install the desired library build, or specify a different
          prefix where it may be found.  If the library is not installed
          you may call its wx-config directly by specifying its full path.


  Also available in /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0:
    osx_cocoa-unicode-3.0

wx-config is using a bad EGREP:

$ grep EGREP= /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config
EGREP="/opt/local/bin/ggrep -E"
$ ls /opt/local/bin/ggrep
ls: cannot access '/opt/local/bin/ggrep': No such file or directory

I build from source, so I suppose ggrep was there at some point, but has since been removed.

After reinstall wxWidgets-3.0:

$ grep EGREP= /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config
EGREP="/usr/bin/grep -E"
$ /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config --list

    Default config is osx_cocoa-unicode-3.0

  Default config will be used for output

Appears to be a wx-widgets problem.

comment:6 Changed 4 years ago by vallon (Justin)

Found another ticket in wx-widgets-3.0 that found the same trouble with EGREP: https://trac.macports.org/ticket/57508

Note: See TracTickets for help on using tickets.