Code Monkey home page Code Monkey logo

Comments (27)

romssprogrammer avatar romssprogrammer commented on August 30, 2024 1

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer Sorry for take so long to answer. I was offline :)
Are you still experiencing this problem?

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

Hello Malkverbena no worries i understand :) thank for answer me back.

yeah still facing this problem and i have the second one already face by others

cmdCap
I think my Scub is done correctly
cmdCap4

what i have finally done for my project is to create a webService Rest in java to communicate with mysql using httprequest node

would be interesting to understand why compiling doesn't work :)

nice job anyway

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

A friend of mine did this tutorial.
It's in portuguese but you can use translated subtitles.
You will find a good explanation there.

https://www.youtube.com/watch?v=ohGP-q_Na9g

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

yes i watch it and follow it step by step :) good tutorial !! but i will try again and i will tell you !

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer
This error is because the compiler cannot find the path to the file.
In the worst case, copy the required files with the extension .h to the Mysql module directory and it will work.
But I strongly recommend to solve the issue related to the path on SCsub.

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer Could you please show me your files register_types.h andregister_types.cpp?
I'll start t investigate it thi week.

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

Note that register_mysql_types must be register_MySQL_types.

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

Hello here is the screenshot
register

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer Could you try compile again the master branch? I did some modifications on SCsub. I don't a machine with the MS Windows right now to test it.

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

hello
as you ask i tried again but sill have the same error:

[Initial build] Compiling ==> modules\MySQL\MySQL.cpp
MySQL.cpp
C:\godot1\modules\MySQL\MySQL.h(7): fatal error C1083: Impossible d'ouvrir le fichier include : 'mysql_error.h' : No such file or directory
scons: *** [modules\MySQL\MySQL.windows.tools.64.obj] Error 2
scons: building terminated because of errors.

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer Please, reopen this issue

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer I guess the godot compiler should be able to find all mysql headers now.
Could you please try again with the modification I did on scsub file?
Don't forget to use the 1.x branch.
About thefisrt issue, I can't reproduce it at all. Could you provide a copy of your module folder?

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

Hi thank for keeping searching the issue
here the result
08062021

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer Try again. I did some changes on MySQL.h

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

Hi thank for keeping searching the issue
here the result

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

here the result
09062021

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer
I've been baffled by this error. But I noticed that in branch 4.0 this file no longer exists. I still have no idea of the requirements for compiling on the 4.0 branch after this changes. But as soon as possible I have my answers I will update my repository.
You should be able to compile to the 3.x branch without any problems.

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer I guess I figured out how fix it. Could you try to compile again?

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

Hello sorry for late answer.
i get this name error

shellgodot

I think i didn't miss something in the Scsubscript :

#!/usr/bin/env python
#SCsub

Enter with path to Boost library here

boost_path= "C:/boost"

Enter with the path to jdbc here (mysql_connection.h & mysql_driver.h)

include_path= "C:/mysql-connector-c++-8.0.23-winx64/include/jdbc"

Enter with the path to mysql libs here (mysqlcppconn.lib)

lib_path= "C:/mysql-connector-c++-8.0.23-winx64/lib64/vs14"

#--------------------------------------------------------------------------
version_file = open('../../version.py', 'r')
for ver in version_file:
if ver.startswith("major"):
if ver.count("4") > 0:
mysql_env.Append(CPPDEFINES=["GODOT4"])
version_file.close()
#--------------------------------------------------------------------------

import shutil
Import("env")
env.add_source_files(env.modules_sources,"*.cpp")

if env["platform"] in ["windows", "UWP"]:
target_lib = ""
target_lib_arr = []
env.Append(CPPPATH=[include_path, boost_path])
env.Append(LIBPATH=[lib_path])
mysql_env = env.Clone()
mysql_env['LIBS'] = []

sufix = env["PROGSUFFIX"]
target_lib="mysqlcppconn"
sufix = sufix[0:-3]
mysql_env.Append(CPPFLAGS =["-I" + include_path, "-L " + lib_path])
target_lib_arr = [target_lib]   # TODO: More libs are expected for static compilling (ssl, crypto e etc...)

# copy libs
for i in target_lib_arr:
	source = lib_path + "/" + i + ".lib"
	destination = lib_path + "/" + i + sufix + "lib"
	shutil.copy2(source, destination)

env.Append(LIBS=target_lib_arr)

elif env["platform"] in ["linuxbsd", "linux", "bsd", "X11", "Server"]:
module_env = env.Clone()
mysql_env['LIBS'] = []
module_env.Append(CXXFLAGS=['-O2', '-std=c++11'])
env.Append(LIBPATH=['/usr/lib'])
env.Append(LIBS=['mysqlcppconn'])

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

The flags '-O2' and '-std=c++11' should not be used. Delete this line.

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

Try the last update I did.

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

@romssprogrammer
Could we talk on Discord? I would like to understand what's going on. I can't reproduce the errors you get at all.

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

Hello Malkverbena sorry for the late answer it's because i have to show my application in front of a jury i have to deploy my application on heroku for the date of July 20 and i am struggling.
i will find a time to speak with you i soon as possible.

from mysql.

Malkverbena avatar Malkverbena commented on August 30, 2024

That's fine. I can't reproduce the issue,so it's hard to figure out what is going on. When you get time we can debug it.

from mysql.

romssprogrammer avatar romssprogrammer commented on August 30, 2024

from mysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.