Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in building process #1826

Open
cameduar44 opened this issue Nov 30, 2023 · 8 comments
Open

Error in building process #1826

cameduar44 opened this issue Nov 30, 2023 · 8 comments

Comments

@cameduar44
Copy link

Bug description
I've been trying to build and install pgModeler following the instructions on the official site, but keep having problems with the $make comand when I'm building the the software.

The problems seems to be at xmlparser.cpp library, especificly on line 182 xml_error=xmlGetLastError() cause when a run $make on MSYS this error massage appears:

src/xmlparser.cpp: In member function 'void XmlParser::readBuffer()':
src/xmlparser.cpp:182:42: error: invalid conversion from 'const xmlError*' {aka 'const _xmlError*'} to 'xmlError*' {aka '_xmlError*'} [-fpermissive]
182 | xml_error=xmlGetLastError();
| ~~~~~~~~~~~~~~~^~
| |
| const xmlError* {aka const _xmlError*}

How to reproduce
I've been looking in different forums but I couldn't find nothing similar. This happens everytime I run $make building the software

Info about your desktop

  • OS: Windows 10 Pro
  • Version: 22H2
  • Window manager:
  • pgModeler version: main
  • Qt version: 6

Additional info
I have no idea of C++

@rkhaotix
Copy link
Member

Switch to branch 1.1.0-beta1, this issue is already fixed there.

@jasparq
Copy link

jasparq commented Nov 30, 2023

I have the same issue. I tried using the 1.1.0 beta from the source download form, but the same error is thrown on a different line.

src/xmlparser.cpp: In member function 'void XmlParser::readBuffer()':
src/xmlparser.cpp:172:42: error: invalid conversion from 'const xmlError*' {aka 'const _xmlError*'}
to 'xmlError*' {aka '_xmlError*'} [-fpermissive]
  172 |                 xml_error=xmlGetLastError();
      |                           ~~~~~~~~~~~~~~~^~
      |                                          |
      |                                          const xmlError* {aka const _xmlError*}
make[2]: *** [Makefile.Release:768: obj/xmlparser.o] Error 1
make[2]: Leaving directory '/c/pgmodeler-1.1.0-beta/libs/libparsers'
make[1]: *** [Makefile:45: release] Error 2
make[1]: Leaving directory '/c/pgmodeler-1.1.0-beta/libs/libparsers'
make: *** [Makefile:102: sub-libs-libparsers-make_first-ordered] Error 2

@eusebe-cda
Copy link

It works with the 1.1.0-beta1 branch downloaded from github, not from the 1.1.0-beta tag (which is older and not fixed)...

@jasparq
Copy link

jasparq commented Dec 1, 2023

It works with the 1.1.0-beta1 branch downloaded from github, not from the 1.1.0-beta tag (which is older and not fixed)...

Got it working. Thought they were the same, my mistake.

@damatvey
Copy link

How to switch to branch? I wrote the command User@1B MINGW64 ~/pgmodeler
$ git checkout 1.1.0-beta1
but did not switch to the specified branch

@rkhaotix
Copy link
Member

Branch 1.1.0-beta1 was merged into develop branch after the release in December. You can try either checkout develop or 1.1.0.

@damatvey
Copy link

why is it that when I write this command
$ windeployqt-qt6 pgmodeler.exe gui.dll
"pgmodeler.exe" does not exist.
It writes that pgmodeler.exe does not exist. Where could there be a mistake?

@damatvey
Copy link

@rkhaotix Thank you! You are really help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants